cybersource_rest_client 0.0.68 → 0.0.69

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 (248) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +12 -0
  3. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +9 -0
  4. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information.rb +314 -314
  5. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +437 -437
  6. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc.rb +337 -337
  7. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account.rb +297 -297
  8. data/lib/cybersource_rest_client/models/boardingv1registrations_registration_information.rb +271 -271
  9. data/lib/cybersource_rest_client/models/card_processing_config_common.rb +433 -433
  10. data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer.rb +257 -257
  11. data/lib/cybersource_rest_client/models/card_processing_config_common_merchant_descriptor_information.rb +279 -279
  12. data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +719 -719
  13. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations.rb +200 -200
  14. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations_vault.rb +251 -251
  15. data/lib/cybersource_rest_client/models/create_order_request.rb +229 -229
  16. data/lib/cybersource_rest_client/models/create_payment_request.rb +11 -1
  17. data/lib/cybersource_rest_client/models/e_check_config_common_internal_only_processors.rb +267 -267
  18. data/lib/cybersource_rest_client/models/e_check_config_common_processors.rb +273 -273
  19. data/lib/cybersource_rest_client/models/e_check_config_features_account_validation_service_internal_only_processors.rb +193 -193
  20. data/lib/cybersource_rest_client/models/e_check_config_features_account_validation_service_processors.rb +285 -285
  21. data/lib/cybersource_rest_client/models/flexv2sessions_fields.rb +199 -199
  22. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information.rb +209 -209
  23. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details.rb +199 -199
  24. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details_total_amount.rb +189 -189
  25. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_bill_to.rb +309 -309
  26. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_ship_to.rb +289 -289
  27. data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information.rb +189 -189
  28. data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information_card.rb +229 -229
  29. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +230 -227
  30. data/lib/cybersource_rest_client/models/generate_flex_api_capture_context_request.rb +189 -189
  31. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +283 -293
  32. data/lib/cybersource_rest_client/models/inline_response_200_1_integration_information_tenant_configurations.rb +263 -263
  33. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +2 -2
  34. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +281 -281
  35. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information_tenant_configurations.rb +253 -253
  36. data/lib/cybersource_rest_client/models/inline_response_201_2_registration_information.rb +222 -222
  37. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_configuration_status.rb +255 -255
  38. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_subscription_status.rb +234 -234
  39. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +242 -242
  40. data/lib/cybersource_rest_client/models/inline_response_400_1_details.rb +199 -199
  41. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +235 -235
  42. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +235 -235
  43. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +235 -235
  44. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +258 -258
  45. data/lib/cybersource_rest_client/models/inline_response_400_5_fields.rb +213 -213
  46. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +235 -235
  47. data/lib/cybersource_rest_client/models/inline_response_400_6_details.rb +201 -201
  48. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +235 -235
  49. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +235 -235
  50. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +223 -223
  51. data/lib/cybersource_rest_client/models/oct_create_payment_request.rb +15 -5
  52. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +323 -313
  53. data/lib/cybersource_rest_client/models/payments_products_card_present_connect_subscription_information.rb +202 -202
  54. data/lib/cybersource_rest_client/models/payments_products_card_processing_subscription_information.rb +215 -215
  55. data/lib/cybersource_rest_client/models/payments_products_differential_fee_subscription_information.rb +212 -212
  56. data/lib/cybersource_rest_client/models/payments_products_digital_payments_subscription_information.rb +215 -215
  57. data/lib/cybersource_rest_client/models/payments_products_e_check_subscription_information.rb +215 -215
  58. data/lib/cybersource_rest_client/models/payments_products_payer_authentication_subscription_information.rb +202 -202
  59. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information.rb +234 -234
  60. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +323 -313
  61. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +323 -313
  62. data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +1 -1
  63. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response.rb +269 -269
  64. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response_buyer_information.rb +196 -196
  65. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response_processor_information.rb +224 -224
  66. data/lib/cybersource_rest_client/models/pts_v2_create_order_post400_response.rb +224 -224
  67. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +213 -213
  68. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +312 -295
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +305 -305
  70. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions.rb +189 -189
  71. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions_ap_capture.rb +190 -190
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +263 -263
  73. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information_personal_identification.rb +207 -207
  74. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_payment_information_e_wallet.rb +241 -241
  75. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +18 -1
  76. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions.rb +25 -5
  77. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_create.rb +212 -0
  78. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_update.rb +212 -0
  79. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +22 -5
  80. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  81. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +247 -227
  82. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_authorization_options.rb +196 -0
  83. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_capture_options.rb +196 -196
  84. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_purchase_options.rb +247 -0
  85. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +831 -814
  86. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_seller_protection.rb +237 -237
  87. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +313 -313
  88. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +305 -305
  89. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +320 -309
  90. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +224 -224
  91. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +15 -5
  92. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processing_information.rb +189 -0
  93. data/lib/cybersource_rest_client/models/pts_v2_update_order_patch201_response.rb +200 -200
  94. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +205 -205
  95. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +302 -302
  96. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +189 -189
  97. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information_emv.rb +196 -196
  98. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +318 -318
  99. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +282 -282
  100. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +446 -446
  101. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +321 -321
  102. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +256 -256
  103. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +533 -533
  104. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +222 -222
  105. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +317 -317
  106. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +256 -256
  107. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +1 -1
  108. data/lib/cybersource_rest_client/models/ptsv2intents_client_reference_information.rb +196 -196
  109. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information.rb +223 -223
  110. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +207 -207
  111. data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +231 -231
  112. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_amount_details.rb +315 -315
  113. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +196 -196
  114. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_invoice_details.rb +190 -190
  115. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +309 -309
  116. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +332 -332
  117. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +189 -189
  118. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type.rb +200 -200
  119. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type_method.rb +190 -190
  120. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +219 -219
  121. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information_authorization_options.rb +196 -196
  122. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +189 -189
  123. data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +221 -221
  124. data/lib/cybersource_rest_client/models/ptsv2intentsid_processing_information.rb +192 -192
  125. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +90 -5
  126. data/lib/cybersource_rest_client/models/ptsv2payments_agreement_information.rb +207 -207
  127. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +229 -229
  128. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +56 -5
  129. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +1 -1
  130. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +22 -5
  131. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +651 -651
  132. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_octsurcharge.rb +196 -196
  133. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
  134. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +19 -2
  135. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +789 -721
  136. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +529 -467
  137. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +298 -264
  138. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +339 -339
  139. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options_bonuses.rb +213 -213
  140. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options.rb +56 -5
  141. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +502 -383
  142. data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +363 -363
  143. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +359 -298
  144. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information_account.rb +230 -0
  145. data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_unscheduled_payment_information.rb → ptsv2payments_unscheduled_payment_information.rb} +7 -1
  146. data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +256 -256
  147. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +1 -1
  148. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +230 -230
  149. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +264 -247
  150. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +22 -5
  151. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +22 -5
  152. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +22 -5
  153. data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_aggregator_information.rb → ptsv2payouts_aggregator_information.rb} +325 -240
  154. data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb → ptsv2payouts_aggregator_information_sub_merchant.rb} +196 -196
  155. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +32 -5
  156. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_purchase_options.rb +213 -0
  157. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +90 -5
  158. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +22 -5
  159. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +192 -192
  160. data/lib/cybersource_rest_client/models/ptsv2voids_processing_information.rb +7 -1
  161. data/lib/cybersource_rest_client/models/push_funds201_response.rb +337 -337
  162. data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +225 -225
  163. data/lib/cybersource_rest_client/models/push_funds201_response_payment_information.rb +189 -189
  164. data/lib/cybersource_rest_client/models/push_funds201_response_payment_information_tokenized_card.rb +205 -205
  165. data/lib/cybersource_rest_client/models/push_funds201_response_processing_information.rb +189 -189
  166. data/lib/cybersource_rest_client/models/push_funds201_response_processing_information_domestic_national_net.rb +197 -197
  167. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +329 -329
  168. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_routing.rb +196 -196
  169. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_settlement.rb +207 -207
  170. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +206 -206
  171. data/lib/cybersource_rest_client/models/push_funds502_response.rb +246 -246
  172. data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -264
  173. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +206 -206
  174. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +219 -219
  175. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +219 -219
  176. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_customer.rb +222 -222
  177. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer.rb +205 -205
  178. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +795 -795
  179. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +305 -305
  180. data/lib/cybersource_rest_client/models/sa_config_payment_methods.rb +191 -191
  181. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset.rb → tms_bin_lookup.rb} +200 -200
  182. data/lib/cybersource_rest_client/models/{inline_response_201_1_issuer_information.rb → tms_bin_lookup_issuer_information.rb} +1 -1
  183. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information.rb → tms_bin_lookup_payment_account_information.rb} +4 -4
  184. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_card.rb → tms_bin_lookup_payment_account_information_card.rb} +2 -2
  185. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_card_brands.rb → tms_bin_lookup_payment_account_information_card_brands.rb} +1 -1
  186. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_features.rb → tms_bin_lookup_payment_account_information_features.rb} +1 -1
  187. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_network.rb → tms_bin_lookup_payment_account_information_network.rb} +1 -1
  188. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art.rb → tms_card_art.rb} +231 -250
  189. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_icon_asset.rb → tms_card_art_brand_logo_asset.rb} +201 -200
  190. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_icon_asset__links.rb → tms_card_art_brand_logo_asset__links.rb} +189 -189
  191. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_icon_asset__links_self.rb → tms_card_art_brand_logo_asset__links_self.rb} +190 -190
  192. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_combined_asset.rb → tms_card_art_combined_asset.rb} +201 -200
  193. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_combined_asset__links.rb → tms_card_art_combined_asset__links.rb} +189 -189
  194. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_combined_asset__links_self.rb → tms_card_art_combined_asset__links_self.rb} +190 -190
  195. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_background_asset.rb → tms_card_art_icon_asset.rb} +201 -200
  196. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links.rb → tms_card_art_icon_asset__links.rb} +189 -189
  197. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links_self.rb → tms_card_art_icon_asset__links_self.rb} +190 -190
  198. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_brand_logo_asset.rb → tms_card_art_issuer_logo_asset.rb} +201 -200
  199. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_background_asset__links.rb → tms_card_art_issuer_logo_asset__links.rb} +189 -189
  200. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_background_asset__links_self.rb → tms_card_art_issuer_logo_asset__links_self.rb} +190 -190
  201. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier.rb +323 -313
  202. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier__embedded.rb +189 -0
  203. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bank_account.rb +1 -1
  204. data/lib/cybersource_rest_client/models/tms_network_token_services.rb +239 -239
  205. data/lib/cybersource_rest_client/models/tms_network_token_services_american_express_token_service.rb +253 -253
  206. data/lib/cybersource_rest_client/models/tms_network_token_services_mastercard_digital_enablement_service.rb +227 -227
  207. data/lib/cybersource_rest_client/models/tms_network_token_services_notifications.rb +190 -190
  208. data/lib/cybersource_rest_client/models/tms_network_token_services_payment_credentials.rb +190 -190
  209. data/lib/cybersource_rest_client/models/tms_network_token_services_synchronous_provisioning.rb +190 -190
  210. data/lib/cybersource_rest_client/models/tms_network_token_services_visa_token_service.rb +244 -244
  211. data/lib/cybersource_rest_client/models/tms_nullify.rb +212 -212
  212. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info.rb +1 -1
  213. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info_bank_transfer_options.rb +1 -1
  214. data/lib/cybersource_rest_client/models/tms_sensitive_privileges.rb +190 -190
  215. data/lib/cybersource_rest_client/models/tms_token_formats.rb +223 -223
  216. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +407 -321
  217. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card__links.rb +189 -0
  218. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card__links_self.rb +190 -0
  219. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +253 -225
  220. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +200 -189
  221. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +213 -0
  222. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_passcode.rb +191 -0
  223. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +1 -1
  224. data/lib/cybersource_rest_client/models/token_permissions.rb +223 -223
  225. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +1 -1
  226. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  227. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +326 -326
  228. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +251 -245
  229. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_japan_payment_options.rb +322 -322
  230. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +383 -383
  231. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_multi_processor_routing.rb +235 -235
  232. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +241 -241
  233. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +223 -223
  234. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +392 -392
  235. data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
  236. data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +253 -253
  237. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_amount_details.rb +201 -201
  238. data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_basic_information.rb +273 -273
  239. data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_payment_information.rb +315 -315
  240. data/lib/cybersource_rest_client.rb +35 -30
  241. metadata +38 -33
  242. data/lib/cybersource_rest_client/models/microformv2sessions_checkout_api_initialization.rb +0 -281
  243. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links.rb +0 -189
  244. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links_self.rb +0 -190
  245. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset.rb +0 -200
  246. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links.rb +0 -189
  247. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links_self.rb +0 -190
  248. data/lib/cybersource_rest_client/models/upv1capturecontexts_checkout_api_initialization.rb +0 -280
