cybersource_rest_client 0.0.64 → 0.0.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
  3. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
  4. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +3 -3
  5. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +6 -6
  6. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
  7. data/lib/cybersource_rest_client/models/bin_lookupv400_response.rb +224 -224
  8. data/lib/cybersource_rest_client/models/binv1binlookup_client_reference_information.rb +222 -222
  9. data/lib/cybersource_rest_client/models/binv1binlookup_payment_information.rb +219 -219
  10. data/lib/cybersource_rest_client/models/binv1binlookup_payment_information_card.rb +196 -196
  11. data/lib/cybersource_rest_client/models/binv1binlookup_processing_information.rb +200 -200
  12. data/lib/cybersource_rest_client/models/binv1binlookup_processing_information_payout_options.rb +213 -213
  13. data/lib/cybersource_rest_client/models/binv1binlookup_token_information.rb +207 -207
  14. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +321 -321
  15. data/lib/cybersource_rest_client/models/create_bin_lookup_request.rb +219 -219
  16. data/lib/cybersource_rest_client/models/create_payment_request.rb +462 -452
  17. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +253 -247
  18. data/lib/cybersource_rest_client/models/{inline_response_200_2_integration_information.rb → inline_response_200_1_integration_information.rb} +204 -204
  19. data/lib/cybersource_rest_client/models/{inline_response_200_2_integration_information_tenant_configurations.rb → inline_response_200_1_integration_information_tenant_configurations.rb} +296 -296
  20. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +25 -65
  21. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +335 -213
  22. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +251 -335
  23. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded.rb → inline_response_200_5__embedded.rb} +191 -191
  24. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded__links.rb → inline_response_200_5__embedded__links.rb} +191 -191
  25. data/lib/cybersource_rest_client/models/{inline_response_200_7__links_report.rb → inline_response_200_5__embedded__links_reports.rb} +190 -189
  26. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded_batches.rb → inline_response_200_5__embedded_batches.rb} +295 -295
  27. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded_totals.rb → inline_response_200_5__embedded_totals.rb} +229 -229
  28. data/lib/cybersource_rest_client/models/inline_response_200_5__links.rb +200 -0
  29. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +290 -251
  30. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +201 -200
  31. data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded__links_reports.rb → inline_response_200_6__links_report.rb} +189 -190
  32. data/lib/cybersource_rest_client/models/{inline_response_200_7_billing.rb → inline_response_200_6_billing.rb} +219 -219
  33. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +292 -290
  34. data/lib/cybersource_rest_client/models/{inline_response_200_8_records.rb → inline_response_200_7_records.rb} +209 -209
  35. data/lib/cybersource_rest_client/models/{inline_response_200_8_response_record.rb → inline_response_200_7_response_record.rb} +307 -307
  36. data/lib/cybersource_rest_client/models/{inline_response_200_8_response_record_additional_updates.rb → inline_response_200_7_response_record_additional_updates.rb} +242 -242
  37. data/lib/cybersource_rest_client/models/{inline_response_200_8_source_record.rb → inline_response_200_7_source_record.rb} +295 -295
  38. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +248 -248
  39. data/lib/cybersource_rest_client/models/inline_response_201_1_issuer_information.rb +264 -264
  40. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information.rb +209 -209
  41. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_card.rb +277 -277
  42. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_card_brands.rb +213 -213
  43. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_features.rb +320 -320
  44. data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_network.rb +190 -190
  45. data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information.rb +216 -216
  46. data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information_pull_funds.rb +213 -213
  47. data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information_push_funds.rb +417 -417
  48. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +315 -315
  49. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information.rb +192 -192
  50. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information_tenant_configurations.rb +286 -286
  51. data/lib/cybersource_rest_client/models/inline_response_201_2_organization_information.rb +217 -217
  52. data/lib/cybersource_rest_client/models/inline_response_201_2_product_information_setups.rb +214 -214
  53. data/lib/cybersource_rest_client/models/inline_response_201_2_registration_information.rb +256 -256
  54. data/lib/cybersource_rest_client/models/inline_response_201_2_setups.rb +219 -219
  55. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_commerce_solutions.rb +209 -209
  56. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb +15 -5
  57. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing.rb +199 -199
  58. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_configuration_status.rb +299 -299
  59. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_subscription_status.rb +278 -278
  60. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_digital_payments.rb +189 -189
  61. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_risk.rb +199 -199
  62. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_value_added_services.rb +199 -199
  63. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +222 -222
  64. data/lib/cybersource_rest_client/models/inline_response_201_3_key_information.rb +300 -300
  65. data/lib/cybersource_rest_client/models/inline_response_201_3_key_information_error_information.rb +202 -202
  66. data/lib/cybersource_rest_client/models/inline_response_201_3_key_information_error_information_details.rb +201 -201
  67. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +347 -347
  68. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +222 -222
  69. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +269 -234
  70. data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_5_details.rb} +201 -201
  71. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +275 -235
  72. data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_6_details.rb} +199 -199
  73. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +269 -269
  74. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +269 -269
  75. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +257 -223
  76. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +225 -225
  77. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +225 -225
  78. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +333 -333
  79. data/lib/cybersource_rest_client/models/merchant_initiated_transaction_object.rb +241 -241
  80. data/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb +244 -243
  81. data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +219 -219
  82. data/lib/cybersource_rest_client/models/payments_products.rb +369 -359
  83. data/lib/cybersource_rest_client/models/{kms_v2_keys_asym_get200_response.rb → payments_products_service_fee.rb} +199 -200
  84. data/lib/cybersource_rest_client/models/{inline_response_200_7__links.rb → payments_products_service_fee_configuration_information.rb} +189 -201
  85. data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → payments_products_service_fee_configuration_information_configurations.rb} +266 -292
  86. data/lib/cybersource_rest_client/models/{kms_v2_keys_sym_deletes_post200_response_key_information.rb → payments_products_service_fee_configuration_information_configurations_merchant_information.rb} +239 -234
  87. data/lib/cybersource_rest_client/models/{inline_response_400_8.rb → payments_products_service_fee_configuration_information_configurations_payment_information.rb} +280 -275
  88. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products.rb +190 -0
  89. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +284 -284
  90. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_processor_information.rb +233 -233
  91. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +249 -249
  92. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_2_processor_information.rb +264 -264
  93. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +765 -765
  94. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb +212 -212
  95. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
  96. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +264 -264
  97. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  98. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information.rb +199 -199
  99. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_orchestration.rb +192 -192
  100. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights.rb +230 -230
  101. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +223 -223
  102. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +217 -217
  103. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +18 -1
  104. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +230 -230
  105. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +196 -196
  106. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +232 -232
  107. data/lib/cybersource_rest_client/models/ptsv2billingagreements_buyer_information.rb +247 -247
  108. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +326 -326
  109. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +285 -285
  110. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +241 -241
  111. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
  112. data/lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb +196 -196
  113. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +453 -453
  114. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_line_items.rb +361 -361
  115. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_ship_to.rb +485 -485
  116. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +366 -366
  117. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +1075 -1075
  118. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +416 -416
  119. data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +196 -196
  120. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +464 -464
  121. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +405 -405
  122. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +641 -641
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_order.rb +332 -332
  124. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +286 -286
  125. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +444 -444
  126. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +699 -699
  127. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +496 -496
  128. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +346 -346
  129. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_account_reference.rb +196 -196
  130. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
  131. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +633 -633
  132. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +704 -704
  133. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +467 -456
  134. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_loan_options.rb +213 -213
  135. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +205 -205
  136. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +72 -4
  137. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +298 -0
  138. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +332 -332
  139. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
  140. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +267 -267
  141. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +287 -287
  142. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +206 -206
  143. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +362 -362
  144. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +257 -257
  145. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +502 -502
  146. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +299 -299
  147. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +342 -342
  148. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +192 -192
  149. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +213 -213
  150. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +287 -287
  151. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +234 -234
  152. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +286 -286
  153. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +301 -301
  154. data/lib/cybersource_rest_client/models/ptsv2voids_processing_information.rb +190 -190
  155. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +269 -280
  156. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +80 -1
  157. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +279 -290
  158. data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +235 -235
  159. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +840 -840
  160. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +290 -290
  161. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +312 -337
  162. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -258
  163. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
  164. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +434 -366
  165. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +497 -497
  166. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +219 -219
  167. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
  168. data/lib/cybersource_rest_client/models/{kmsv2keyssym_client_reference_information.rb → riskv1authenticationsetups_client_reference_information.rb} +240 -217
  169. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
  170. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_processing_information.rb +213 -213
  171. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +812 -820
  172. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +223 -223
  173. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +416 -416
  174. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
  175. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +314 -314
  176. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +196 -196
  177. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bank_account.rb +207 -207
  178. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info.rb +200 -200
  179. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info_bank_transfer_options.rb +196 -196
  180. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +236 -236
  181. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +292 -292
  182. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +349 -349
  183. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +222 -222
  184. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +383 -383
  185. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +241 -241
  186. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +231 -231
  187. data/lib/cybersource_rest_client/models/validate_request.rb +249 -249
  188. data/lib/cybersource_rest_client/models/vasv2tax_merchant_information.rb +196 -196
  189. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +403 -403
  190. data/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb +0 -5
  191. data/lib/cybersource_rest_client.rb +24 -57
  192. metadata +26 -59
  193. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +0 -307
  194. data/lib/cybersource_rest_client/api/key_management_api.rb +0 -120
  195. data/lib/cybersource_rest_client/api/key_management_password_api.rb +0 -98
  196. data/lib/cybersource_rest_client/api/key_management_pgp_api.rb +0 -98
  197. data/lib/cybersource_rest_client/api/key_management_scmp_api.rb +0 -98
  198. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +0 -308
  199. data/lib/cybersource_rest_client/models/create_p12_keys_request.rb +0 -201
  200. data/lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb +0 -201
  201. data/lib/cybersource_rest_client/models/create_shared_secret_keys_verifi_request.rb +0 -201
  202. data/lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb +0 -201
  203. data/lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb +0 -201
  204. data/lib/cybersource_rest_client/models/inline_response_200_1_keys.rb +0 -323
  205. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +0 -269
  206. data/lib/cybersource_rest_client/models/inline_response_500_3.rb +0 -257
  207. data/lib/cybersource_rest_client/models/inline_response_502_1.rb +0 -234
  208. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response.rb +0 -212
  209. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response_key_information.rb +0 -245
  210. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response_key_information.rb +0 -267
  211. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response.rb +0 -235
  212. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_certificate_information.rb +0 -223
  213. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_key_information.rb +0 -278
  214. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response.rb +0 -223
  215. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response.rb +0 -211
  216. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response_key_information.rb +0 -245
  217. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response.rb +0 -223
  218. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_error_information.rb +0 -202
  219. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb +0 -284
  220. data/lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb +0 -223
  221. data/lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb +0 -207
  222. data/lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb +0 -223
  223. data/lib/cybersource_rest_client/models/kmsv2keyssymverifi_key_information.rb +0 -254
  224. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +0 -290
  225. data/lib/cybersource_rest_client/models/update_asym_keys_request.rb +0 -211
  226. data/lib/cybersource_rest_client/models/update_password_keys_request.rb +0 -211
  227. data/lib/cybersource_rest_client/models/update_pgp_keys_request.rb +0 -211
  228. data/lib/cybersource_rest_client/models/update_pgp_keys_request_1.rb +0 -234