@@ -1,795 +1,795 @@
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 Riskv1decisionsConsumerAuthenticationInformation
16
- attr_accessor :strong_authentication
17
-
18
- # An override field that a merchant can pass in to set the challenge window size to display to the end cardholder. The ACS (Active Control Server) will reply with content that is formatted appropriately to this window size to allow for the best user experience. The sizes are width x height in pixels of the window displayed in the cardholder browser window. 01 - 250x400 02 - 390x400 03 - 500x600 04 - 600x400 05 - Full page
19
- attr_accessor :acs_window_size
20
-
21
- # Data that documents and supports a specific authentication process.
22
- attr_accessor :alternate_authentication_data
23
-
24
- # Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM
25
- attr_accessor :alternate_authentication_date
26
-
27
- # Mechanism used by the cardholder to authenticate to the 3D Secure requestor. Possible values: - `01`: No authentication occurred - `02`: Login using merchant system credentials - `03`: Login using Federated ID - `04`: Login using issuer credentials - `05`: Login using third-party authenticator - `06`: Login using FIDO Authenticator
28
- attr_accessor :alternate_authentication_method
29
-
30
- # The date/time of the authentication at the 3DS servers. RISK update authorization service in auth request payload with value returned in `consumerAuthenticationInformation.alternateAuthenticationData` if merchant calls via CYBS or field can be provided by merchant in authorization request if calling an external 3DS provider. This field is supported for Cartes Bancaires Fast'R transactions on Credit Mutuel-CIC. Format: YYYYMMDDHHMMSS
31
- attr_accessor :authentication_date
32
-
33
- # Payer authentication transaction identifier passed to link the check enrollment and validate authentication messages.For Rupay,this is passed only in Re-Send OTP usecase. **Note**: Required for Standard integration, Rupay Seamless server to server integration for enroll service. Required for Hybrid integration for validate service.
34
- attr_accessor :authentication_transaction_id
35
-
36
- # This field is only applicable to Rupay and is optional. Merchant will have to pass a valid value from 01 through 07 which indicates the transaction flow. Below are the possible values. 01:NW- Transaction performed at domestic merchant. 02:TW- Transaction performed at domestic merchant along with Token provisioning. 03:IT- Transaction performed at International merchant. 04:AT- Authentication Transaction Only. 05:AW- Authentication transaction for provisioning. 06:DI- Domestic InApp Transaction. 07:II- International InApp transaction. 08:GC- Guest Checkout 09:ST- SI Authentication Transaction only 10:SW- SI Authorization along with token provisioning
37
- attr_accessor :transaction_flow_indicator
38
-
39
- # Possible values: - `01`: No preference - `02`: No challenge request - `03`: Challenge requested (3D Secure requestor preference) - `04`: Challenge requested (mandate) - `05`: No challenge requested (transactional risk analysis is already performed) - `06`: No challenge requested (Data share only) - `07`: No challenge requested (strong consumer authentication is already performed) - `08`: No challenge requested (utilize whitelist exemption if no challenge required) - `09`: Challenge requested (whitelist prompt requested if challenge required) **Note** This field will default to `01` on merchant configuration and can be overridden by the merchant. EMV 3D Secure version 2.1.0 supports values `01-04`. Version 2.2.0 supports values `01-09`.
40
- attr_accessor :challenge_code
41
-
42
- # The `consumerAuthenticationInformation.challengeCode` indicates the authentication type/level, or challenge, that was presented to the cardholder at checkout by the merchant when calling the Carte Bancaire 3DS servers via CYBS RISK services. It conveys to the issuer the alternative authentication methods that the consumer used.
43
- attr_accessor :challenge_status
44
-
45
- # An alias that uniquely identifies the customer's account and credit card on file. Note This field is required if Tokenization is enabled in the merchant profile settings.
46
- attr_accessor :customer_card_alias
47
-
48
- # Indicates whether the 3DS Requestor requests the ACS to utilize Decoupled Authentication and agrees to utilize Decoupled Authentication if the ACS confirms its use. Possible Values: Y - Decoupled Authentication is supported and preferred if challenge is necessary N - Do not use Decoupled Authentication **Default Value**: N
49
- attr_accessor :decoupled_authentication_indicator
50
-
51
- # Indicates the maximum amount of time that the 3DS Requestor will wait for an ACS (Active control server) to provide the results of a Decoupled Authentication transaction (in minutes). Possible Values: Numeric values between 1 and 10080 accepted.
52
- attr_accessor :decoupled_authentication_max_time
53
-
54
- # Indicates that the card being used is the one designated as the primary payment card for purchase. Recommended for Discover ProtectBuy.
55
- attr_accessor :default_card
56
-
57
- # Determines the channel that the transaction came through. Possible Values: SDK/Browser/3RI. 3RI - 3DS request initiated.
58
- attr_accessor :device_channel
59
-
60
- # An integer value greater than 1 indicating the max number of permitted authorizations for installment payments. **Note** This is required if the merchant and cardholder have agreed to installment payments.
61
- attr_accessor :installment_total_count
62
-
63
- # Calculated by merchants as per PSD2** RTS** (EEA** card fraud divided by all EEA card volumes). Possible Values: 1 = Represents fraud rate <=1 2 = Represents fraud rate >1 and <=6 3 = Represents fraud rate >6 and <=13 4 = Represents fraud rate >13 and <=25 5 = Represents fraud rate >25 EEA** = European Economic Area RTS** = Regulatory Technical Standards PSD2** = Payment Services Directive
64
- attr_accessor :merchant_fraud_rate
65
-
66
- # Indicates whether the customer has opted in for marketing offers. Recommended for Discover ProtectBuy.
67
- attr_accessor :marketing_opt_in
68
-
69
- # Indicates origin of the marketing offer. Recommended for Discover ProtectBuy.
70
- attr_accessor :marketing_source
71
-
72
- # Merchant category code. **Important** Required only for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
73
- attr_accessor :mcc
74
-
75
- # Risk Score provided by merchants. This is specific for CB transactions.
76
- attr_accessor :merchant_score
77
-
78
- # Category of the message for a specific use case. Possible values: - `01`: PA- payment authentication - `02`: NPA- non-payment authentication - `03-79`: Reserved for EMVCo future use (values invalid until defined by EMVCo) - `80-99`: Reserved for DS use
79
- attr_accessor :message_category
80
-
81
- # Non-Payer Authentication Indicator. Possible values: - `01`: Add card - `02`: Maintain card information - `03`: Cardholder verification for EMV token - `04-80` Reserved for EMVCo - `80-90` Reserved DS
82
- attr_accessor :npa_code
83
-
84
- # Specifies the Brazilian payment account type used for the transaction. This field overrides other payment types that might be specified in the request. Use one of the following values for this field: - `NA`: Not applicable. Do not override other payment types that are specified in the request. - `CR`: Credit card. - `DB`: Debit card. - `VSAVR`: Visa Vale Refeicao - `VSAVA`: Visa Vale Alimentacao **Important** Required only for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
85
- attr_accessor :override_payment_method
86
-
87
- # Two-character [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf)..
88
- attr_accessor :override_country_code
89
-
90
- # This field carry data that the ACS can use to verify the authentication process.
91
- attr_accessor :prior_authentication_data
92
-
93
- # Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. 01 - Frictionless authentication occurred by ACS 02 - Cardholder challenge occurred by ACS 03 - AVS verified 04 - Other issuer methods 05-79 - Reserved for EMVCo future use (values invalid until defined by EMVCo) 80-99 - Reserved for DS use
94
- attr_accessor :prior_authentication_method
95
-
96
- # This data element contains a ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder
97
- attr_accessor :prior_authentication_reference_id
98
-
99
- # Date and time in UTC of the prior cardholder authentication. Format – YYYYMMDDHHMM
100
- attr_accessor :prior_authentication_time
101
-
102
- # Specifies the product code, which designates the type of transaction. Specify one of the following values for this field: - AIR: Airline purchase Important Required for American Express SafeKey (U.S.). - `ACC`: Accommodation Rental - `ACF`: Account funding - `CHA`: Check acceptance - `DIG`: Digital Goods - `DSP`: Cash Dispensing - `GAS`: Fuel - `GEN`: General Retail - `LUX`: Luxury Retail - `PAL`: Prepaid activation and load - `PHY`: Goods or services purchase - `QCT`: Quasi-cash transaction - `REN`: Car Rental - `RES`: Restaurant - `SVC`: Services - `TBD`: Other - `TRA`: Travel **Important** Required for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
103
- attr_accessor :product_code
104
-
105
- # The URL of the merchant's return page. CyberSource adds this return URL to the step-up JWT and returns it in the response of the Payer Authentication enrollment call. The merchant's return URL page serves as a listening URL. Once the bank session completes, the merchant receives a POST to their URL. This response contains the completed bank session's transactionId. The merchant's return page should capture the transaction ID and send it in the Payer Authentication validation call.
106
- attr_accessor :return_url
107
-
108
- # Cardinal's directory server assigned 3DS Requestor ID value
109
- attr_accessor :requestor_id
110
-
111
- # Indicates the type of 3RI request. Possible Values: 01 - Recurring transaction 02 - Installment transaction 03 - Add card 04 - Maintain card 05 - Account verification 06 - Split/delayed shipment 07 - Top-up 08 - Mail Order 09 - Telephone Order 10 - Whitelist status check 11 - Other payment
112
- attr_accessor :requestor_initiated_authentication_indicator
113
-
114
- # Cardinal's directory server assigned 3DS Requestor Name value
115
- attr_accessor :requestor_name
116
-
117
- # Reference ID that corresponds to the device fingerprinting data that was collected previously. Note Required for Hybrid integration.
118
- attr_accessor :reference_id
119
-
120
- # This field indicates the maximum amount of time for all 3DS 2.0 messages to be communicated between all components (in minutes). Possible Values: Greater than or equal to 05 (05 is the minimum timeout to set) Cardinal Default is set to 15 NOTE: This field is a required 3DS 2.0 field and Cardinal sends in a default of 15 if nothing is passed
121
- attr_accessor :sdk_max_timeout
122
-
123
- # Indicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies. Possible Values : 0/1
124
- attr_accessor :secure_corporate_payment_indicator
125
-
126
- # Transaction mode identifier. Identifies the channel from which the transaction originates. Possible values: - `M`: MOTO (Mail Order Telephone Order) - `R`: Retail - `S`: eCommerce - `P`: Mobile Device - `T`: Tablet
127
- attr_accessor :transaction_mode
128
-
129
- # 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
130
- attr_accessor :white_list_status
131
-
132
- # Risk Assessment from Mastercard. This is to be sent by merchant if they would like to request a score
133
- attr_accessor :score_request
134
-
135
- # Attribute mapping from ruby-style variable name to JSON key.
136
- def self.attribute_map
137
- {
138
- :'strong_authentication' => :'strongAuthentication',
139
- :'acs_window_size' => :'acsWindowSize',
140
- :'alternate_authentication_data' => :'alternateAuthenticationData',
141
- :'alternate_authentication_date' => :'alternateAuthenticationDate',
142
- :'alternate_authentication_method' => :'alternateAuthenticationMethod',
143
- :'authentication_date' => :'authenticationDate',
144
- :'authentication_transaction_id' => :'authenticationTransactionId',
145
- :'transaction_flow_indicator' => :'transactionFlowIndicator',
146
- :'challenge_code' => :'challengeCode',
147
- :'challenge_status' => :'challengeStatus',
148
- :'customer_card_alias' => :'customerCardAlias',
149
- :'decoupled_authentication_indicator' => :'decoupledAuthenticationIndicator',
150
- :'decoupled_authentication_max_time' => :'decoupledAuthenticationMaxTime',
151
- :'default_card' => :'defaultCard',
152
- :'device_channel' => :'deviceChannel',
153
- :'installment_total_count' => :'installmentTotalCount',
154
- :'merchant_fraud_rate' => :'merchantFraudRate',
155
- :'marketing_opt_in' => :'marketingOptIn',
156
- :'marketing_source' => :'marketingSource',
157
- :'mcc' => :'mcc',
158
- :'merchant_score' => :'merchantScore',
159
- :'message_category' => :'messageCategory',
160
- :'npa_code' => :'npaCode',
161
- :'override_payment_method' => :'overridePaymentMethod',
162
- :'override_country_code' => :'overrideCountryCode',
163
- :'prior_authentication_data' => :'priorAuthenticationData',
164
- :'prior_authentication_method' => :'priorAuthenticationMethod',
165
- :'prior_authentication_reference_id' => :'priorAuthenticationReferenceId',
166
- :'prior_authentication_time' => :'priorAuthenticationTime',
167
- :'product_code' => :'productCode',
168
- :'return_url' => :'returnUrl',
169
- :'requestor_id' => :'requestorId',
170
- :'requestor_initiated_authentication_indicator' => :'requestorInitiatedAuthenticationIndicator',
171
- :'requestor_name' => :'requestorName',
172
- :'reference_id' => :'referenceId',
173
- :'sdk_max_timeout' => :'sdkMaxTimeout',
174
- :'secure_corporate_payment_indicator' => :'secureCorporatePaymentIndicator',
175
- :'transaction_mode' => :'transactionMode',
176
- :'white_list_status' => :'whiteListStatus',
177
- :'score_request' => :'scoreRequest'
178
- }
179
- end
180
-
181
- # Attribute mapping from JSON key to ruby-style variable name.
182
- def self.json_map
183
- {
184
- :'strong_authentication' => :'strong_authentication',
185
- :'acs_window_size' => :'acs_window_size',
186
- :'alternate_authentication_data' => :'alternate_authentication_data',
187
- :'alternate_authentication_date' => :'alternate_authentication_date',
188
- :'alternate_authentication_method' => :'alternate_authentication_method',
189
- :'authentication_date' => :'authentication_date',
190
- :'authentication_transaction_id' => :'authentication_transaction_id',
191
- :'transaction_flow_indicator' => :'transaction_flow_indicator',
192
- :'challenge_code' => :'challenge_code',
193
- :'challenge_status' => :'challenge_status',
194
- :'customer_card_alias' => :'customer_card_alias',
195
- :'decoupled_authentication_indicator' => :'decoupled_authentication_indicator',
196
- :'decoupled_authentication_max_time' => :'decoupled_authentication_max_time',
197
- :'default_card' => :'default_card',
198
- :'device_channel' => :'device_channel',
199
- :'installment_total_count' => :'installment_total_count',
200
- :'merchant_fraud_rate' => :'merchant_fraud_rate',
201
- :'marketing_opt_in' => :'marketing_opt_in',
202
- :'marketing_source' => :'marketing_source',
203
- :'mcc' => :'mcc',
204
- :'merchant_score' => :'merchant_score',
205
- :'message_category' => :'message_category',
206
- :'npa_code' => :'npa_code',
207
- :'override_payment_method' => :'override_payment_method',
208
- :'override_country_code' => :'override_country_code',
209
- :'prior_authentication_data' => :'prior_authentication_data',
210
- :'prior_authentication_method' => :'prior_authentication_method',
211
- :'prior_authentication_reference_id' => :'prior_authentication_reference_id',
212
- :'prior_authentication_time' => :'prior_authentication_time',
213
- :'product_code' => :'product_code',
214
- :'return_url' => :'return_url',
215
- :'requestor_id' => :'requestor_id',
216
- :'requestor_initiated_authentication_indicator' => :'requestor_initiated_authentication_indicator',
217
- :'requestor_name' => :'requestor_name',
218
- :'reference_id' => :'reference_id',
219
- :'sdk_max_timeout' => :'sdk_max_timeout',
220
- :'secure_corporate_payment_indicator' => :'secure_corporate_payment_indicator',
221
- :'transaction_mode' => :'transaction_mode',
222
- :'white_list_status' => :'white_list_status',
223
- :'score_request' => :'score_request'
224
- }
225
- end
226
-
227
- # Attribute type mapping.
228
- def self.swagger_types
229
- {
230
- :'strong_authentication' => :'Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication',
231
- :'acs_window_size' => :'String',
232
- :'alternate_authentication_data' => :'String',
233
- :'alternate_authentication_date' => :'String',
234
- :'alternate_authentication_method' => :'String',
235
- :'authentication_date' => :'String',
236
- :'authentication_transaction_id' => :'String',
237
- :'transaction_flow_indicator' => :'Integer',
238
- :'challenge_code' => :'String',
239
- :'challenge_status' => :'String',
240
- :'customer_card_alias' => :'String',
241
- :'decoupled_authentication_indicator' => :'String',
242
- :'decoupled_authentication_max_time' => :'String',
243
- :'default_card' => :'BOOLEAN',
244
- :'device_channel' => :'String',
245
- :'installment_total_count' => :'Integer',
246
- :'merchant_fraud_rate' => :'String',
247
- :'marketing_opt_in' => :'BOOLEAN',
248
- :'marketing_source' => :'String',
249
- :'mcc' => :'String',
250
- :'merchant_score' => :'Integer',
251
- :'message_category' => :'String',
252
- :'npa_code' => :'String',
253
- :'override_payment_method' => :'String',
254
- :'override_country_code' => :'String',
255
- :'prior_authentication_data' => :'String',
256
- :'prior_authentication_method' => :'String',
257
- :'prior_authentication_reference_id' => :'String',
258
- :'prior_authentication_time' => :'String',
259
- :'product_code' => :'String',
260
- :'return_url' => :'String',
261
- :'requestor_id' => :'String',
262
- :'requestor_initiated_authentication_indicator' => :'String',
263
- :'requestor_name' => :'String',
264
- :'reference_id' => :'String',
265
- :'sdk_max_timeout' => :'String',
266
- :'secure_corporate_payment_indicator' => :'String',
267
- :'transaction_mode' => :'String',
268
- :'white_list_status' => :'String',
269
- :'score_request' => :'Integer'
270
- }
271
- end
272
-
273
- # Initializes the object
274
- # @param [Hash] attributes Model attributes in the form of hash
275
- def initialize(attributes = {})
276
- return unless attributes.is_a?(Hash)
277
-
278
- # convert string to symbol for hash key
279
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
280
-
281
- if attributes.has_key?(:'strongAuthentication')
282
- self.strong_authentication = attributes[:'strongAuthentication']
283
- end
284
-
285
- if attributes.has_key?(:'acsWindowSize')
286
- self.acs_window_size = attributes[:'acsWindowSize']
287
- end
288
-
289
- if attributes.has_key?(:'alternateAuthenticationData')
290
- self.alternate_authentication_data = attributes[:'alternateAuthenticationData']
291
- end
292
-
293
- if attributes.has_key?(:'alternateAuthenticationDate')
294
- self.alternate_authentication_date = attributes[:'alternateAuthenticationDate']
295
- end
296
-
297
- if attributes.has_key?(:'alternateAuthenticationMethod')
298
- self.alternate_authentication_method = attributes[:'alternateAuthenticationMethod']
299
- end
300
-
301
- if attributes.has_key?(:'authenticationDate')
302
- self.authentication_date = attributes[:'authenticationDate']
303
- end
304
-
305
- if attributes.has_key?(:'authenticationTransactionId')
306
- self.authentication_transaction_id = attributes[:'authenticationTransactionId']
307
- end
308
-
309
- if attributes.has_key?(:'transactionFlowIndicator')
310
- self.transaction_flow_indicator = attributes[:'transactionFlowIndicator']
311
- end
312
-
313
- if attributes.has_key?(:'challengeCode')
314
- self.challenge_code = attributes[:'challengeCode']
315
- end
316
-
317
- if attributes.has_key?(:'challengeStatus')
318
- self.challenge_status = attributes[:'challengeStatus']
319
- end
320
-
321
- if attributes.has_key?(:'customerCardAlias')
322
- self.customer_card_alias = attributes[:'customerCardAlias']
323
- end
324
-
325
- if attributes.has_key?(:'decoupledAuthenticationIndicator')
326
- self.decoupled_authentication_indicator = attributes[:'decoupledAuthenticationIndicator']
327
- end
328
-
329
- if attributes.has_key?(:'decoupledAuthenticationMaxTime')
330
- self.decoupled_authentication_max_time = attributes[:'decoupledAuthenticationMaxTime']
331
- end
332
-
333
- if attributes.has_key?(:'defaultCard')
334
- self.default_card = attributes[:'defaultCard']
335
- end
336
-
337
- if attributes.has_key?(:'deviceChannel')
338
- self.device_channel = attributes[:'deviceChannel']
339
- end
340
-
341
- if attributes.has_key?(:'installmentTotalCount')
342
- self.installment_total_count = attributes[:'installmentTotalCount']
343
- end
344
-
345
- if attributes.has_key?(:'merchantFraudRate')
346
- self.merchant_fraud_rate = attributes[:'merchantFraudRate']
347
- end
348
-
349
- if attributes.has_key?(:'marketingOptIn')
350
- self.marketing_opt_in = attributes[:'marketingOptIn']
351
- end
352
-
353
- if attributes.has_key?(:'marketingSource')
354
- self.marketing_source = attributes[:'marketingSource']
355
- end
356
-
357
- if attributes.has_key?(:'mcc')
358
- self.mcc = attributes[:'mcc']
359
- end
360
-
361
- if attributes.has_key?(:'merchantScore')
362
- self.merchant_score = attributes[:'merchantScore']
363
- end
364
-
365
- if attributes.has_key?(:'messageCategory')
366
- self.message_category = attributes[:'messageCategory']
367
- end
368
-
369
- if attributes.has_key?(:'npaCode')
370
- self.npa_code = attributes[:'npaCode']
371
- end
372
-
373
- if attributes.has_key?(:'overridePaymentMethod')
374
- self.override_payment_method = attributes[:'overridePaymentMethod']
375
- end
376
-
377
- if attributes.has_key?(:'overrideCountryCode')
378
- self.override_country_code = attributes[:'overrideCountryCode']
379
- end
380
-
381
- if attributes.has_key?(:'priorAuthenticationData')
382
- self.prior_authentication_data = attributes[:'priorAuthenticationData']
383
- end
384
-
385
- if attributes.has_key?(:'priorAuthenticationMethod')
386
- self.prior_authentication_method = attributes[:'priorAuthenticationMethod']
387
- end
388
-
389
- if attributes.has_key?(:'priorAuthenticationReferenceId')
390
- self.prior_authentication_reference_id = attributes[:'priorAuthenticationReferenceId']
391
- end
392
-
393
- if attributes.has_key?(:'priorAuthenticationTime')
394
- self.prior_authentication_time = attributes[:'priorAuthenticationTime']
395
- end
396
-
397
- if attributes.has_key?(:'productCode')
398
- self.product_code = attributes[:'productCode']
399
- end
400
-
401
- if attributes.has_key?(:'returnUrl')
402
- self.return_url = attributes[:'returnUrl']
403
- end
404
-
405
- if attributes.has_key?(:'requestorId')
406
- self.requestor_id = attributes[:'requestorId']
407
- end
408
-
409
- if attributes.has_key?(:'requestorInitiatedAuthenticationIndicator')
410
- self.requestor_initiated_authentication_indicator = attributes[:'requestorInitiatedAuthenticationIndicator']
411
- end
412
-
413
- if attributes.has_key?(:'requestorName')
414
- self.requestor_name = attributes[:'requestorName']
415
- end
416
-
417
- if attributes.has_key?(:'referenceId')
418
- self.reference_id = attributes[:'referenceId']
419
- end
420
-
421
- if attributes.has_key?(:'sdkMaxTimeout')
422
- self.sdk_max_timeout = attributes[:'sdkMaxTimeout']
423
- end
424
-
425
- if attributes.has_key?(:'secureCorporatePaymentIndicator')
426
- self.secure_corporate_payment_indicator = attributes[:'secureCorporatePaymentIndicator']
427
- end
428
-
429
- if attributes.has_key?(:'transactionMode')
430
- self.transaction_mode = attributes[:'transactionMode']
431
- end
432
-
433
- if attributes.has_key?(:'whiteListStatus')
434
- self.white_list_status = attributes[:'whiteListStatus']
435
- end
436
-
437
- if attributes.has_key?(:'scoreRequest')
438
- self.score_request = attributes[:'scoreRequest']
439
- end
440
- end
441
-
442
- # Show invalid properties with the reasons. Usually used together with valid?
443
- # @return Array for valid properties with the reasons
444
- def list_invalid_properties
445
- invalid_properties = Array.new
446
- if @device_channel.nil?
447
- invalid_properties.push('invalid value for "device_channel", device_channel cannot be nil.')
448
- end
449
-
450
- invalid_properties
451
- end
452
-
453
- # Check to see if the all the properties in the model are valid
454
- # @return true if the model is valid
455
- def valid?
456
- return false if @device_channel.nil?
457
- true
458
- end
459
-
460
- # Custom attribute writer method with validation
461
- # @param [Object] acs_window_size Value to be assigned
462
- def acs_window_size=(acs_window_size)
463
- @acs_window_size = acs_window_size
464
- end
465
-
466
- # Custom attribute writer method with validation
467
- # @param [Object] alternate_authentication_data Value to be assigned
468
- def alternate_authentication_data=(alternate_authentication_data)
469
- @alternate_authentication_data = alternate_authentication_data
470
- end
471
-
472
- # Custom attribute writer method with validation
473
- # @param [Object] alternate_authentication_date Value to be assigned
474
- def alternate_authentication_date=(alternate_authentication_date)
475
- @alternate_authentication_date = alternate_authentication_date
476
- end
477
-
478
- # Custom attribute writer method with validation
479
- # @param [Object] authentication_date Value to be assigned
480
- def authentication_date=(authentication_date)
481
- @authentication_date = authentication_date
482
- end
483
-
484
- # Custom attribute writer method with validation
485
- # @param [Object] authentication_transaction_id Value to be assigned
486
- def authentication_transaction_id=(authentication_transaction_id)
487
- @authentication_transaction_id = authentication_transaction_id
488
- end
489
-
490
- # Custom attribute writer method with validation
491
- # @param [Object] challenge_status Value to be assigned
492
- def challenge_status=(challenge_status)
493
- @challenge_status = challenge_status
494
- end
495
-
496
- # Custom attribute writer method with validation
497
- # @param [Object] customer_card_alias Value to be assigned
498
- def customer_card_alias=(customer_card_alias)
499
- @customer_card_alias = customer_card_alias
500
- end
501
-
502
- # Custom attribute writer method with validation
503
- # @param [Object] decoupled_authentication_indicator Value to be assigned
504
- def decoupled_authentication_indicator=(decoupled_authentication_indicator)
505
- @decoupled_authentication_indicator = decoupled_authentication_indicator
506
- end
507
-
508
- # Custom attribute writer method with validation
509
- # @param [Object] decoupled_authentication_max_time Value to be assigned
510
- def decoupled_authentication_max_time=(decoupled_authentication_max_time)
511
- @decoupled_authentication_max_time = decoupled_authentication_max_time
512
- end
513
-
514
- # Custom attribute writer method with validation
515
- # @param [Object] device_channel Value to be assigned
516
- def device_channel=(device_channel)
517
- #if device_channel.nil?
518
- #fail ArgumentError, 'device_channel cannot be nil'
519
- #end
520
-
521
- @device_channel = device_channel
522
- end
523
-
524
- # Custom attribute writer method with validation
525
- # @param [Object] merchant_fraud_rate Value to be assigned
526
- def merchant_fraud_rate=(merchant_fraud_rate)
527
- @merchant_fraud_rate = merchant_fraud_rate
528
- end
529
-
530
- # Custom attribute writer method with validation
531
- # @param [Object] marketing_source Value to be assigned
532
- def marketing_source=(marketing_source)
533
- @marketing_source = marketing_source
534
- end
535
-
536
- # Custom attribute writer method with validation
537
- # @param [Object] mcc Value to be assigned
538
- def mcc=(mcc)
539
- @mcc = mcc
540
- end
541
-
542
- # Custom attribute writer method with validation
543
- # @param [Object] npa_code Value to be assigned
544
- def npa_code=(npa_code)
545
- @npa_code = npa_code
546
- end
547
-
548
- # Custom attribute writer method with validation
549
- # @param [Object] override_country_code Value to be assigned
550
- def override_country_code=(override_country_code)
551
- @override_country_code = override_country_code
552
- end
553
-
554
- # Custom attribute writer method with validation
555
- # @param [Object] prior_authentication_data Value to be assigned
556
- def prior_authentication_data=(prior_authentication_data)
557
- @prior_authentication_data = prior_authentication_data
558
- end
559
-
560
- # Custom attribute writer method with validation
561
- # @param [Object] prior_authentication_method Value to be assigned
562
- def prior_authentication_method=(prior_authentication_method)
563
- @prior_authentication_method = prior_authentication_method
564
- end
565
-
566
- # Custom attribute writer method with validation
567
- # @param [Object] prior_authentication_reference_id Value to be assigned
568
- def prior_authentication_reference_id=(prior_authentication_reference_id)
569
- @prior_authentication_reference_id = prior_authentication_reference_id
570
- end
571
-
572
- # Custom attribute writer method with validation
573
- # @param [Object] prior_authentication_time Value to be assigned
574
- def prior_authentication_time=(prior_authentication_time)
575
- @prior_authentication_time = prior_authentication_time
576
- end
577
-
578
- # Custom attribute writer method with validation
579
- # @param [Object] product_code Value to be assigned
580
- def product_code=(product_code)
581
- @product_code = product_code
582
- end
583
-
584
- # Custom attribute writer method with validation
585
- # @param [Object] return_url Value to be assigned
586
- def return_url=(return_url)
587
- @return_url = return_url
588
- end
589
-
590
- # Custom attribute writer method with validation
591
- # @param [Object] requestor_id Value to be assigned
592
- def requestor_id=(requestor_id)
593
- @requestor_id = requestor_id
594
- end
595
-
596
- # Custom attribute writer method with validation
597
- # @param [Object] requestor_initiated_authentication_indicator Value to be assigned
598
- def requestor_initiated_authentication_indicator=(requestor_initiated_authentication_indicator)
599
- @requestor_initiated_authentication_indicator = requestor_initiated_authentication_indicator
600
- end
601
-
602
- # Custom attribute writer method with validation
603
- # @param [Object] requestor_name Value to be assigned
604
- def requestor_name=(requestor_name)
605
- @requestor_name = requestor_name
606
- end
607
-
608
- # Custom attribute writer method with validation
609
- # @param [Object] reference_id Value to be assigned
610
- def reference_id=(reference_id)
611
- @reference_id = reference_id
612
- end
613
-
614
- # Custom attribute writer method with validation
615
- # @param [Object] sdk_max_timeout Value to be assigned
616
- def sdk_max_timeout=(sdk_max_timeout)
617
- @sdk_max_timeout = sdk_max_timeout
618
- end
619
-
620
- # Custom attribute writer method with validation
621
- # @param [Object] secure_corporate_payment_indicator Value to be assigned
622
- def secure_corporate_payment_indicator=(secure_corporate_payment_indicator)
623
- @secure_corporate_payment_indicator = secure_corporate_payment_indicator
624
- end
625
-
626
- # Custom attribute writer method with validation
627
- # @param [Object] white_list_status Value to be assigned
628
- def white_list_status=(white_list_status)
629
- @white_list_status = white_list_status
630
- end
631
-
632
- # Checks equality by comparing each attribute.
633
- # @param [Object] Object to be compared
634
- def ==(o)
635
- return true if self.equal?(o)
636
- self.class == o.class &&
637
- strong_authentication == o.strong_authentication &&
638
- acs_window_size == o.acs_window_size &&
639
- alternate_authentication_data == o.alternate_authentication_data &&
640
- alternate_authentication_date == o.alternate_authentication_date &&
641
- alternate_authentication_method == o.alternate_authentication_method &&
642
- authentication_date == o.authentication_date &&
643
- authentication_transaction_id == o.authentication_transaction_id &&
644
- transaction_flow_indicator == o.transaction_flow_indicator &&
645
- challenge_code == o.challenge_code &&
646
- challenge_status == o.challenge_status &&
647
- customer_card_alias == o.customer_card_alias &&
648
- decoupled_authentication_indicator == o.decoupled_authentication_indicator &&
649
- decoupled_authentication_max_time == o.decoupled_authentication_max_time &&
650
- default_card == o.default_card &&
651
- device_channel == o.device_channel &&
652
- installment_total_count == o.installment_total_count &&
653
- merchant_fraud_rate == o.merchant_fraud_rate &&
654
- marketing_opt_in == o.marketing_opt_in &&
655
- marketing_source == o.marketing_source &&
656
- mcc == o.mcc &&
657
- merchant_score == o.merchant_score &&
658
- message_category == o.message_category &&
659
- npa_code == o.npa_code &&
660
- override_payment_method == o.override_payment_method &&
661
- override_country_code == o.override_country_code &&
662
- prior_authentication_data == o.prior_authentication_data &&
663
- prior_authentication_method == o.prior_authentication_method &&
664
- prior_authentication_reference_id == o.prior_authentication_reference_id &&
665
- prior_authentication_time == o.prior_authentication_time &&
666
- product_code == o.product_code &&
667
- return_url == o.return_url &&
668
- requestor_id == o.requestor_id &&
669
- requestor_initiated_authentication_indicator == o.requestor_initiated_authentication_indicator &&
670
- requestor_name == o.requestor_name &&
671
- reference_id == o.reference_id &&
672
- sdk_max_timeout == o.sdk_max_timeout &&
673
- secure_corporate_payment_indicator == o.secure_corporate_payment_indicator &&
674
- transaction_mode == o.transaction_mode &&
675
- white_list_status == o.white_list_status &&
676
- score_request == o.score_request
677
- end
678
-
679
- # @see the `==` method
680
- # @param [Object] Object to be compared
681
- def eql?(o)
682
- self == o
683
- end
684
-
685
- # Calculates hash code according to all attributes.
686
- # @return [Fixnum] Hash code
687
- def hash
688
- [strong_authentication, acs_window_size, alternate_authentication_data, alternate_authentication_date, alternate_authentication_method, authentication_date, authentication_transaction_id, transaction_flow_indicator, challenge_code, challenge_status, customer_card_alias, decoupled_authentication_indicator, decoupled_authentication_max_time, default_card, device_channel, installment_total_count, merchant_fraud_rate, marketing_opt_in, marketing_source, mcc, merchant_score, message_category, npa_code, override_payment_method, override_country_code, prior_authentication_data, prior_authentication_method, prior_authentication_reference_id, prior_authentication_time, product_code, return_url, requestor_id, requestor_initiated_authentication_indicator, requestor_name, reference_id, sdk_max_timeout, secure_corporate_payment_indicator, transaction_mode, white_list_status, score_request].hash
689
- end
690
-
691
- # Builds the object from hash
692
- # @param [Hash] attributes Model attributes in the form of hash
693
- # @return [Object] Returns the model itself
694
- def build_from_hash(attributes)
695
- return nil unless attributes.is_a?(Hash)
696
- self.class.swagger_types.each_pair do |key, type|
697
- if type =~ /\AArray<(.*)>/i
698
- # check to ensure the input is an array given that the the attribute
699
- # is documented as an array but the input is not
700
- if attributes[self.class.attribute_map[key]].is_a?(Array)
701
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
702
- end
703
- elsif !attributes[self.class.attribute_map[key]].nil?
704
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
705
- end # or else data not found in attributes(hash), not an issue as the data can be optional
706
- end
707
-
708
- self
709
- end
710
-
711
- # Deserializes the data based on type
712
- # @param string type Data type
713
- # @param string value Value to be deserialized
714
- # @return [Object] Deserialized data
715
- def _deserialize(type, value)
716
- case type.to_sym
717
- when :DateTime
718
- DateTime.parse(value)
719
- when :Date
720
- Date.parse(value)
721
- when :String
722
- value.to_s
723
- when :Integer
724
- value.to_i
725
- when :Float
726
- value.to_f
727
- when :BOOLEAN
728
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
729
- true
730
- else
731
- false
732
- end
733
- when :Object
734
- # generic object (usually a Hash), return directly
735
- value
736
- when /\AArray<(?<inner_type>.+)>\z/
737
- inner_type = Regexp.last_match[:inner_type]
738
- value.map { |v| _deserialize(inner_type, v) }
739
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
740
- k_type = Regexp.last_match[:k_type]
741
- v_type = Regexp.last_match[:v_type]
742
- {}.tap do |hash|
743
- value.each do |k, v|
744
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
745
- end
746
- end
747
- else # model
748
- temp_model = CyberSource.const_get(type).new
749
- temp_model.build_from_hash(value)
750
- end
751
- end
752
-
753
- # Returns the string representation of the object
754
- # @return [String] String presentation of the object
755
- def to_s
756
- to_hash.to_s
757
- end
758
-
759
- # to_body is an alias to to_hash (backward compatibility)
760
- # @return [Hash] Returns the object in the form of hash
761
- def to_body
762
- to_hash
763
- end
764
-
765
- # Returns the object in the form of hash
766
- # @return [Hash] Returns the object in the form of hash
767
- def to_hash
768
- hash = {}
769
- self.class.attribute_map.each_pair do |attr, param|
770
- value = self.send(attr)
771
- next if value.nil?
772
- hash[param] = _to_hash(value)
773
- end
774
- hash
775
- end
776
-
777
- # Outputs non-array value in the form of hash
778
- # For object, use to_hash. Otherwise, just return the value
779
- # @param [Object] value Any valid value
780
- # @return [Hash] Returns the value in the form of hash
781
- def _to_hash(value)
782
- if value.is_a?(Array)
783
- value.compact.map { |v| _to_hash(v) }
784
- elsif value.is_a?(Hash)
785
- {}.tap do |hash|
786
- value.each { |k, v| hash[k] = _to_hash(v) }
787
- end
788
- elsif value.respond_to? :to_hash
789
- value.to_hash
790
- else
791
- value
792
- end
793
- end
794
- end
795
- end
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 Riskv1decisionsConsumerAuthenticationInformation
16
+ attr_accessor :strong_authentication
17
+
18
+ # An override field that a merchant can pass in to set the challenge window size to display to the end cardholder. The ACS (Active Control Server) will reply with content that is formatted appropriately to this window size to allow for the best user experience. The sizes are width x height in pixels of the window displayed in the cardholder browser window. 01 - 250x400 02 - 390x400 03 - 500x600 04 - 600x400 05 - Full page
19
+ attr_accessor :acs_window_size
20
+
21
+ # Data that documents and supports a specific authentication process.
22
+ attr_accessor :alternate_authentication_data
23
+
24
+ # Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM
25
+ attr_accessor :alternate_authentication_date
26
+
27
+ # Mechanism used by the cardholder to authenticate to the 3D Secure requestor. Possible values: - `01`: No authentication occurred - `02`: Login using merchant system credentials - `03`: Login using Federated ID - `04`: Login using issuer credentials - `05`: Login using third-party authenticator - `06`: Login using FIDO Authenticator
28
+ attr_accessor :alternate_authentication_method
29
+
30
+ # The date/time of the authentication at the 3DS servers. RISK update authorization service in auth request payload with value returned in `consumerAuthenticationInformation.alternateAuthenticationData` if merchant calls via CYBS or field can be provided by merchant in authorization request if calling an external 3DS provider. This field is supported for Cartes Bancaires Fast'R transactions on Credit Mutuel-CIC. Format: YYYYMMDDHHMMSS
31
+ attr_accessor :authentication_date
32
+
33
+ # Payer authentication transaction identifier passed to link the check enrollment and validate authentication messages.For Rupay,this is passed only in Re-Send OTP usecase. **Note**: Required for Standard integration, Rupay Seamless server to server integration for enroll service. Required for Hybrid integration for validate service.
34
+ attr_accessor :authentication_transaction_id
35
+
36
+ # This field is only applicable to Rupay and is optional. Merchant will have to pass a valid value from 01 through 07 which indicates the transaction flow. Below are the possible values. 01:NW- Transaction performed at domestic merchant. 02:TW- Transaction performed at domestic merchant along with Token provisioning. 03:IT- Transaction performed at International merchant. 04:AT- Authentication Transaction Only. 05:AW- Authentication transaction for provisioning. 06:DI- Domestic InApp Transaction. 07:II- International InApp transaction. 08:GC- Guest Checkout 09:ST- SI Authentication Transaction only 10:SW- SI Authorization along with token provisioning
37
+ attr_accessor :transaction_flow_indicator
38
+
39
+ # Possible values: - `01`: No preference - `02`: No challenge request - `03`: Challenge requested (3D Secure requestor preference) - `04`: Challenge requested (mandate) - `05`: No challenge requested (transactional risk analysis is already performed) - `06`: No challenge requested (Data share only) - `07`: No challenge requested (strong consumer authentication is already performed) - `08`: No challenge requested (utilize whitelist exemption if no challenge required) - `09`: Challenge requested (whitelist prompt requested if challenge required) **Note** This field will default to `01` on merchant configuration and can be overridden by the merchant. EMV 3D Secure version 2.1.0 supports values `01-04`. Version 2.2.0 supports values `01-09`.
40
+ attr_accessor :challenge_code
41
+
42
+ # The `consumerAuthenticationInformation.challengeCode` indicates the authentication type/level, or challenge, that was presented to the cardholder at checkout by the merchant when calling the Carte Bancaire 3DS servers via CYBS RISK services. It conveys to the issuer the alternative authentication methods that the consumer used.
43
+ attr_accessor :challenge_status
44
+
45
+ # An alias that uniquely identifies the customer's account and credit card on file. Note This field is required if Tokenization is enabled in the merchant profile settings.
46
+ attr_accessor :customer_card_alias
47
+
48
+ # Indicates whether the 3DS Requestor requests the ACS to utilize Decoupled Authentication and agrees to utilize Decoupled Authentication if the ACS confirms its use. Possible Values: Y - Decoupled Authentication is supported and preferred if challenge is necessary N - Do not use Decoupled Authentication **Default Value**: N
49
+ attr_accessor :decoupled_authentication_indicator
50
+
51
+ # Indicates the maximum amount of time that the 3DS Requestor will wait for an ACS (Active control server) to provide the results of a Decoupled Authentication transaction (in minutes). Possible Values: Numeric values between 1 and 10080 accepted.
52
+ attr_accessor :decoupled_authentication_max_time
53
+
54
+ # Indicates that the card being used is the one designated as the primary payment card for purchase. Recommended for Discover ProtectBuy.
55
+ attr_accessor :default_card
56
+
57
+ # Determines the channel that the transaction came through. Possible Values: SDK/Browser/3RI. 3RI - 3DS request initiated.
58
+ attr_accessor :device_channel
59
+
60
+ # An integer value greater than 1 indicating the max number of permitted authorizations for installment payments. **Note** This is required if the merchant and cardholder have agreed to installment payments.
61
+ attr_accessor :installment_total_count
62
+
63
+ # Calculated by merchants as per PSD2** RTS** (EEA** card fraud divided by all EEA card volumes). Possible Values: 1 = Represents fraud rate <=1 2 = Represents fraud rate >1 and <=6 3 = Represents fraud rate >6 and <=13 4 = Represents fraud rate >13 and <=25 5 = Represents fraud rate >25 EEA** = European Economic Area RTS** = Regulatory Technical Standards PSD2** = Payment Services Directive
64
+ attr_accessor :merchant_fraud_rate
65
+
66
+ # Indicates whether the customer has opted in for marketing offers. Recommended for Discover ProtectBuy.
67
+ attr_accessor :marketing_opt_in
68
+
69
+ # Indicates origin of the marketing offer. Recommended for Discover ProtectBuy.
70
+ attr_accessor :marketing_source
71
+
72
+ # Merchant category code. **Important** Required only for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
73
+ attr_accessor :mcc
74
+
75
+ # Risk Score provided by merchants. This is specific for CB transactions.
76
+ attr_accessor :merchant_score
77
+
78
+ # Category of the message for a specific use case. Possible values: - `01`: PA- payment authentication - `02`: NPA- non-payment authentication - `03-79`: Reserved for EMVCo future use (values invalid until defined by EMVCo) - `80-99`: Reserved for DS use
79
+ attr_accessor :message_category
80
+
81
+ # Non-Payer Authentication Indicator. Possible values: - `01`: Add card - `02`: Maintain card information - `03`: Cardholder verification for EMV token - `04-80` Reserved for EMVCo - `80-90` Reserved DS
82
+ attr_accessor :npa_code
83
+
84
+ # Specifies the Brazilian payment account type used for the transaction. This field overrides other payment types that might be specified in the request. Use one of the following values for this field: - `NA`: Not applicable. Do not override other payment types that are specified in the request. - `CR`: Credit card. - `DB`: Debit card. - `VSAVR`: Visa Vale Refeicao - `VSAVA`: Visa Vale Alimentacao **Important** Required only for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
85
+ attr_accessor :override_payment_method
86
+
87
+ # Two-character [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf)..
88
+ attr_accessor :override_country_code
89
+
90
+ # This field carry data that the ACS can use to verify the authentication process.
91
+ attr_accessor :prior_authentication_data
92
+
93
+ # Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. 01 - Frictionless authentication occurred by ACS 02 - Cardholder challenge occurred by ACS 03 - AVS verified 04 - Other issuer methods 05-79 - Reserved for EMVCo future use (values invalid until defined by EMVCo) 80-99 - Reserved for DS use
94
+ attr_accessor :prior_authentication_method
95
+
96
+ # This data element contains a ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder
97
+ attr_accessor :prior_authentication_reference_id
98
+
99
+ # Date and time in UTC of the prior cardholder authentication. Format – YYYYMMDDHHMM
100
+ attr_accessor :prior_authentication_time
101
+
102
+ # Specifies the product code, which designates the type of transaction. Specify one of the following values for this field: - AIR: Airline purchase Important Required for American Express SafeKey (U.S.). - `ACC`: Accommodation Rental - `ACF`: Account funding - `CHA`: Check acceptance - `DIG`: Digital Goods - `DSP`: Cash Dispensing - `GAS`: Fuel - `GEN`: General Retail - `LUX`: Luxury Retail - `PAL`: Prepaid activation and load - `PHY`: Goods or services purchase - `QCT`: Quasi-cash transaction - `REN`: Car Rental - `RES`: Restaurant - `SVC`: Services - `TBD`: Other - `TRA`: Travel **Important** Required for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
103
+ attr_accessor :product_code
104
+
105
+ # The URL of the merchant's return page. CyberSource adds this return URL to the step-up JWT and returns it in the response of the Payer Authentication enrollment call. The merchant's return URL page serves as a listening URL. Once the bank session completes, the merchant receives a POST to their URL. This response contains the completed bank session's transactionId. The merchant's return page should capture the transaction ID and send it in the Payer Authentication validation call.
106
+ attr_accessor :return_url
107
+
108
+ # Cardinal's directory server assigned 3DS Requestor ID value
109
+ attr_accessor :requestor_id
110
+
111
+ # Indicates the type of 3RI request. Possible Values: 01 - Recurring transaction 02 - Installment transaction 03 - Add card 04 - Maintain card 05 - Account verification 06 - Split/delayed shipment 07 - Top-up 08 - Mail Order 09 - Telephone Order 10 - Whitelist status check 11 - Other payment
112
+ attr_accessor :requestor_initiated_authentication_indicator
113
+
114
+ # Cardinal's directory server assigned 3DS Requestor Name value
115
+ attr_accessor :requestor_name
116
+
117
+ # Reference ID that corresponds to the device fingerprinting data that was collected previously. Note Required for Hybrid integration.
118
+ attr_accessor :reference_id
119
+
120
+ # This field indicates the maximum amount of time for all 3DS 2.0 messages to be communicated between all components (in minutes). Possible Values: Greater than or equal to 05 (05 is the minimum timeout to set) Cardinal Default is set to 15 NOTE: This field is a required 3DS 2.0 field and Cardinal sends in a default of 15 if nothing is passed
121
+ attr_accessor :sdk_max_timeout
122
+
123
+ # Indicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies. Possible Values : 0/1
124
+ attr_accessor :secure_corporate_payment_indicator
125
+
126
+ # Transaction mode identifier. Identifies the channel from which the transaction originates. Possible values: - `M`: MOTO (Mail Order Telephone Order) - `R`: Retail - `S`: eCommerce - `P`: Mobile Device - `T`: Tablet
127
+ attr_accessor :transaction_mode
128
+
129
+ # 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
130
+ attr_accessor :white_list_status
131
+
132
+ # Risk Assessment from Mastercard. This is to be sent by merchant if they would like to request a score
133
+ attr_accessor :score_request
134
+
135
+ # Attribute mapping from ruby-style variable name to JSON key.
136
+ def self.attribute_map
137
+ {
138
+ :'strong_authentication' => :'strongAuthentication',
139
+ :'acs_window_size' => :'acsWindowSize',
140
+ :'alternate_authentication_data' => :'alternateAuthenticationData',
141
+ :'alternate_authentication_date' => :'alternateAuthenticationDate',
142
+ :'alternate_authentication_method' => :'alternateAuthenticationMethod',
143
+ :'authentication_date' => :'authenticationDate',
144
+ :'authentication_transaction_id' => :'authenticationTransactionId',
145
+ :'transaction_flow_indicator' => :'transactionFlowIndicator',
146
+ :'challenge_code' => :'challengeCode',
147
+ :'challenge_status' => :'challengeStatus',
148
+ :'customer_card_alias' => :'customerCardAlias',
149
+ :'decoupled_authentication_indicator' => :'decoupledAuthenticationIndicator',
150
+ :'decoupled_authentication_max_time' => :'decoupledAuthenticationMaxTime',
151
+ :'default_card' => :'defaultCard',
152
+ :'device_channel' => :'deviceChannel',
153
+ :'installment_total_count' => :'installmentTotalCount',
154
+ :'merchant_fraud_rate' => :'merchantFraudRate',
155
+ :'marketing_opt_in' => :'marketingOptIn',
156
+ :'marketing_source' => :'marketingSource',
157
+ :'mcc' => :'mcc',
158
+ :'merchant_score' => :'merchantScore',
159
+ :'message_category' => :'messageCategory',
160
+ :'npa_code' => :'npaCode',
161
+ :'override_payment_method' => :'overridePaymentMethod',
162
+ :'override_country_code' => :'overrideCountryCode',
163
+ :'prior_authentication_data' => :'priorAuthenticationData',
164
+ :'prior_authentication_method' => :'priorAuthenticationMethod',
165
+ :'prior_authentication_reference_id' => :'priorAuthenticationReferenceId',
166
+ :'prior_authentication_time' => :'priorAuthenticationTime',
167
+ :'product_code' => :'productCode',
168
+ :'return_url' => :'returnUrl',
169
+ :'requestor_id' => :'requestorId',
170
+ :'requestor_initiated_authentication_indicator' => :'requestorInitiatedAuthenticationIndicator',
171
+ :'requestor_name' => :'requestorName',
172
+ :'reference_id' => :'referenceId',
173
+ :'sdk_max_timeout' => :'sdkMaxTimeout',
174
+ :'secure_corporate_payment_indicator' => :'secureCorporatePaymentIndicator',
175
+ :'transaction_mode' => :'transactionMode',
176
+ :'white_list_status' => :'whiteListStatus',
177
+ :'score_request' => :'scoreRequest'
178
+ }
179
+ end
180
+
181
+ # Attribute mapping from JSON key to ruby-style variable name.
182
+ def self.json_map
183
+ {
184
+ :'strong_authentication' => :'strong_authentication',
185
+ :'acs_window_size' => :'acs_window_size',
186
+ :'alternate_authentication_data' => :'alternate_authentication_data',
187
+ :'alternate_authentication_date' => :'alternate_authentication_date',
188
+ :'alternate_authentication_method' => :'alternate_authentication_method',
189
+ :'authentication_date' => :'authentication_date',
190
+ :'authentication_transaction_id' => :'authentication_transaction_id',
191
+ :'transaction_flow_indicator' => :'transaction_flow_indicator',
192
+ :'challenge_code' => :'challenge_code',
193
+ :'challenge_status' => :'challenge_status',
194
+ :'customer_card_alias' => :'customer_card_alias',
195
+ :'decoupled_authentication_indicator' => :'decoupled_authentication_indicator',
196
+ :'decoupled_authentication_max_time' => :'decoupled_authentication_max_time',
197
+ :'default_card' => :'default_card',
198
+ :'device_channel' => :'device_channel',
199
+ :'installment_total_count' => :'installment_total_count',
200
+ :'merchant_fraud_rate' => :'merchant_fraud_rate',
201
+ :'marketing_opt_in' => :'marketing_opt_in',
202
+ :'marketing_source' => :'marketing_source',
203
+ :'mcc' => :'mcc',
204
+ :'merchant_score' => :'merchant_score',
205
+ :'message_category' => :'message_category',
206
+ :'npa_code' => :'npa_code',
207
+ :'override_payment_method' => :'override_payment_method',
208
+ :'override_country_code' => :'override_country_code',
209
+ :'prior_authentication_data' => :'prior_authentication_data',
210
+ :'prior_authentication_method' => :'prior_authentication_method',
211
+ :'prior_authentication_reference_id' => :'prior_authentication_reference_id',
212
+ :'prior_authentication_time' => :'prior_authentication_time',
213
+ :'product_code' => :'product_code',
214
+ :'return_url' => :'return_url',
215
+ :'requestor_id' => :'requestor_id',
216
+ :'requestor_initiated_authentication_indicator' => :'requestor_initiated_authentication_indicator',
217
+ :'requestor_name' => :'requestor_name',
218
+ :'reference_id' => :'reference_id',
219
+ :'sdk_max_timeout' => :'sdk_max_timeout',
220
+ :'secure_corporate_payment_indicator' => :'secure_corporate_payment_indicator',
221
+ :'transaction_mode' => :'transaction_mode',
222
+ :'white_list_status' => :'white_list_status',
223
+ :'score_request' => :'score_request'
224
+ }
225
+ end
226
+
227
+ # Attribute type mapping.
228
+ def self.swagger_types
229
+ {
230
+ :'strong_authentication' => :'Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication',
231
+ :'acs_window_size' => :'String',
232
+ :'alternate_authentication_data' => :'String',
233
+ :'alternate_authentication_date' => :'String',
234
+ :'alternate_authentication_method' => :'String',
235
+ :'authentication_date' => :'String',
236
+ :'authentication_transaction_id' => :'String',
237
+ :'transaction_flow_indicator' => :'Integer',
238
+ :'challenge_code' => :'String',
239
+ :'challenge_status' => :'String',
240
+ :'customer_card_alias' => :'String',
241
+ :'decoupled_authentication_indicator' => :'String',
242
+ :'decoupled_authentication_max_time' => :'String',
243
+ :'default_card' => :'BOOLEAN',
244
+ :'device_channel' => :'String',
245
+ :'installment_total_count' => :'Integer',
246
+ :'merchant_fraud_rate' => :'String',
247
+ :'marketing_opt_in' => :'BOOLEAN',
248
+ :'marketing_source' => :'String',
249
+ :'mcc' => :'String',
250
+ :'merchant_score' => :'Integer',
251
+ :'message_category' => :'String',
252
+ :'npa_code' => :'String',
253
+ :'override_payment_method' => :'String',
254
+ :'override_country_code' => :'String',
255
+ :'prior_authentication_data' => :'String',
256
+ :'prior_authentication_method' => :'String',
257
+ :'prior_authentication_reference_id' => :'String',
258
+ :'prior_authentication_time' => :'String',
259
+ :'product_code' => :'String',
260
+ :'return_url' => :'String',
261
+ :'requestor_id' => :'String',
262
+ :'requestor_initiated_authentication_indicator' => :'String',
263
+ :'requestor_name' => :'String',
264
+ :'reference_id' => :'String',
265
+ :'sdk_max_timeout' => :'String',
266
+ :'secure_corporate_payment_indicator' => :'String',
267
+ :'transaction_mode' => :'String',
268
+ :'white_list_status' => :'String',
269
+ :'score_request' => :'Integer'
270
+ }
271
+ end
272
+
273
+ # Initializes the object
274
+ # @param [Hash] attributes Model attributes in the form of hash
275
+ def initialize(attributes = {})
276
+ return unless attributes.is_a?(Hash)
277
+
278
+ # convert string to symbol for hash key
279
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
280
+
281
+ if attributes.has_key?(:'strongAuthentication')
282
+ self.strong_authentication = attributes[:'strongAuthentication']
283
+ end
284
+
285
+ if attributes.has_key?(:'acsWindowSize')
286
+ self.acs_window_size = attributes[:'acsWindowSize']
287
+ end
288
+
289
+ if attributes.has_key?(:'alternateAuthenticationData')
290
+ self.alternate_authentication_data = attributes[:'alternateAuthenticationData']
291
+ end
292
+
293
+ if attributes.has_key?(:'alternateAuthenticationDate')
294
+ self.alternate_authentication_date = attributes[:'alternateAuthenticationDate']
295
+ end
296
+
297
+ if attributes.has_key?(:'alternateAuthenticationMethod')
298
+ self.alternate_authentication_method = attributes[:'alternateAuthenticationMethod']
299
+ end
300
+
301
+ if attributes.has_key?(:'authenticationDate')
302
+ self.authentication_date = attributes[:'authenticationDate']
303
+ end
304
+
305
+ if attributes.has_key?(:'authenticationTransactionId')
306
+ self.authentication_transaction_id = attributes[:'authenticationTransactionId']
307
+ end
308
+
309
+ if attributes.has_key?(:'transactionFlowIndicator')
310
+ self.transaction_flow_indicator = attributes[:'transactionFlowIndicator']
311
+ end
312
+
313
+ if attributes.has_key?(:'challengeCode')
314
+ self.challenge_code = attributes[:'challengeCode']
315
+ end
316
+
317
+ if attributes.has_key?(:'challengeStatus')
318
+ self.challenge_status = attributes[:'challengeStatus']
319
+ end
320
+
321
+ if attributes.has_key?(:'customerCardAlias')
322
+ self.customer_card_alias = attributes[:'customerCardAlias']
323
+ end
324
+
325
+ if attributes.has_key?(:'decoupledAuthenticationIndicator')
326
+ self.decoupled_authentication_indicator = attributes[:'decoupledAuthenticationIndicator']
327
+ end
328
+
329
+ if attributes.has_key?(:'decoupledAuthenticationMaxTime')
330
+ self.decoupled_authentication_max_time = attributes[:'decoupledAuthenticationMaxTime']
331
+ end
332
+
333
+ if attributes.has_key?(:'defaultCard')
334
+ self.default_card = attributes[:'defaultCard']
335
+ end
336
+
337
+ if attributes.has_key?(:'deviceChannel')
338
+ self.device_channel = attributes[:'deviceChannel']
339
+ end
340
+
341
+ if attributes.has_key?(:'installmentTotalCount')
342
+ self.installment_total_count = attributes[:'installmentTotalCount']
343
+ end
344
+
345
+ if attributes.has_key?(:'merchantFraudRate')
346
+ self.merchant_fraud_rate = attributes[:'merchantFraudRate']
347
+ end
348
+
349
+ if attributes.has_key?(:'marketingOptIn')
350
+ self.marketing_opt_in = attributes[:'marketingOptIn']
351
+ end
352
+
353
+ if attributes.has_key?(:'marketingSource')
354
+ self.marketing_source = attributes[:'marketingSource']
355
+ end
356
+
357
+ if attributes.has_key?(:'mcc')
358
+ self.mcc = attributes[:'mcc']
359
+ end
360
+
361
+ if attributes.has_key?(:'merchantScore')
362
+ self.merchant_score = attributes[:'merchantScore']
363
+ end
364
+
365
+ if attributes.has_key?(:'messageCategory')
366
+ self.message_category = attributes[:'messageCategory']
367
+ end
368
+
369
+ if attributes.has_key?(:'npaCode')
370
+ self.npa_code = attributes[:'npaCode']
371
+ end
372
+
373
+ if attributes.has_key?(:'overridePaymentMethod')
374
+ self.override_payment_method = attributes[:'overridePaymentMethod']
375
+ end
376
+
377
+ if attributes.has_key?(:'overrideCountryCode')
378
+ self.override_country_code = attributes[:'overrideCountryCode']
379
+ end
380
+
381
+ if attributes.has_key?(:'priorAuthenticationData')
382
+ self.prior_authentication_data = attributes[:'priorAuthenticationData']
383
+ end
384
+
385
+ if attributes.has_key?(:'priorAuthenticationMethod')
386
+ self.prior_authentication_method = attributes[:'priorAuthenticationMethod']
387
+ end
388
+
389
+ if attributes.has_key?(:'priorAuthenticationReferenceId')
390
+ self.prior_authentication_reference_id = attributes[:'priorAuthenticationReferenceId']
391
+ end
392
+
393
+ if attributes.has_key?(:'priorAuthenticationTime')
394
+ self.prior_authentication_time = attributes[:'priorAuthenticationTime']
395
+ end
396
+
397
+ if attributes.has_key?(:'productCode')
398
+ self.product_code = attributes[:'productCode']
399
+ end
400
+
401
+ if attributes.has_key?(:'returnUrl')
402
+ self.return_url = attributes[:'returnUrl']
403
+ end
404
+
405
+ if attributes.has_key?(:'requestorId')
406
+ self.requestor_id = attributes[:'requestorId']
407
+ end
408
+
409
+ if attributes.has_key?(:'requestorInitiatedAuthenticationIndicator')
410
+ self.requestor_initiated_authentication_indicator = attributes[:'requestorInitiatedAuthenticationIndicator']
411
+ end
412
+
413
+ if attributes.has_key?(:'requestorName')
414
+ self.requestor_name = attributes[:'requestorName']
415
+ end
416
+
417
+ if attributes.has_key?(:'referenceId')
418
+ self.reference_id = attributes[:'referenceId']
419
+ end
420
+
421
+ if attributes.has_key?(:'sdkMaxTimeout')
422
+ self.sdk_max_timeout = attributes[:'sdkMaxTimeout']
423
+ end
424
+
425
+ if attributes.has_key?(:'secureCorporatePaymentIndicator')
426
+ self.secure_corporate_payment_indicator = attributes[:'secureCorporatePaymentIndicator']
427
+ end
428
+
429
+ if attributes.has_key?(:'transactionMode')
430
+ self.transaction_mode = attributes[:'transactionMode']
431
+ end
432
+
433
+ if attributes.has_key?(:'whiteListStatus')
434
+ self.white_list_status = attributes[:'whiteListStatus']
435
+ end
436
+
437
+ if attributes.has_key?(:'scoreRequest')
438
+ self.score_request = attributes[:'scoreRequest']
439
+ end
440
+ end
441
+
442
+ # Show invalid properties with the reasons. Usually used together with valid?
443
+ # @return Array for valid properties with the reasons
444
+ def list_invalid_properties
445
+ invalid_properties = Array.new
446
+ if @device_channel.nil?
447
+ invalid_properties.push('invalid value for "device_channel", device_channel cannot be nil.')
448
+ end
449
+
450
+ invalid_properties
451
+ end
452
+
453
+ # Check to see if the all the properties in the model are valid
454
+ # @return true if the model is valid
455
+ def valid?
456
+ return false if @device_channel.nil?
457
+ true
458
+ end
459
+
460
+ # Custom attribute writer method with validation
461
+ # @param [Object] acs_window_size Value to be assigned
462
+ def acs_window_size=(acs_window_size)
463
+ @acs_window_size = acs_window_size
464
+ end
465
+
466
+ # Custom attribute writer method with validation
467
+ # @param [Object] alternate_authentication_data Value to be assigned
468
+ def alternate_authentication_data=(alternate_authentication_data)
469
+ @alternate_authentication_data = alternate_authentication_data
470
+ end
471
+
472
+ # Custom attribute writer method with validation
473
+ # @param [Object] alternate_authentication_date Value to be assigned
474
+ def alternate_authentication_date=(alternate_authentication_date)
475
+ @alternate_authentication_date = alternate_authentication_date
476
+ end
477
+
478
+ # Custom attribute writer method with validation
479
+ # @param [Object] authentication_date Value to be assigned
480
+ def authentication_date=(authentication_date)
481
+ @authentication_date = authentication_date
482
+ end
483
+
484
+ # Custom attribute writer method with validation
485
+ # @param [Object] authentication_transaction_id Value to be assigned
486
+ def authentication_transaction_id=(authentication_transaction_id)
487
+ @authentication_transaction_id = authentication_transaction_id
488
+ end
489
+
490
+ # Custom attribute writer method with validation
491
+ # @param [Object] challenge_status Value to be assigned
492
+ def challenge_status=(challenge_status)
493
+ @challenge_status = challenge_status
494
+ end
495
+
496
+ # Custom attribute writer method with validation
497
+ # @param [Object] customer_card_alias Value to be assigned
498
+ def customer_card_alias=(customer_card_alias)
499
+ @customer_card_alias = customer_card_alias
500
+ end
501
+
502
+ # Custom attribute writer method with validation
503
+ # @param [Object] decoupled_authentication_indicator Value to be assigned
504
+ def decoupled_authentication_indicator=(decoupled_authentication_indicator)
505
+ @decoupled_authentication_indicator = decoupled_authentication_indicator
506
+ end
507
+
508
+ # Custom attribute writer method with validation
509
+ # @param [Object] decoupled_authentication_max_time Value to be assigned
510
+ def decoupled_authentication_max_time=(decoupled_authentication_max_time)
511
+ @decoupled_authentication_max_time = decoupled_authentication_max_time
512
+ end
513
+
514
+ # Custom attribute writer method with validation
515
+ # @param [Object] device_channel Value to be assigned
516
+ def device_channel=(device_channel)
517
+ #if device_channel.nil?
518
+ #fail ArgumentError, 'device_channel cannot be nil'
519
+ #end
520
+
521
+ @device_channel = device_channel
522
+ end
523
+
524
+ # Custom attribute writer method with validation
525
+ # @param [Object] merchant_fraud_rate Value to be assigned
526
+ def merchant_fraud_rate=(merchant_fraud_rate)
527
+ @merchant_fraud_rate = merchant_fraud_rate
528
+ end
529
+
530
+ # Custom attribute writer method with validation
531
+ # @param [Object] marketing_source Value to be assigned
532
+ def marketing_source=(marketing_source)
533
+ @marketing_source = marketing_source
534
+ end
535
+
536
+ # Custom attribute writer method with validation
537
+ # @param [Object] mcc Value to be assigned
538
+ def mcc=(mcc)
539
+ @mcc = mcc
540
+ end
541
+
542
+ # Custom attribute writer method with validation
543
+ # @param [Object] npa_code Value to be assigned
544
+ def npa_code=(npa_code)
545
+ @npa_code = npa_code
546
+ end
547
+
548
+ # Custom attribute writer method with validation
549
+ # @param [Object] override_country_code Value to be assigned
550
+ def override_country_code=(override_country_code)
551
+ @override_country_code = override_country_code
552
+ end
553
+
554
+ # Custom attribute writer method with validation
555
+ # @param [Object] prior_authentication_data Value to be assigned
556
+ def prior_authentication_data=(prior_authentication_data)
557
+ @prior_authentication_data = prior_authentication_data
558
+ end
559
+
560
+ # Custom attribute writer method with validation
561
+ # @param [Object] prior_authentication_method Value to be assigned
562
+ def prior_authentication_method=(prior_authentication_method)
563
+ @prior_authentication_method = prior_authentication_method
564
+ end
565
+
566
+ # Custom attribute writer method with validation
567
+ # @param [Object] prior_authentication_reference_id Value to be assigned
568
+ def prior_authentication_reference_id=(prior_authentication_reference_id)
569
+ @prior_authentication_reference_id = prior_authentication_reference_id
570
+ end
571
+
572
+ # Custom attribute writer method with validation
573
+ # @param [Object] prior_authentication_time Value to be assigned
574
+ def prior_authentication_time=(prior_authentication_time)
575
+ @prior_authentication_time = prior_authentication_time
576
+ end
577
+
578
+ # Custom attribute writer method with validation
579
+ # @param [Object] product_code Value to be assigned
580
+ def product_code=(product_code)
581
+ @product_code = product_code
582
+ end
583
+
584
+ # Custom attribute writer method with validation
585
+ # @param [Object] return_url Value to be assigned
586
+ def return_url=(return_url)
587
+ @return_url = return_url
588
+ end
589
+
590
+ # Custom attribute writer method with validation
591
+ # @param [Object] requestor_id Value to be assigned
592
+ def requestor_id=(requestor_id)
593
+ @requestor_id = requestor_id
594
+ end
595
+
596
+ # Custom attribute writer method with validation
597
+ # @param [Object] requestor_initiated_authentication_indicator Value to be assigned
598
+ def requestor_initiated_authentication_indicator=(requestor_initiated_authentication_indicator)
599
+ @requestor_initiated_authentication_indicator = requestor_initiated_authentication_indicator
600
+ end
601
+
602
+ # Custom attribute writer method with validation
603
+ # @param [Object] requestor_name Value to be assigned
604
+ def requestor_name=(requestor_name)
605
+ @requestor_name = requestor_name
606
+ end
607
+
608
+ # Custom attribute writer method with validation
609
+ # @param [Object] reference_id Value to be assigned
610
+ def reference_id=(reference_id)
611
+ @reference_id = reference_id
612
+ end
613
+
614
+ # Custom attribute writer method with validation
615
+ # @param [Object] sdk_max_timeout Value to be assigned
616
+ def sdk_max_timeout=(sdk_max_timeout)
617
+ @sdk_max_timeout = sdk_max_timeout
618
+ end
619
+
620
+ # Custom attribute writer method with validation
621
+ # @param [Object] secure_corporate_payment_indicator Value to be assigned
622
+ def secure_corporate_payment_indicator=(secure_corporate_payment_indicator)
623
+ @secure_corporate_payment_indicator = secure_corporate_payment_indicator
624
+ end
625
+
626
+ # Custom attribute writer method with validation
627
+ # @param [Object] white_list_status Value to be assigned
628
+ def white_list_status=(white_list_status)
629
+ @white_list_status = white_list_status
630
+ end
631
+
632
+ # Checks equality by comparing each attribute.
633
+ # @param [Object] Object to be compared
634
+ def ==(o)
635
+ return true if self.equal?(o)
636
+ self.class == o.class &&
637
+ strong_authentication == o.strong_authentication &&
638
+ acs_window_size == o.acs_window_size &&
639
+ alternate_authentication_data == o.alternate_authentication_data &&
640
+ alternate_authentication_date == o.alternate_authentication_date &&
641
+ alternate_authentication_method == o.alternate_authentication_method &&
642
+ authentication_date == o.authentication_date &&
643
+ authentication_transaction_id == o.authentication_transaction_id &&
644
+ transaction_flow_indicator == o.transaction_flow_indicator &&
645
+ challenge_code == o.challenge_code &&
646
+ challenge_status == o.challenge_status &&
647
+ customer_card_alias == o.customer_card_alias &&
648
+ decoupled_authentication_indicator == o.decoupled_authentication_indicator &&
649
+ decoupled_authentication_max_time == o.decoupled_authentication_max_time &&
650
+ default_card == o.default_card &&
651
+ device_channel == o.device_channel &&
652
+ installment_total_count == o.installment_total_count &&
653
+ merchant_fraud_rate == o.merchant_fraud_rate &&
654
+ marketing_opt_in == o.marketing_opt_in &&
655
+ marketing_source == o.marketing_source &&
656
+ mcc == o.mcc &&
657
+ merchant_score == o.merchant_score &&
658
+ message_category == o.message_category &&
659
+ npa_code == o.npa_code &&
660
+ override_payment_method == o.override_payment_method &&
661
+ override_country_code == o.override_country_code &&
662
+ prior_authentication_data == o.prior_authentication_data &&
663
+ prior_authentication_method == o.prior_authentication_method &&
664
+ prior_authentication_reference_id == o.prior_authentication_reference_id &&
665
+ prior_authentication_time == o.prior_authentication_time &&
666
+ product_code == o.product_code &&
667
+ return_url == o.return_url &&
668
+ requestor_id == o.requestor_id &&
669
+ requestor_initiated_authentication_indicator == o.requestor_initiated_authentication_indicator &&
670
+ requestor_name == o.requestor_name &&
671
+ reference_id == o.reference_id &&
672
+ sdk_max_timeout == o.sdk_max_timeout &&
673
+ secure_corporate_payment_indicator == o.secure_corporate_payment_indicator &&
674
+ transaction_mode == o.transaction_mode &&
675
+ white_list_status == o.white_list_status &&
676
+ score_request == o.score_request
677
+ end
678
+
679
+ # @see the `==` method
680
+ # @param [Object] Object to be compared
681
+ def eql?(o)
682
+ self == o
683
+ end
684
+
685
+ # Calculates hash code according to all attributes.
686
+ # @return [Fixnum] Hash code
687
+ def hash
688
+ [strong_authentication, acs_window_size, alternate_authentication_data, alternate_authentication_date, alternate_authentication_method, authentication_date, authentication_transaction_id, transaction_flow_indicator, challenge_code, challenge_status, customer_card_alias, decoupled_authentication_indicator, decoupled_authentication_max_time, default_card, device_channel, installment_total_count, merchant_fraud_rate, marketing_opt_in, marketing_source, mcc, merchant_score, message_category, npa_code, override_payment_method, override_country_code, prior_authentication_data, prior_authentication_method, prior_authentication_reference_id, prior_authentication_time, product_code, return_url, requestor_id, requestor_initiated_authentication_indicator, requestor_name, reference_id, sdk_max_timeout, secure_corporate_payment_indicator, transaction_mode, white_list_status, score_request].hash
689
+ end
690
+
691
+ # Builds the object from hash
692
+ # @param [Hash] attributes Model attributes in the form of hash
693
+ # @return [Object] Returns the model itself
694
+ def build_from_hash(attributes)
695
+ return nil unless attributes.is_a?(Hash)
696
+ self.class.swagger_types.each_pair do |key, type|
697
+ if type =~ /\AArray<(.*)>/i
698
+ # check to ensure the input is an array given that the the attribute
699
+ # is documented as an array but the input is not
700
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
701
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
702
+ end
703
+ elsif !attributes[self.class.attribute_map[key]].nil?
704
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
705
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
706
+ end
707
+
708
+ self
709
+ end
710
+
711
+ # Deserializes the data based on type
712
+ # @param string type Data type
713
+ # @param string value Value to be deserialized
714
+ # @return [Object] Deserialized data
715
+ def _deserialize(type, value)
716
+ case type.to_sym
717
+ when :DateTime
718
+ DateTime.parse(value)
719
+ when :Date
720
+ Date.parse(value)
721
+ when :String
722
+ value.to_s
723
+ when :Integer
724
+ value.to_i
725
+ when :Float
726
+ value.to_f
727
+ when :BOOLEAN
728
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
729
+ true
730
+ else
731
+ false
732
+ end
733
+ when :Object
734
+ # generic object (usually a Hash), return directly
735
+ value
736
+ when /\AArray<(?<inner_type>.+)>\z/
737
+ inner_type = Regexp.last_match[:inner_type]
738
+ value.map { |v| _deserialize(inner_type, v) }
739
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
740
+ k_type = Regexp.last_match[:k_type]
741
+ v_type = Regexp.last_match[:v_type]
742
+ {}.tap do |hash|
743
+ value.each do |k, v|
744
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
745
+ end
746
+ end
747
+ else # model
748
+ temp_model = CyberSource.const_get(type).new
749
+ temp_model.build_from_hash(value)
750
+ end
751
+ end
752
+
753
+ # Returns the string representation of the object
754
+ # @return [String] String presentation of the object
755
+ def to_s
756
+ to_hash.to_s
757
+ end
758
+
759
+ # to_body is an alias to to_hash (backward compatibility)
760
+ # @return [Hash] Returns the object in the form of hash
761
+ def to_body
762
+ to_hash
763
+ end
764
+
765
+ # Returns the object in the form of hash
766
+ # @return [Hash] Returns the object in the form of hash
767
+ def to_hash
768
+ hash = {}
769
+ self.class.attribute_map.each_pair do |attr, param|
770
+ value = self.send(attr)
771
+ next if value.nil?
772
+ hash[param] = _to_hash(value)
773
+ end
774
+ hash
775
+ end
776
+
777
+ # Outputs non-array value in the form of hash
778
+ # For object, use to_hash. Otherwise, just return the value
779
+ # @param [Object] value Any valid value
780
+ # @return [Hash] Returns the value in the form of hash
781
+ def _to_hash(value)
782
+ if value.is_a?(Array)
783
+ value.compact.map { |v| _to_hash(v) }
784
+ elsif value.is_a?(Hash)
785
+ {}.tap do |hash|
786
+ value.each { |k, v| hash[k] = _to_hash(v) }
787
+ end
788
+ elsif value.respond_to? :to_hash
789
+ value.to_hash
790
+ else
791
+ value
792
+ end
793
+ end
794
+ end
795
+ end