@@ -1,820 +1,812 @@
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
- # Indicates the type of authentication that will be used to challenge the card holder. Possible Values: 01 - Static 02 - Dynamic 03 - OOB (Out of Band) 04 - Decoupled 20 - OTP hosted at merchant end. (Rupay S2S flow) **NOTE**: EMV 3-D Secure version 2.1.0 supports values 01-03. Version 2.2.0 supports values 01-04. Decoupled authentication is not supported at this time.
19
- attr_accessor :authentication_type
20
-
21
- # 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
22
- attr_accessor :acs_window_size
23
-
24
- # Data that documents and supports a specific authentication process.
25
- attr_accessor :alternate_authentication_data
26
-
27
- # Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM
28
- attr_accessor :alternate_authentication_date
29
-
30
- # 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
31
- attr_accessor :alternate_authentication_method
32
-
33
- # 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
34
- attr_accessor :authentication_date
35
-
36
- # 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.
37
- attr_accessor :authentication_transaction_id
38
-
39
- # 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
40
- attr_accessor :transaction_flow_indicator
41
-
42
- # An indicator as to why the transaction was canceled. Possible Values: - `01`: Cardholder selected Cancel. - `02`: Reserved for future EMVCo use (values invalid until defined by EMVCo). - `03`: Transaction Timed Out—Decoupled Authentication - `04`: Transaction timed out at ACS—other timeouts - `05`: Transaction Timed out at ACS - First CReq not received by ACS - `06`: Transaction Error - `07`: Unknown - `08`: Transaction Timed Out at SDK
43
- attr_accessor :challenge_cancel_code
44
-
45
- # 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`.
46
- attr_accessor :challenge_code
47
-
48
- # 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.
49
- attr_accessor :challenge_status
50
-
51
- # 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.
52
- attr_accessor :customer_card_alias
53
-
54
- # 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
55
- attr_accessor :decoupled_authentication_indicator
56
-
57
- # 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.
58
- attr_accessor :decoupled_authentication_max_time
59
-
60
- # Indicates that the card being used is the one designated as the primary payment card for purchase. Recommended for Discover ProtectBuy.
61
- attr_accessor :default_card
62
-
63
- # Determines the channel that the transaction came through. Possible Values: SDK/Browser/3RI. 3RI - 3DS request initiated.
64
- attr_accessor :device_channel
65
-
66
- # 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.
67
- attr_accessor :installment_total_count
68
-
69
- # 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
70
- attr_accessor :merchant_fraud_rate
71
-
72
- # Indicates whether the customer has opted in for marketing offers. Recommended for Discover ProtectBuy.
73
- attr_accessor :marketing_opt_in
74
-
75
- # Indicates origin of the marketing offer. Recommended for Discover ProtectBuy.
76
- attr_accessor :marketing_source
77
-
78
- # Merchant category code. **Important** Required only for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
79
- attr_accessor :mcc
80
-
81
- # Risk Score provided by merchants. This is specific for CB transactions.
82
- attr_accessor :merchant_score
83
-
84
- # 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
85
- attr_accessor :message_category
86
-
87
- # 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
88
- attr_accessor :npa_code
89
-
90
- # 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.
91
- attr_accessor :override_payment_method
92
-
93
- # Two-character [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf)..
94
- attr_accessor :override_country_code
95
-
96
- # This field carry data that the ACS can use to verify the authentication process.
97
- attr_accessor :prior_authentication_data
98
-
99
- # 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
100
- attr_accessor :prior_authentication_method
101
-
102
- # 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
103
- attr_accessor :prior_authentication_reference_id
104
-
105
- # Date and time in UTC of the prior cardholder authentication. Format YYYYMMDDHHMM
106
- attr_accessor :prior_authentication_time
107
-
108
- # 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.
109
- attr_accessor :product_code
110
-
111
- # 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.
112
- attr_accessor :return_url
113
-
114
- # Cardinal's directory server assigned 3DS Requestor ID value
115
- attr_accessor :requestor_id
116
-
117
- # 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
118
- attr_accessor :requestor_initiated_authentication_indicator
119
-
120
- # Cardinal's directory server assigned 3DS Requestor Name value
121
- attr_accessor :requestor_name
122
-
123
- # Reference ID that corresponds to the device fingerprinting data that was collected previously. Note Required for Hybrid integration.
124
- attr_accessor :reference_id
125
-
126
- # 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
127
- attr_accessor :sdk_max_timeout
128
-
129
- # Indicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies. Possible Values : 0/1
130
- attr_accessor :secure_corporate_payment_indicator
131
-
132
- # 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
133
- attr_accessor :transaction_mode
134
-
135
- # 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
136
- attr_accessor :white_list_status
137
-
138
- # Risk Assessment from Mastercard. This is to be sent by merchant if they would like to request a score
139
- attr_accessor :score_request
140
-
141
- # Attribute mapping from ruby-style variable name to JSON key.
142
- def self.attribute_map
143
- {
144
- :'strong_authentication' => :'strongAuthentication',
145
- :'authentication_type' => :'authenticationType',
146
- :'acs_window_size' => :'acsWindowSize',
147
- :'alternate_authentication_data' => :'alternateAuthenticationData',
148
- :'alternate_authentication_date' => :'alternateAuthenticationDate',
149
- :'alternate_authentication_method' => :'alternateAuthenticationMethod',
150
- :'authentication_date' => :'authenticationDate',
151
- :'authentication_transaction_id' => :'authenticationTransactionId',
152
- :'transaction_flow_indicator' => :'transactionFlowIndicator',
153
- :'challenge_cancel_code' => :'challengeCancelCode',
154
- :'challenge_code' => :'challengeCode',
155
- :'challenge_status' => :'challengeStatus',
156
- :'customer_card_alias' => :'customerCardAlias',
157
- :'decoupled_authentication_indicator' => :'decoupledAuthenticationIndicator',
158
- :'decoupled_authentication_max_time' => :'decoupledAuthenticationMaxTime',
159
- :'default_card' => :'defaultCard',
160
- :'device_channel' => :'deviceChannel',
161
- :'installment_total_count' => :'installmentTotalCount',
162
- :'merchant_fraud_rate' => :'merchantFraudRate',
163
- :'marketing_opt_in' => :'marketingOptIn',
164
- :'marketing_source' => :'marketingSource',
165
- :'mcc' => :'mcc',
166
- :'merchant_score' => :'merchantScore',
167
- :'message_category' => :'messageCategory',
168
- :'npa_code' => :'npaCode',
169
- :'override_payment_method' => :'overridePaymentMethod',
170
- :'override_country_code' => :'overrideCountryCode',
171
- :'prior_authentication_data' => :'priorAuthenticationData',
172
- :'prior_authentication_method' => :'priorAuthenticationMethod',
173
- :'prior_authentication_reference_id' => :'priorAuthenticationReferenceId',
174
- :'prior_authentication_time' => :'priorAuthenticationTime',
175
- :'product_code' => :'productCode',
176
- :'return_url' => :'returnUrl',
177
- :'requestor_id' => :'requestorId',
178
- :'requestor_initiated_authentication_indicator' => :'requestorInitiatedAuthenticationIndicator',
179
- :'requestor_name' => :'requestorName',
180
- :'reference_id' => :'referenceId',
181
- :'sdk_max_timeout' => :'sdkMaxTimeout',
182
- :'secure_corporate_payment_indicator' => :'secureCorporatePaymentIndicator',
183
- :'transaction_mode' => :'transactionMode',
184
- :'white_list_status' => :'whiteListStatus',
185
- :'score_request' => :'scoreRequest'
186
- }
187
- end
188
-
189
- # Attribute mapping from JSON key to ruby-style variable name.
190
- def self.json_map
191
- {
192
- :'strong_authentication' => :'strong_authentication',
193
- :'authentication_type' => :'authentication_type',
194
- :'acs_window_size' => :'acs_window_size',
195
- :'alternate_authentication_data' => :'alternate_authentication_data',
196
- :'alternate_authentication_date' => :'alternate_authentication_date',
197
- :'alternate_authentication_method' => :'alternate_authentication_method',
198
- :'authentication_date' => :'authentication_date',
199
- :'authentication_transaction_id' => :'authentication_transaction_id',
200
- :'transaction_flow_indicator' => :'transaction_flow_indicator',
201
- :'challenge_cancel_code' => :'challenge_cancel_code',
202
- :'challenge_code' => :'challenge_code',
203
- :'challenge_status' => :'challenge_status',
204
- :'customer_card_alias' => :'customer_card_alias',
205
- :'decoupled_authentication_indicator' => :'decoupled_authentication_indicator',
206
- :'decoupled_authentication_max_time' => :'decoupled_authentication_max_time',
207
- :'default_card' => :'default_card',
208
- :'device_channel' => :'device_channel',
209
- :'installment_total_count' => :'installment_total_count',
210
- :'merchant_fraud_rate' => :'merchant_fraud_rate',
211
- :'marketing_opt_in' => :'marketing_opt_in',
212
- :'marketing_source' => :'marketing_source',
213
- :'mcc' => :'mcc',
214
- :'merchant_score' => :'merchant_score',
215
- :'message_category' => :'message_category',
216
- :'npa_code' => :'npa_code',
217
- :'override_payment_method' => :'override_payment_method',
218
- :'override_country_code' => :'override_country_code',
219
- :'prior_authentication_data' => :'prior_authentication_data',
220
- :'prior_authentication_method' => :'prior_authentication_method',
221
- :'prior_authentication_reference_id' => :'prior_authentication_reference_id',
222
- :'prior_authentication_time' => :'prior_authentication_time',
223
- :'product_code' => :'product_code',
224
- :'return_url' => :'return_url',
225
- :'requestor_id' => :'requestor_id',
226
- :'requestor_initiated_authentication_indicator' => :'requestor_initiated_authentication_indicator',
227
- :'requestor_name' => :'requestor_name',
228
- :'reference_id' => :'reference_id',
229
- :'sdk_max_timeout' => :'sdk_max_timeout',
230
- :'secure_corporate_payment_indicator' => :'secure_corporate_payment_indicator',
231
- :'transaction_mode' => :'transaction_mode',
232
- :'white_list_status' => :'white_list_status',
233
- :'score_request' => :'score_request'
234
- }
235
- end
236
-
237
- # Attribute type mapping.
238
- def self.swagger_types
239
- {
240
- :'strong_authentication' => :'Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication',
241
- :'authentication_type' => :'String',
242
- :'acs_window_size' => :'String',
243
- :'alternate_authentication_data' => :'String',
244
- :'alternate_authentication_date' => :'String',
245
- :'alternate_authentication_method' => :'String',
246
- :'authentication_date' => :'String',
247
- :'authentication_transaction_id' => :'String',
248
- :'transaction_flow_indicator' => :'Integer',
249
- :'challenge_cancel_code' => :'String',
250
- :'challenge_code' => :'String',
251
- :'challenge_status' => :'String',
252
- :'customer_card_alias' => :'String',
253
- :'decoupled_authentication_indicator' => :'String',
254
- :'decoupled_authentication_max_time' => :'String',
255
- :'default_card' => :'BOOLEAN',
256
- :'device_channel' => :'String',
257
- :'installment_total_count' => :'Integer',
258
- :'merchant_fraud_rate' => :'String',
259
- :'marketing_opt_in' => :'BOOLEAN',
260
- :'marketing_source' => :'String',
261
- :'mcc' => :'String',
262
- :'merchant_score' => :'Integer',
263
- :'message_category' => :'String',
264
- :'npa_code' => :'String',
265
- :'override_payment_method' => :'String',
266
- :'override_country_code' => :'String',
267
- :'prior_authentication_data' => :'String',
268
- :'prior_authentication_method' => :'String',
269
- :'prior_authentication_reference_id' => :'String',
270
- :'prior_authentication_time' => :'String',
271
- :'product_code' => :'String',
272
- :'return_url' => :'String',
273
- :'requestor_id' => :'String',
274
- :'requestor_initiated_authentication_indicator' => :'String',
275
- :'requestor_name' => :'String',
276
- :'reference_id' => :'String',
277
- :'sdk_max_timeout' => :'String',
278
- :'secure_corporate_payment_indicator' => :'String',
279
- :'transaction_mode' => :'String',
280
- :'white_list_status' => :'String',
281
- :'score_request' => :'Integer'
282
- }
283
- end
284
-
285
- # Initializes the object
286
- # @param [Hash] attributes Model attributes in the form of hash
287
- def initialize(attributes = {})
288
- return unless attributes.is_a?(Hash)
289
-
290
- # convert string to symbol for hash key
291
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
292
-
293
- if attributes.has_key?(:'strongAuthentication')
294
- self.strong_authentication = attributes[:'strongAuthentication']
295
- end
296
-
297
- if attributes.has_key?(:'authenticationType')
298
- self.authentication_type = attributes[:'authenticationType']
299
- end
300
-
301
- if attributes.has_key?(:'acsWindowSize')
302
- self.acs_window_size = attributes[:'acsWindowSize']
303
- end
304
-
305
- if attributes.has_key?(:'alternateAuthenticationData')
306
- self.alternate_authentication_data = attributes[:'alternateAuthenticationData']
307
- end
308
-
309
- if attributes.has_key?(:'alternateAuthenticationDate')
310
- self.alternate_authentication_date = attributes[:'alternateAuthenticationDate']
311
- end
312
-
313
- if attributes.has_key?(:'alternateAuthenticationMethod')
314
- self.alternate_authentication_method = attributes[:'alternateAuthenticationMethod']
315
- end
316
-
317
- if attributes.has_key?(:'authenticationDate')
318
- self.authentication_date = attributes[:'authenticationDate']
319
- end
320
-
321
- if attributes.has_key?(:'authenticationTransactionId')
322
- self.authentication_transaction_id = attributes[:'authenticationTransactionId']
323
- end
324
-
325
- if attributes.has_key?(:'transactionFlowIndicator')
326
- self.transaction_flow_indicator = attributes[:'transactionFlowIndicator']
327
- end
328
-
329
- if attributes.has_key?(:'challengeCancelCode')
330
- self.challenge_cancel_code = attributes[:'challengeCancelCode']
331
- end
332
-
333
- if attributes.has_key?(:'challengeCode')
334
- self.challenge_code = attributes[:'challengeCode']
335
- end
336
-
337
- if attributes.has_key?(:'challengeStatus')
338
- self.challenge_status = attributes[:'challengeStatus']
339
- end
340
-
341
- if attributes.has_key?(:'customerCardAlias')
342
- self.customer_card_alias = attributes[:'customerCardAlias']
343
- end
344
-
345
- if attributes.has_key?(:'decoupledAuthenticationIndicator')
346
- self.decoupled_authentication_indicator = attributes[:'decoupledAuthenticationIndicator']
347
- end
348
-
349
- if attributes.has_key?(:'decoupledAuthenticationMaxTime')
350
- self.decoupled_authentication_max_time = attributes[:'decoupledAuthenticationMaxTime']
351
- end
352
-
353
- if attributes.has_key?(:'defaultCard')
354
- self.default_card = attributes[:'defaultCard']
355
- end
356
-
357
- if attributes.has_key?(:'deviceChannel')
358
- self.device_channel = attributes[:'deviceChannel']
359
- end
360
-
361
- if attributes.has_key?(:'installmentTotalCount')
362
- self.installment_total_count = attributes[:'installmentTotalCount']
363
- end
364
-
365
- if attributes.has_key?(:'merchantFraudRate')
366
- self.merchant_fraud_rate = attributes[:'merchantFraudRate']
367
- end
368
-
369
- if attributes.has_key?(:'marketingOptIn')
370
- self.marketing_opt_in = attributes[:'marketingOptIn']
371
- end
372
-
373
- if attributes.has_key?(:'marketingSource')
374
- self.marketing_source = attributes[:'marketingSource']
375
- end
376
-
377
- if attributes.has_key?(:'mcc')
378
- self.mcc = attributes[:'mcc']
379
- end
380
-
381
- if attributes.has_key?(:'merchantScore')
382
- self.merchant_score = attributes[:'merchantScore']
383
- end
384
-
385
- if attributes.has_key?(:'messageCategory')
386
- self.message_category = attributes[:'messageCategory']
387
- end
388
-
389
- if attributes.has_key?(:'npaCode')
390
- self.npa_code = attributes[:'npaCode']
391
- end
392
-
393
- if attributes.has_key?(:'overridePaymentMethod')
394
- self.override_payment_method = attributes[:'overridePaymentMethod']
395
- end
396
-
397
- if attributes.has_key?(:'overrideCountryCode')
398
- self.override_country_code = attributes[:'overrideCountryCode']
399
- end
400
-
401
- if attributes.has_key?(:'priorAuthenticationData')
402
- self.prior_authentication_data = attributes[:'priorAuthenticationData']
403
- end
404
-
405
- if attributes.has_key?(:'priorAuthenticationMethod')
406
- self.prior_authentication_method = attributes[:'priorAuthenticationMethod']
407
- end
408
-
409
- if attributes.has_key?(:'priorAuthenticationReferenceId')
410
- self.prior_authentication_reference_id = attributes[:'priorAuthenticationReferenceId']
411
- end
412
-
413
- if attributes.has_key?(:'priorAuthenticationTime')
414
- self.prior_authentication_time = attributes[:'priorAuthenticationTime']
415
- end
416
-
417
- if attributes.has_key?(:'productCode')
418
- self.product_code = attributes[:'productCode']
419
- end
420
-
421
- if attributes.has_key?(:'returnUrl')
422
- self.return_url = attributes[:'returnUrl']
423
- end
424
-
425
- if attributes.has_key?(:'requestorId')
426
- self.requestor_id = attributes[:'requestorId']
427
- end
428
-
429
- if attributes.has_key?(:'requestorInitiatedAuthenticationIndicator')
430
- self.requestor_initiated_authentication_indicator = attributes[:'requestorInitiatedAuthenticationIndicator']
431
- end
432
-
433
- if attributes.has_key?(:'requestorName')
434
- self.requestor_name = attributes[:'requestorName']
435
- end
436
-
437
- if attributes.has_key?(:'referenceId')
438
- self.reference_id = attributes[:'referenceId']
439
- end
440
-
441
- if attributes.has_key?(:'sdkMaxTimeout')
442
- self.sdk_max_timeout = attributes[:'sdkMaxTimeout']
443
- end
444
-
445
- if attributes.has_key?(:'secureCorporatePaymentIndicator')
446
- self.secure_corporate_payment_indicator = attributes[:'secureCorporatePaymentIndicator']
447
- end
448
-
449
- if attributes.has_key?(:'transactionMode')
450
- self.transaction_mode = attributes[:'transactionMode']
451
- end
452
-
453
- if attributes.has_key?(:'whiteListStatus')
454
- self.white_list_status = attributes[:'whiteListStatus']
455
- end
456
-
457
- if attributes.has_key?(:'scoreRequest')
458
- self.score_request = attributes[:'scoreRequest']
459
- end
460
- end
461
-
462
- # Show invalid properties with the reasons. Usually used together with valid?
463
- # @return Array for valid properties with the reasons
464
- def list_invalid_properties
465
- invalid_properties = Array.new
466
- invalid_properties
467
- end
468
-
469
- # Check to see if the all the properties in the model are valid
470
- # @return true if the model is valid
471
- def valid?
472
- true
473
- end
474
-
475
- # Custom attribute writer method with validation
476
- # @param [Object] authentication_type Value to be assigned
477
- def authentication_type=(authentication_type)
478
- @authentication_type = authentication_type
479
- end
480
-
481
- # Custom attribute writer method with validation
482
- # @param [Object] acs_window_size Value to be assigned
483
- def acs_window_size=(acs_window_size)
484
- @acs_window_size = acs_window_size
485
- end
486
-
487
- # Custom attribute writer method with validation
488
- # @param [Object] alternate_authentication_data Value to be assigned
489
- def alternate_authentication_data=(alternate_authentication_data)
490
- @alternate_authentication_data = alternate_authentication_data
491
- end
492
-
493
- # Custom attribute writer method with validation
494
- # @param [Object] alternate_authentication_date Value to be assigned
495
- def alternate_authentication_date=(alternate_authentication_date)
496
- @alternate_authentication_date = alternate_authentication_date
497
- end
498
-
499
- # Custom attribute writer method with validation
500
- # @param [Object] authentication_date Value to be assigned
501
- def authentication_date=(authentication_date)
502
- @authentication_date = authentication_date
503
- end
504
-
505
- # Custom attribute writer method with validation
506
- # @param [Object] authentication_transaction_id Value to be assigned
507
- def authentication_transaction_id=(authentication_transaction_id)
508
- @authentication_transaction_id = authentication_transaction_id
509
- end
510
-
511
- # Custom attribute writer method with validation
512
- # @param [Object] challenge_cancel_code Value to be assigned
513
- def challenge_cancel_code=(challenge_cancel_code)
514
- @challenge_cancel_code = challenge_cancel_code
515
- end
516
-
517
- # Custom attribute writer method with validation
518
- # @param [Object] challenge_status Value to be assigned
519
- def challenge_status=(challenge_status)
520
- @challenge_status = challenge_status
521
- end
522
-
523
- # Custom attribute writer method with validation
524
- # @param [Object] customer_card_alias Value to be assigned
525
- def customer_card_alias=(customer_card_alias)
526
- @customer_card_alias = customer_card_alias
527
- end
528
-
529
- # Custom attribute writer method with validation
530
- # @param [Object] decoupled_authentication_indicator Value to be assigned
531
- def decoupled_authentication_indicator=(decoupled_authentication_indicator)
532
- @decoupled_authentication_indicator = decoupled_authentication_indicator
533
- end
534
-
535
- # Custom attribute writer method with validation
536
- # @param [Object] decoupled_authentication_max_time Value to be assigned
537
- def decoupled_authentication_max_time=(decoupled_authentication_max_time)
538
- @decoupled_authentication_max_time = decoupled_authentication_max_time
539
- end
540
-
541
- # Custom attribute writer method with validation
542
- # @param [Object] device_channel Value to be assigned
543
- def device_channel=(device_channel)
544
- @device_channel = device_channel
545
- end
546
-
547
- # Custom attribute writer method with validation
548
- # @param [Object] merchant_fraud_rate Value to be assigned
549
- def merchant_fraud_rate=(merchant_fraud_rate)
550
- @merchant_fraud_rate = merchant_fraud_rate
551
- end
552
-
553
- # Custom attribute writer method with validation
554
- # @param [Object] marketing_source Value to be assigned
555
- def marketing_source=(marketing_source)
556
- @marketing_source = marketing_source
557
- end
558
-
559
- # Custom attribute writer method with validation
560
- # @param [Object] mcc Value to be assigned
561
- def mcc=(mcc)
562
- @mcc = mcc
563
- end
564
-
565
- # Custom attribute writer method with validation
566
- # @param [Object] npa_code Value to be assigned
567
- def npa_code=(npa_code)
568
- @npa_code = npa_code
569
- end
570
-
571
- # Custom attribute writer method with validation
572
- # @param [Object] override_country_code Value to be assigned
573
- def override_country_code=(override_country_code)
574
- @override_country_code = override_country_code
575
- end
576
-
577
- # Custom attribute writer method with validation
578
- # @param [Object] prior_authentication_data Value to be assigned
579
- def prior_authentication_data=(prior_authentication_data)
580
- @prior_authentication_data = prior_authentication_data
581
- end
582
-
583
- # Custom attribute writer method with validation
584
- # @param [Object] prior_authentication_method Value to be assigned
585
- def prior_authentication_method=(prior_authentication_method)
586
- @prior_authentication_method = prior_authentication_method
587
- end
588
-
589
- # Custom attribute writer method with validation
590
- # @param [Object] prior_authentication_reference_id Value to be assigned
591
- def prior_authentication_reference_id=(prior_authentication_reference_id)
592
- @prior_authentication_reference_id = prior_authentication_reference_id
593
- end
594
-
595
- # Custom attribute writer method with validation
596
- # @param [Object] prior_authentication_time Value to be assigned
597
- def prior_authentication_time=(prior_authentication_time)
598
- @prior_authentication_time = prior_authentication_time
599
- end
600
-
601
- # Custom attribute writer method with validation
602
- # @param [Object] product_code Value to be assigned
603
- def product_code=(product_code)
604
- @product_code = product_code
605
- end
606
-
607
- # Custom attribute writer method with validation
608
- # @param [Object] return_url Value to be assigned
609
- def return_url=(return_url)
610
- @return_url = return_url
611
- end
612
-
613
- # Custom attribute writer method with validation
614
- # @param [Object] requestor_id Value to be assigned
615
- def requestor_id=(requestor_id)
616
- @requestor_id = requestor_id
617
- end
618
-
619
- # Custom attribute writer method with validation
620
- # @param [Object] requestor_initiated_authentication_indicator Value to be assigned
621
- def requestor_initiated_authentication_indicator=(requestor_initiated_authentication_indicator)
622
- @requestor_initiated_authentication_indicator = requestor_initiated_authentication_indicator
623
- end
624
-
625
- # Custom attribute writer method with validation
626
- # @param [Object] requestor_name Value to be assigned
627
- def requestor_name=(requestor_name)
628
- @requestor_name = requestor_name
629
- end
630
-
631
- # Custom attribute writer method with validation
632
- # @param [Object] reference_id Value to be assigned
633
- def reference_id=(reference_id)
634
- @reference_id = reference_id
635
- end
636
-
637
- # Custom attribute writer method with validation
638
- # @param [Object] sdk_max_timeout Value to be assigned
639
- def sdk_max_timeout=(sdk_max_timeout)
640
- @sdk_max_timeout = sdk_max_timeout
641
- end
642
-
643
- # Custom attribute writer method with validation
644
- # @param [Object] secure_corporate_payment_indicator Value to be assigned
645
- def secure_corporate_payment_indicator=(secure_corporate_payment_indicator)
646
- @secure_corporate_payment_indicator = secure_corporate_payment_indicator
647
- end
648
-
649
- # Custom attribute writer method with validation
650
- # @param [Object] white_list_status Value to be assigned
651
- def white_list_status=(white_list_status)
652
- @white_list_status = white_list_status
653
- end
654
-
655
- # Checks equality by comparing each attribute.
656
- # @param [Object] Object to be compared
657
- def ==(o)
658
- return true if self.equal?(o)
659
- self.class == o.class &&
660
- strong_authentication == o.strong_authentication &&
661
- authentication_type == o.authentication_type &&
662
- acs_window_size == o.acs_window_size &&
663
- alternate_authentication_data == o.alternate_authentication_data &&
664
- alternate_authentication_date == o.alternate_authentication_date &&
665
- alternate_authentication_method == o.alternate_authentication_method &&
666
- authentication_date == o.authentication_date &&
667
- authentication_transaction_id == o.authentication_transaction_id &&
668
- transaction_flow_indicator == o.transaction_flow_indicator &&
669
- challenge_cancel_code == o.challenge_cancel_code &&
670
- challenge_code == o.challenge_code &&
671
- challenge_status == o.challenge_status &&
672
- customer_card_alias == o.customer_card_alias &&
673
- decoupled_authentication_indicator == o.decoupled_authentication_indicator &&
674
- decoupled_authentication_max_time == o.decoupled_authentication_max_time &&
675
- default_card == o.default_card &&
676
- device_channel == o.device_channel &&
677
- installment_total_count == o.installment_total_count &&
678
- merchant_fraud_rate == o.merchant_fraud_rate &&
679
- marketing_opt_in == o.marketing_opt_in &&
680
- marketing_source == o.marketing_source &&
681
- mcc == o.mcc &&
682
- merchant_score == o.merchant_score &&
683
- message_category == o.message_category &&
684
- npa_code == o.npa_code &&
685
- override_payment_method == o.override_payment_method &&
686
- override_country_code == o.override_country_code &&
687
- prior_authentication_data == o.prior_authentication_data &&
688
- prior_authentication_method == o.prior_authentication_method &&
689
- prior_authentication_reference_id == o.prior_authentication_reference_id &&
690
- prior_authentication_time == o.prior_authentication_time &&
691
- product_code == o.product_code &&
692
- return_url == o.return_url &&
693
- requestor_id == o.requestor_id &&
694
- requestor_initiated_authentication_indicator == o.requestor_initiated_authentication_indicator &&
695
- requestor_name == o.requestor_name &&
696
- reference_id == o.reference_id &&
697
- sdk_max_timeout == o.sdk_max_timeout &&
698
- secure_corporate_payment_indicator == o.secure_corporate_payment_indicator &&
699
- transaction_mode == o.transaction_mode &&
700
- white_list_status == o.white_list_status &&
701
- score_request == o.score_request
702
- end
703
-
704
- # @see the `==` method
705
- # @param [Object] Object to be compared
706
- def eql?(o)
707
- self == o
708
- end
709
-
710
- # Calculates hash code according to all attributes.
711
- # @return [Fixnum] Hash code
712
- def hash
713
- [strong_authentication, authentication_type, acs_window_size, alternate_authentication_data, alternate_authentication_date, alternate_authentication_method, authentication_date, authentication_transaction_id, transaction_flow_indicator, challenge_cancel_code, 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
714
- end
715
-
716
- # Builds the object from hash
717
- # @param [Hash] attributes Model attributes in the form of hash
718
- # @return [Object] Returns the model itself
719
- def build_from_hash(attributes)
720
- return nil unless attributes.is_a?(Hash)
721
- self.class.swagger_types.each_pair do |key, type|
722
- if type =~ /\AArray<(.*)>/i
723
- # check to ensure the input is an array given that the the attribute
724
- # is documented as an array but the input is not
725
- if attributes[self.class.attribute_map[key]].is_a?(Array)
726
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
727
- end
728
- elsif !attributes[self.class.attribute_map[key]].nil?
729
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
730
- end # or else data not found in attributes(hash), not an issue as the data can be optional
731
- end
732
-
733
- self
734
- end
735
-
736
- # Deserializes the data based on type
737
- # @param string type Data type
738
- # @param string value Value to be deserialized
739
- # @return [Object] Deserialized data
740
- def _deserialize(type, value)
741
- case type.to_sym
742
- when :DateTime
743
- DateTime.parse(value)
744
- when :Date
745
- Date.parse(value)
746
- when :String
747
- value.to_s
748
- when :Integer
749
- value.to_i
750
- when :Float
751
- value.to_f
752
- when :BOOLEAN
753
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
754
- true
755
- else
756
- false
757
- end
758
- when :Object
759
- # generic object (usually a Hash), return directly
760
- value
761
- when /\AArray<(?<inner_type>.+)>\z/
762
- inner_type = Regexp.last_match[:inner_type]
763
- value.map { |v| _deserialize(inner_type, v) }
764
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
765
- k_type = Regexp.last_match[:k_type]
766
- v_type = Regexp.last_match[:v_type]
767
- {}.tap do |hash|
768
- value.each do |k, v|
769
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
770
- end
771
- end
772
- else # model
773
- temp_model = CyberSource.const_get(type).new
774
- temp_model.build_from_hash(value)
775
- end
776
- end
777
-
778
- # Returns the string representation of the object
779
- # @return [String] String presentation of the object
780
- def to_s
781
- to_hash.to_s
782
- end
783
-
784
- # to_body is an alias to to_hash (backward compatibility)
785
- # @return [Hash] Returns the object in the form of hash
786
- def to_body
787
- to_hash
788
- end
789
-
790
- # Returns the object in the form of hash
791
- # @return [Hash] Returns the object in the form of hash
792
- def to_hash
793
- hash = {}
794
- self.class.attribute_map.each_pair do |attr, param|
795
- value = self.send(attr)
796
- next if value.nil?
797
- hash[param] = _to_hash(value)
798
- end
799
- hash
800
- end
801
-
802
- # Outputs non-array value in the form of hash
803
- # For object, use to_hash. Otherwise, just return the value
804
- # @param [Object] value Any valid value
805
- # @return [Hash] Returns the value in the form of hash
806
- def _to_hash(value)
807
- if value.is_a?(Array)
808
- value.compact.map { |v| _to_hash(v) }
809
- elsif value.is_a?(Hash)
810
- {}.tap do |hash|
811
- value.each { |k, v| hash[k] = _to_hash(v) }
812
- end
813
- elsif value.respond_to? :to_hash
814
- value.to_hash
815
- else
816
- value
817
- end
818
- end
819
- end
820
- 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
+ # An indicator as to why the transaction was canceled. Possible Values: - `01`: Cardholder selected Cancel. - `02`: Reserved for future EMVCo use (values invalid until defined by EMVCo). - `03`: Transaction Timed Out—Decoupled Authentication - `04`: Transaction timed out at ACS—other timeouts - `05`: Transaction Timed out at ACS - First CReq not received by ACS - `06`: Transaction Error - `07`: Unknown - `08`: Transaction Timed Out at SDK
40
+ attr_accessor :challenge_cancel_code
41
+
42
+ # 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`.
43
+ attr_accessor :challenge_code
44
+
45
+ # 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.
46
+ attr_accessor :challenge_status
47
+
48
+ # 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.
49
+ attr_accessor :customer_card_alias
50
+
51
+ # 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
52
+ attr_accessor :decoupled_authentication_indicator
53
+
54
+ # 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.
55
+ attr_accessor :decoupled_authentication_max_time
56
+
57
+ # Indicates that the card being used is the one designated as the primary payment card for purchase. Recommended for Discover ProtectBuy.
58
+ attr_accessor :default_card
59
+
60
+ # Determines the channel that the transaction came through. Possible Values: SDK/Browser/3RI. 3RI - 3DS request initiated.
61
+ attr_accessor :device_channel
62
+
63
+ # 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.
64
+ attr_accessor :installment_total_count
65
+
66
+ # 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
67
+ attr_accessor :merchant_fraud_rate
68
+
69
+ # Indicates whether the customer has opted in for marketing offers. Recommended for Discover ProtectBuy.
70
+ attr_accessor :marketing_opt_in
71
+
72
+ # Indicates origin of the marketing offer. Recommended for Discover ProtectBuy.
73
+ attr_accessor :marketing_source
74
+
75
+ # Merchant category code. **Important** Required only for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
76
+ attr_accessor :mcc
77
+
78
+ # Risk Score provided by merchants. This is specific for CB transactions.
79
+ attr_accessor :merchant_score
80
+
81
+ # 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
82
+ attr_accessor :message_category
83
+
84
+ # 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
85
+ attr_accessor :npa_code
86
+
87
+ # 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.
88
+ attr_accessor :override_payment_method
89
+
90
+ # Two-character [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf)..
91
+ attr_accessor :override_country_code
92
+
93
+ # This field carry data that the ACS can use to verify the authentication process.
94
+ attr_accessor :prior_authentication_data
95
+
96
+ # 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
97
+ attr_accessor :prior_authentication_method
98
+
99
+ # 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
100
+ attr_accessor :prior_authentication_reference_id
101
+
102
+ # Date and time in UTC of the prior cardholder authentication. Format YYYYMMDDHHMM
103
+ attr_accessor :prior_authentication_time
104
+
105
+ # 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.
106
+ attr_accessor :product_code
107
+
108
+ # 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.
109
+ attr_accessor :return_url
110
+
111
+ # Cardinal's directory server assigned 3DS Requestor ID value
112
+ attr_accessor :requestor_id
113
+
114
+ # 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
115
+ attr_accessor :requestor_initiated_authentication_indicator
116
+
117
+ # Cardinal's directory server assigned 3DS Requestor Name value
118
+ attr_accessor :requestor_name
119
+
120
+ # Reference ID that corresponds to the device fingerprinting data that was collected previously. Note Required for Hybrid integration.
121
+ attr_accessor :reference_id
122
+
123
+ # 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
124
+ attr_accessor :sdk_max_timeout
125
+
126
+ # Indicates dedicated payment processes and procedures were used, potential secure corporate payment exemption applies. Possible Values : 0/1
127
+ attr_accessor :secure_corporate_payment_indicator
128
+
129
+ # 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
130
+ attr_accessor :transaction_mode
131
+
132
+ # 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
133
+ attr_accessor :white_list_status
134
+
135
+ # Risk Assessment from Mastercard. This is to be sent by merchant if they would like to request a score
136
+ attr_accessor :score_request
137
+
138
+ # Attribute mapping from ruby-style variable name to JSON key.
139
+ def self.attribute_map
140
+ {
141
+ :'strong_authentication' => :'strongAuthentication',
142
+ :'acs_window_size' => :'acsWindowSize',
143
+ :'alternate_authentication_data' => :'alternateAuthenticationData',
144
+ :'alternate_authentication_date' => :'alternateAuthenticationDate',
145
+ :'alternate_authentication_method' => :'alternateAuthenticationMethod',
146
+ :'authentication_date' => :'authenticationDate',
147
+ :'authentication_transaction_id' => :'authenticationTransactionId',
148
+ :'transaction_flow_indicator' => :'transactionFlowIndicator',
149
+ :'challenge_cancel_code' => :'challengeCancelCode',
150
+ :'challenge_code' => :'challengeCode',
151
+ :'challenge_status' => :'challengeStatus',
152
+ :'customer_card_alias' => :'customerCardAlias',
153
+ :'decoupled_authentication_indicator' => :'decoupledAuthenticationIndicator',
154
+ :'decoupled_authentication_max_time' => :'decoupledAuthenticationMaxTime',
155
+ :'default_card' => :'defaultCard',
156
+ :'device_channel' => :'deviceChannel',
157
+ :'installment_total_count' => :'installmentTotalCount',
158
+ :'merchant_fraud_rate' => :'merchantFraudRate',
159
+ :'marketing_opt_in' => :'marketingOptIn',
160
+ :'marketing_source' => :'marketingSource',
161
+ :'mcc' => :'mcc',
162
+ :'merchant_score' => :'merchantScore',
163
+ :'message_category' => :'messageCategory',
164
+ :'npa_code' => :'npaCode',
165
+ :'override_payment_method' => :'overridePaymentMethod',
166
+ :'override_country_code' => :'overrideCountryCode',
167
+ :'prior_authentication_data' => :'priorAuthenticationData',
168
+ :'prior_authentication_method' => :'priorAuthenticationMethod',
169
+ :'prior_authentication_reference_id' => :'priorAuthenticationReferenceId',
170
+ :'prior_authentication_time' => :'priorAuthenticationTime',
171
+ :'product_code' => :'productCode',
172
+ :'return_url' => :'returnUrl',
173
+ :'requestor_id' => :'requestorId',
174
+ :'requestor_initiated_authentication_indicator' => :'requestorInitiatedAuthenticationIndicator',
175
+ :'requestor_name' => :'requestorName',
176
+ :'reference_id' => :'referenceId',
177
+ :'sdk_max_timeout' => :'sdkMaxTimeout',
178
+ :'secure_corporate_payment_indicator' => :'secureCorporatePaymentIndicator',
179
+ :'transaction_mode' => :'transactionMode',
180
+ :'white_list_status' => :'whiteListStatus',
181
+ :'score_request' => :'scoreRequest'
182
+ }
183
+ end
184
+
185
+ # Attribute mapping from JSON key to ruby-style variable name.
186
+ def self.json_map
187
+ {
188
+ :'strong_authentication' => :'strong_authentication',
189
+ :'acs_window_size' => :'acs_window_size',
190
+ :'alternate_authentication_data' => :'alternate_authentication_data',
191
+ :'alternate_authentication_date' => :'alternate_authentication_date',
192
+ :'alternate_authentication_method' => :'alternate_authentication_method',
193
+ :'authentication_date' => :'authentication_date',
194
+ :'authentication_transaction_id' => :'authentication_transaction_id',
195
+ :'transaction_flow_indicator' => :'transaction_flow_indicator',
196
+ :'challenge_cancel_code' => :'challenge_cancel_code',
197
+ :'challenge_code' => :'challenge_code',
198
+ :'challenge_status' => :'challenge_status',
199
+ :'customer_card_alias' => :'customer_card_alias',
200
+ :'decoupled_authentication_indicator' => :'decoupled_authentication_indicator',
201
+ :'decoupled_authentication_max_time' => :'decoupled_authentication_max_time',
202
+ :'default_card' => :'default_card',
203
+ :'device_channel' => :'device_channel',
204
+ :'installment_total_count' => :'installment_total_count',
205
+ :'merchant_fraud_rate' => :'merchant_fraud_rate',
206
+ :'marketing_opt_in' => :'marketing_opt_in',
207
+ :'marketing_source' => :'marketing_source',
208
+ :'mcc' => :'mcc',
209
+ :'merchant_score' => :'merchant_score',
210
+ :'message_category' => :'message_category',
211
+ :'npa_code' => :'npa_code',
212
+ :'override_payment_method' => :'override_payment_method',
213
+ :'override_country_code' => :'override_country_code',
214
+ :'prior_authentication_data' => :'prior_authentication_data',
215
+ :'prior_authentication_method' => :'prior_authentication_method',
216
+ :'prior_authentication_reference_id' => :'prior_authentication_reference_id',
217
+ :'prior_authentication_time' => :'prior_authentication_time',
218
+ :'product_code' => :'product_code',
219
+ :'return_url' => :'return_url',
220
+ :'requestor_id' => :'requestor_id',
221
+ :'requestor_initiated_authentication_indicator' => :'requestor_initiated_authentication_indicator',
222
+ :'requestor_name' => :'requestor_name',
223
+ :'reference_id' => :'reference_id',
224
+ :'sdk_max_timeout' => :'sdk_max_timeout',
225
+ :'secure_corporate_payment_indicator' => :'secure_corporate_payment_indicator',
226
+ :'transaction_mode' => :'transaction_mode',
227
+ :'white_list_status' => :'white_list_status',
228
+ :'score_request' => :'score_request'
229
+ }
230
+ end
231
+
232
+ # Attribute type mapping.
233
+ def self.swagger_types
234
+ {
235
+ :'strong_authentication' => :'Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication',
236
+ :'acs_window_size' => :'String',
237
+ :'alternate_authentication_data' => :'String',
238
+ :'alternate_authentication_date' => :'String',
239
+ :'alternate_authentication_method' => :'String',
240
+ :'authentication_date' => :'String',
241
+ :'authentication_transaction_id' => :'String',
242
+ :'transaction_flow_indicator' => :'Integer',
243
+ :'challenge_cancel_code' => :'String',
244
+ :'challenge_code' => :'String',
245
+ :'challenge_status' => :'String',
246
+ :'customer_card_alias' => :'String',
247
+ :'decoupled_authentication_indicator' => :'String',
248
+ :'decoupled_authentication_max_time' => :'String',
249
+ :'default_card' => :'BOOLEAN',
250
+ :'device_channel' => :'String',
251
+ :'installment_total_count' => :'Integer',
252
+ :'merchant_fraud_rate' => :'String',
253
+ :'marketing_opt_in' => :'BOOLEAN',
254
+ :'marketing_source' => :'String',
255
+ :'mcc' => :'String',
256
+ :'merchant_score' => :'Integer',
257
+ :'message_category' => :'String',
258
+ :'npa_code' => :'String',
259
+ :'override_payment_method' => :'String',
260
+ :'override_country_code' => :'String',
261
+ :'prior_authentication_data' => :'String',
262
+ :'prior_authentication_method' => :'String',
263
+ :'prior_authentication_reference_id' => :'String',
264
+ :'prior_authentication_time' => :'String',
265
+ :'product_code' => :'String',
266
+ :'return_url' => :'String',
267
+ :'requestor_id' => :'String',
268
+ :'requestor_initiated_authentication_indicator' => :'String',
269
+ :'requestor_name' => :'String',
270
+ :'reference_id' => :'String',
271
+ :'sdk_max_timeout' => :'String',
272
+ :'secure_corporate_payment_indicator' => :'String',
273
+ :'transaction_mode' => :'String',
274
+ :'white_list_status' => :'String',
275
+ :'score_request' => :'Integer'
276
+ }
277
+ end
278
+
279
+ # Initializes the object
280
+ # @param [Hash] attributes Model attributes in the form of hash
281
+ def initialize(attributes = {})
282
+ return unless attributes.is_a?(Hash)
283
+
284
+ # convert string to symbol for hash key
285
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
286
+
287
+ if attributes.has_key?(:'strongAuthentication')
288
+ self.strong_authentication = attributes[:'strongAuthentication']
289
+ end
290
+
291
+ if attributes.has_key?(:'acsWindowSize')
292
+ self.acs_window_size = attributes[:'acsWindowSize']
293
+ end
294
+
295
+ if attributes.has_key?(:'alternateAuthenticationData')
296
+ self.alternate_authentication_data = attributes[:'alternateAuthenticationData']
297
+ end
298
+
299
+ if attributes.has_key?(:'alternateAuthenticationDate')
300
+ self.alternate_authentication_date = attributes[:'alternateAuthenticationDate']
301
+ end
302
+
303
+ if attributes.has_key?(:'alternateAuthenticationMethod')
304
+ self.alternate_authentication_method = attributes[:'alternateAuthenticationMethod']
305
+ end
306
+
307
+ if attributes.has_key?(:'authenticationDate')
308
+ self.authentication_date = attributes[:'authenticationDate']
309
+ end
310
+
311
+ if attributes.has_key?(:'authenticationTransactionId')
312
+ self.authentication_transaction_id = attributes[:'authenticationTransactionId']
313
+ end
314
+
315
+ if attributes.has_key?(:'transactionFlowIndicator')
316
+ self.transaction_flow_indicator = attributes[:'transactionFlowIndicator']
317
+ end
318
+
319
+ if attributes.has_key?(:'challengeCancelCode')
320
+ self.challenge_cancel_code = attributes[:'challengeCancelCode']
321
+ end
322
+
323
+ if attributes.has_key?(:'challengeCode')
324
+ self.challenge_code = attributes[:'challengeCode']
325
+ end
326
+
327
+ if attributes.has_key?(:'challengeStatus')
328
+ self.challenge_status = attributes[:'challengeStatus']
329
+ end
330
+
331
+ if attributes.has_key?(:'customerCardAlias')
332
+ self.customer_card_alias = attributes[:'customerCardAlias']
333
+ end
334
+
335
+ if attributes.has_key?(:'decoupledAuthenticationIndicator')
336
+ self.decoupled_authentication_indicator = attributes[:'decoupledAuthenticationIndicator']
337
+ end
338
+
339
+ if attributes.has_key?(:'decoupledAuthenticationMaxTime')
340
+ self.decoupled_authentication_max_time = attributes[:'decoupledAuthenticationMaxTime']
341
+ end
342
+
343
+ if attributes.has_key?(:'defaultCard')
344
+ self.default_card = attributes[:'defaultCard']
345
+ end
346
+
347
+ if attributes.has_key?(:'deviceChannel')
348
+ self.device_channel = attributes[:'deviceChannel']
349
+ end
350
+
351
+ if attributes.has_key?(:'installmentTotalCount')
352
+ self.installment_total_count = attributes[:'installmentTotalCount']
353
+ end
354
+
355
+ if attributes.has_key?(:'merchantFraudRate')
356
+ self.merchant_fraud_rate = attributes[:'merchantFraudRate']
357
+ end
358
+
359
+ if attributes.has_key?(:'marketingOptIn')
360
+ self.marketing_opt_in = attributes[:'marketingOptIn']
361
+ end
362
+
363
+ if attributes.has_key?(:'marketingSource')
364
+ self.marketing_source = attributes[:'marketingSource']
365
+ end
366
+
367
+ if attributes.has_key?(:'mcc')
368
+ self.mcc = attributes[:'mcc']
369
+ end
370
+
371
+ if attributes.has_key?(:'merchantScore')
372
+ self.merchant_score = attributes[:'merchantScore']
373
+ end
374
+
375
+ if attributes.has_key?(:'messageCategory')
376
+ self.message_category = attributes[:'messageCategory']
377
+ end
378
+
379
+ if attributes.has_key?(:'npaCode')
380
+ self.npa_code = attributes[:'npaCode']
381
+ end
382
+
383
+ if attributes.has_key?(:'overridePaymentMethod')
384
+ self.override_payment_method = attributes[:'overridePaymentMethod']
385
+ end
386
+
387
+ if attributes.has_key?(:'overrideCountryCode')
388
+ self.override_country_code = attributes[:'overrideCountryCode']
389
+ end
390
+
391
+ if attributes.has_key?(:'priorAuthenticationData')
392
+ self.prior_authentication_data = attributes[:'priorAuthenticationData']
393
+ end
394
+
395
+ if attributes.has_key?(:'priorAuthenticationMethod')
396
+ self.prior_authentication_method = attributes[:'priorAuthenticationMethod']
397
+ end
398
+
399
+ if attributes.has_key?(:'priorAuthenticationReferenceId')
400
+ self.prior_authentication_reference_id = attributes[:'priorAuthenticationReferenceId']
401
+ end
402
+
403
+ if attributes.has_key?(:'priorAuthenticationTime')
404
+ self.prior_authentication_time = attributes[:'priorAuthenticationTime']
405
+ end
406
+
407
+ if attributes.has_key?(:'productCode')
408
+ self.product_code = attributes[:'productCode']
409
+ end
410
+
411
+ if attributes.has_key?(:'returnUrl')
412
+ self.return_url = attributes[:'returnUrl']
413
+ end
414
+
415
+ if attributes.has_key?(:'requestorId')
416
+ self.requestor_id = attributes[:'requestorId']
417
+ end
418
+
419
+ if attributes.has_key?(:'requestorInitiatedAuthenticationIndicator')
420
+ self.requestor_initiated_authentication_indicator = attributes[:'requestorInitiatedAuthenticationIndicator']
421
+ end
422
+
423
+ if attributes.has_key?(:'requestorName')
424
+ self.requestor_name = attributes[:'requestorName']
425
+ end
426
+
427
+ if attributes.has_key?(:'referenceId')
428
+ self.reference_id = attributes[:'referenceId']
429
+ end
430
+
431
+ if attributes.has_key?(:'sdkMaxTimeout')
432
+ self.sdk_max_timeout = attributes[:'sdkMaxTimeout']
433
+ end
434
+
435
+ if attributes.has_key?(:'secureCorporatePaymentIndicator')
436
+ self.secure_corporate_payment_indicator = attributes[:'secureCorporatePaymentIndicator']
437
+ end
438
+
439
+ if attributes.has_key?(:'transactionMode')
440
+ self.transaction_mode = attributes[:'transactionMode']
441
+ end
442
+
443
+ if attributes.has_key?(:'whiteListStatus')
444
+ self.white_list_status = attributes[:'whiteListStatus']
445
+ end
446
+
447
+ if attributes.has_key?(:'scoreRequest')
448
+ self.score_request = attributes[:'scoreRequest']
449
+ end
450
+ end
451
+
452
+ # Show invalid properties with the reasons. Usually used together with valid?
453
+ # @return Array for valid properties with the reasons
454
+ def list_invalid_properties
455
+ invalid_properties = Array.new
456
+ if @device_channel.nil?
457
+ invalid_properties.push('invalid value for "device_channel", device_channel cannot be nil.')
458
+ end
459
+
460
+ invalid_properties
461
+ end
462
+
463
+ # Check to see if the all the properties in the model are valid
464
+ # @return true if the model is valid
465
+ def valid?
466
+ return false if @device_channel.nil?
467
+ true
468
+ end
469
+
470
+ # Custom attribute writer method with validation
471
+ # @param [Object] acs_window_size Value to be assigned
472
+ def acs_window_size=(acs_window_size)
473
+ @acs_window_size = acs_window_size
474
+ end
475
+
476
+ # Custom attribute writer method with validation
477
+ # @param [Object] alternate_authentication_data Value to be assigned
478
+ def alternate_authentication_data=(alternate_authentication_data)
479
+ @alternate_authentication_data = alternate_authentication_data
480
+ end
481
+
482
+ # Custom attribute writer method with validation
483
+ # @param [Object] alternate_authentication_date Value to be assigned
484
+ def alternate_authentication_date=(alternate_authentication_date)
485
+ @alternate_authentication_date = alternate_authentication_date
486
+ end
487
+
488
+ # Custom attribute writer method with validation
489
+ # @param [Object] authentication_date Value to be assigned
490
+ def authentication_date=(authentication_date)
491
+ @authentication_date = authentication_date
492
+ end
493
+
494
+ # Custom attribute writer method with validation
495
+ # @param [Object] authentication_transaction_id Value to be assigned
496
+ def authentication_transaction_id=(authentication_transaction_id)
497
+ @authentication_transaction_id = authentication_transaction_id
498
+ end
499
+
500
+ # Custom attribute writer method with validation
501
+ # @param [Object] challenge_cancel_code Value to be assigned
502
+ def challenge_cancel_code=(challenge_cancel_code)
503
+ @challenge_cancel_code = challenge_cancel_code
504
+ end
505
+
506
+ # Custom attribute writer method with validation
507
+ # @param [Object] challenge_status Value to be assigned
508
+ def challenge_status=(challenge_status)
509
+ @challenge_status = challenge_status
510
+ end
511
+
512
+ # Custom attribute writer method with validation
513
+ # @param [Object] customer_card_alias Value to be assigned
514
+ def customer_card_alias=(customer_card_alias)
515
+ @customer_card_alias = customer_card_alias
516
+ end
517
+
518
+ # Custom attribute writer method with validation
519
+ # @param [Object] decoupled_authentication_indicator Value to be assigned
520
+ def decoupled_authentication_indicator=(decoupled_authentication_indicator)
521
+ @decoupled_authentication_indicator = decoupled_authentication_indicator
522
+ end
523
+
524
+ # Custom attribute writer method with validation
525
+ # @param [Object] decoupled_authentication_max_time Value to be assigned
526
+ def decoupled_authentication_max_time=(decoupled_authentication_max_time)
527
+ @decoupled_authentication_max_time = decoupled_authentication_max_time
528
+ end
529
+
530
+ # Custom attribute writer method with validation
531
+ # @param [Object] device_channel Value to be assigned
532
+ def device_channel=(device_channel)
533
+ #if device_channel.nil?
534
+ #fail ArgumentError, 'device_channel cannot be nil'
535
+ #end
536
+
537
+ @device_channel = device_channel
538
+ end
539
+
540
+ # Custom attribute writer method with validation
541
+ # @param [Object] merchant_fraud_rate Value to be assigned
542
+ def merchant_fraud_rate=(merchant_fraud_rate)
543
+ @merchant_fraud_rate = merchant_fraud_rate
544
+ end
545
+
546
+ # Custom attribute writer method with validation
547
+ # @param [Object] marketing_source Value to be assigned
548
+ def marketing_source=(marketing_source)
549
+ @marketing_source = marketing_source
550
+ end
551
+
552
+ # Custom attribute writer method with validation
553
+ # @param [Object] mcc Value to be assigned
554
+ def mcc=(mcc)
555
+ @mcc = mcc
556
+ end
557
+
558
+ # Custom attribute writer method with validation
559
+ # @param [Object] npa_code Value to be assigned
560
+ def npa_code=(npa_code)
561
+ @npa_code = npa_code
562
+ end
563
+
564
+ # Custom attribute writer method with validation
565
+ # @param [Object] override_country_code Value to be assigned
566
+ def override_country_code=(override_country_code)
567
+ @override_country_code = override_country_code
568
+ end
569
+
570
+ # Custom attribute writer method with validation
571
+ # @param [Object] prior_authentication_data Value to be assigned
572
+ def prior_authentication_data=(prior_authentication_data)
573
+ @prior_authentication_data = prior_authentication_data
574
+ end
575
+
576
+ # Custom attribute writer method with validation
577
+ # @param [Object] prior_authentication_method Value to be assigned
578
+ def prior_authentication_method=(prior_authentication_method)
579
+ @prior_authentication_method = prior_authentication_method
580
+ end
581
+
582
+ # Custom attribute writer method with validation
583
+ # @param [Object] prior_authentication_reference_id Value to be assigned
584
+ def prior_authentication_reference_id=(prior_authentication_reference_id)
585
+ @prior_authentication_reference_id = prior_authentication_reference_id
586
+ end
587
+
588
+ # Custom attribute writer method with validation
589
+ # @param [Object] prior_authentication_time Value to be assigned
590
+ def prior_authentication_time=(prior_authentication_time)
591
+ @prior_authentication_time = prior_authentication_time
592
+ end
593
+
594
+ # Custom attribute writer method with validation
595
+ # @param [Object] product_code Value to be assigned
596
+ def product_code=(product_code)
597
+ @product_code = product_code
598
+ end
599
+
600
+ # Custom attribute writer method with validation
601
+ # @param [Object] return_url Value to be assigned
602
+ def return_url=(return_url)
603
+ @return_url = return_url
604
+ end
605
+
606
+ # Custom attribute writer method with validation
607
+ # @param [Object] requestor_id Value to be assigned
608
+ def requestor_id=(requestor_id)
609
+ @requestor_id = requestor_id
610
+ end
611
+
612
+ # Custom attribute writer method with validation
613
+ # @param [Object] requestor_initiated_authentication_indicator Value to be assigned
614
+ def requestor_initiated_authentication_indicator=(requestor_initiated_authentication_indicator)
615
+ @requestor_initiated_authentication_indicator = requestor_initiated_authentication_indicator
616
+ end
617
+
618
+ # Custom attribute writer method with validation
619
+ # @param [Object] requestor_name Value to be assigned
620
+ def requestor_name=(requestor_name)
621
+ @requestor_name = requestor_name
622
+ end
623
+
624
+ # Custom attribute writer method with validation
625
+ # @param [Object] reference_id Value to be assigned
626
+ def reference_id=(reference_id)
627
+ @reference_id = reference_id
628
+ end
629
+
630
+ # Custom attribute writer method with validation
631
+ # @param [Object] sdk_max_timeout Value to be assigned
632
+ def sdk_max_timeout=(sdk_max_timeout)
633
+ @sdk_max_timeout = sdk_max_timeout
634
+ end
635
+
636
+ # Custom attribute writer method with validation
637
+ # @param [Object] secure_corporate_payment_indicator Value to be assigned
638
+ def secure_corporate_payment_indicator=(secure_corporate_payment_indicator)
639
+ @secure_corporate_payment_indicator = secure_corporate_payment_indicator
640
+ end
641
+
642
+ # Custom attribute writer method with validation
643
+ # @param [Object] white_list_status Value to be assigned
644
+ def white_list_status=(white_list_status)
645
+ @white_list_status = white_list_status
646
+ end
647
+
648
+ # Checks equality by comparing each attribute.
649
+ # @param [Object] Object to be compared
650
+ def ==(o)
651
+ return true if self.equal?(o)
652
+ self.class == o.class &&
653
+ strong_authentication == o.strong_authentication &&
654
+ acs_window_size == o.acs_window_size &&
655
+ alternate_authentication_data == o.alternate_authentication_data &&
656
+ alternate_authentication_date == o.alternate_authentication_date &&
657
+ alternate_authentication_method == o.alternate_authentication_method &&
658
+ authentication_date == o.authentication_date &&
659
+ authentication_transaction_id == o.authentication_transaction_id &&
660
+ transaction_flow_indicator == o.transaction_flow_indicator &&
661
+ challenge_cancel_code == o.challenge_cancel_code &&
662
+ challenge_code == o.challenge_code &&
663
+ challenge_status == o.challenge_status &&
664
+ customer_card_alias == o.customer_card_alias &&
665
+ decoupled_authentication_indicator == o.decoupled_authentication_indicator &&
666
+ decoupled_authentication_max_time == o.decoupled_authentication_max_time &&
667
+ default_card == o.default_card &&
668
+ device_channel == o.device_channel &&
669
+ installment_total_count == o.installment_total_count &&
670
+ merchant_fraud_rate == o.merchant_fraud_rate &&
671
+ marketing_opt_in == o.marketing_opt_in &&
672
+ marketing_source == o.marketing_source &&
673
+ mcc == o.mcc &&
674
+ merchant_score == o.merchant_score &&
675
+ message_category == o.message_category &&
676
+ npa_code == o.npa_code &&
677
+ override_payment_method == o.override_payment_method &&
678
+ override_country_code == o.override_country_code &&
679
+ prior_authentication_data == o.prior_authentication_data &&
680
+ prior_authentication_method == o.prior_authentication_method &&
681
+ prior_authentication_reference_id == o.prior_authentication_reference_id &&
682
+ prior_authentication_time == o.prior_authentication_time &&
683
+ product_code == o.product_code &&
684
+ return_url == o.return_url &&
685
+ requestor_id == o.requestor_id &&
686
+ requestor_initiated_authentication_indicator == o.requestor_initiated_authentication_indicator &&
687
+ requestor_name == o.requestor_name &&
688
+ reference_id == o.reference_id &&
689
+ sdk_max_timeout == o.sdk_max_timeout &&
690
+ secure_corporate_payment_indicator == o.secure_corporate_payment_indicator &&
691
+ transaction_mode == o.transaction_mode &&
692
+ white_list_status == o.white_list_status &&
693
+ score_request == o.score_request
694
+ end
695
+
696
+ # @see the `==` method
697
+ # @param [Object] Object to be compared
698
+ def eql?(o)
699
+ self == o
700
+ end
701
+
702
+ # Calculates hash code according to all attributes.
703
+ # @return [Fixnum] Hash code
704
+ def hash
705
+ [strong_authentication, acs_window_size, alternate_authentication_data, alternate_authentication_date, alternate_authentication_method, authentication_date, authentication_transaction_id, transaction_flow_indicator, challenge_cancel_code, 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
706
+ end
707
+
708
+ # Builds the object from hash
709
+ # @param [Hash] attributes Model attributes in the form of hash
710
+ # @return [Object] Returns the model itself
711
+ def build_from_hash(attributes)
712
+ return nil unless attributes.is_a?(Hash)
713
+ self.class.swagger_types.each_pair do |key, type|
714
+ if type =~ /\AArray<(.*)>/i
715
+ # check to ensure the input is an array given that the the attribute
716
+ # is documented as an array but the input is not
717
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
718
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
719
+ end
720
+ elsif !attributes[self.class.attribute_map[key]].nil?
721
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
722
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
723
+ end
724
+
725
+ self
726
+ end
727
+
728
+ # Deserializes the data based on type
729
+ # @param string type Data type
730
+ # @param string value Value to be deserialized
731
+ # @return [Object] Deserialized data
732
+ def _deserialize(type, value)
733
+ case type.to_sym
734
+ when :DateTime
735
+ DateTime.parse(value)
736
+ when :Date
737
+ Date.parse(value)
738
+ when :String
739
+ value.to_s
740
+ when :Integer
741
+ value.to_i
742
+ when :Float
743
+ value.to_f
744
+ when :BOOLEAN
745
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
746
+ true
747
+ else
748
+ false
749
+ end
750
+ when :Object
751
+ # generic object (usually a Hash), return directly
752
+ value
753
+ when /\AArray<(?<inner_type>.+)>\z/
754
+ inner_type = Regexp.last_match[:inner_type]
755
+ value.map { |v| _deserialize(inner_type, v) }
756
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
757
+ k_type = Regexp.last_match[:k_type]
758
+ v_type = Regexp.last_match[:v_type]
759
+ {}.tap do |hash|
760
+ value.each do |k, v|
761
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
762
+ end
763
+ end
764
+ else # model
765
+ temp_model = CyberSource.const_get(type).new
766
+ temp_model.build_from_hash(value)
767
+ end
768
+ end
769
+
770
+ # Returns the string representation of the object
771
+ # @return [String] String presentation of the object
772
+ def to_s
773
+ to_hash.to_s
774
+ end
775
+
776
+ # to_body is an alias to to_hash (backward compatibility)
777
+ # @return [Hash] Returns the object in the form of hash
778
+ def to_body
779
+ to_hash
780
+ end
781
+
782
+ # Returns the object in the form of hash
783
+ # @return [Hash] Returns the object in the form of hash
784
+ def to_hash
785
+ hash = {}
786
+ self.class.attribute_map.each_pair do |attr, param|
787
+ value = self.send(attr)
788
+ next if value.nil?
789
+ hash[param] = _to_hash(value)
790
+ end
791
+ hash
792
+ end
793
+
794
+ # Outputs non-array value in the form of hash
795
+ # For object, use to_hash. Otherwise, just return the value
796
+ # @param [Object] value Any valid value
797
+ # @return [Hash] Returns the value in the form of hash
798
+ def _to_hash(value)
799
+ if value.is_a?(Array)
800
+ value.compact.map { |v| _to_hash(v) }
801
+ elsif value.is_a?(Hash)
802
+ {}.tap do |hash|
803
+ value.each { |k, v| hash[k] = _to_hash(v) }
804
+ end
805
+ elsif value.respond_to? :to_hash
806
+ value.to_hash
807
+ else
808
+ value
809
+ end
810
+ end
811
+ end
812
+ end