cybersource_rest_client 0.0.57 → 0.0.59

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/Authorization.rb +1 -1
  3. data/lib/cybersource_rest_client/api/batches_api.rb +8 -0
  4. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +9 -9
  5. data/lib/cybersource_rest_client/api/token_api.rb +12 -8
  6. data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations.rb → card_processing_config.rb} +3 -3
  7. data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common.rb → card_processing_config_common.rb} +3 -3
  8. data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_acquirer.rb → card_processing_config_common_acquirer.rb} +1 -1
  9. data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_currencies.rb → card_processing_config_common_currencies.rb} +1 -1
  10. data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_currencies_1.rb → card_processing_config_common_currencies_1.rb} +1 -1
  11. data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_common_merchant_descriptor_info.rb → card_processing_config_common_merchant_descriptor_information.rb} +1 -1
  12. data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_payment_types.rb → card_processing_config_common_payment_types.rb} +2 -2
  13. data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_processors.rb → card_processing_config_common_processors.rb} +4 -4
  14. data/lib/cybersource_rest_client/models/{payments_products_virtual_terminal_configuration_information_configurations.rb → card_processing_config_features.rb} +3 -3
  15. data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_not_present.rb → card_processing_config_features_card_not_present.rb} +3 -3
  16. data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_not_present_installment.rb → card_processing_config_features_card_not_present_installment.rb} +1 -1
  17. data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_not_present_payouts.rb → card_processing_config_features_card_not_present_payouts.rb} +2 -2
  18. data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_features_card_not_present_payouts_currencies.rb → card_processing_config_features_card_not_present_payouts_currencies.rb} +1 -1
  19. data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_not_present_processors.rb → card_processing_config_features_card_not_present_processors.rb} +2 -2
  20. data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_features_card_present.rb → card_processing_config_features_card_present.rb} +2 -2
  21. data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_present_processors.rb → card_processing_config_features_card_present_processors.rb} +1 -1
  22. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +1 -1
  23. data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +1 -1
  24. data/lib/cybersource_rest_client/models/create_credit_request.rb +21 -1
  25. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations.rb → dm_config.rb} +5 -5
  26. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_organization.rb → dm_config_organization.rb} +1 -1
  27. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_portfolio_controls.rb → dm_config_portfolio_controls.rb} +1 -1
  28. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_processing_options.rb → dm_config_processing_options.rb} +1 -1
  29. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_thirdparty.rb → dm_config_thirdparty.rb} +2 -2
  30. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_thirdparty_provider.rb → dm_config_thirdparty_provider.rb} +8 -8
  31. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_signifyd.rb → dm_config_thirdparty_provider_accurint.rb} +2 -2
  32. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_accurint_creds.rb → dm_config_thirdparty_provider_accurint_credentials.rb} +1 -1
  33. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_thirdparty_provider_ekata.rb → dm_config_thirdparty_provider_credilink.rb} +2 -2
  34. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_credilink_creds.rb → dm_config_thirdparty_provider_credilink_credentials.rb} +1 -1
  35. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_emailage.rb → dm_config_thirdparty_provider_ekata.rb} +2 -2
  36. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_ekata_creds.rb → dm_config_thirdparty_provider_ekata_credentials.rb} +1 -1
  37. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_credilink.rb → dm_config_thirdparty_provider_emailage.rb} +2 -2
  38. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_perseuss.rb → dm_config_thirdparty_provider_perseuss.rb} +2 -2
  39. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_accurint.rb → dm_config_thirdparty_provider_signifyd.rb} +2 -2
  40. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_signifyd_creds.rb → dm_config_thirdparty_provider_signifyd_credentials.rb} +1 -1
  41. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_targus.rb → dm_config_thirdparty_provider_targus.rb} +2 -2
  42. data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_targus_creds.rb → dm_config_thirdparty_provider_targus_credentials.rb} +1 -1
  43. data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations.rb → e_check_config.rb} +4 -4
  44. data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_common.rb → e_check_config_common.rb} +3 -3
  45. data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_common_internal_only.rb → e_check_config_common_internal_only.rb} +2 -2
  46. data/lib/cybersource_rest_client/models/{payments_products_e_check_config_common_internal_only_processors.rb → e_check_config_common_internal_only_processors.rb} +1 -1
  47. data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_common_processors.rb → e_check_config_common_processors.rb} +1 -1
  48. data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_features.rb → e_check_config_features.rb} +2 -2
  49. data/lib/cybersource_rest_client/models/{payment_products_e_check_config_account_validation_service.rb → e_check_config_features_account_validation_service.rb} +3 -3
  50. data/lib/cybersource_rest_client/models/{payment_products_e_check_config_account_validation_service_internal_only.rb → e_check_config_features_account_validation_service_internal_only.rb} +1 -1
  51. data/lib/cybersource_rest_client/models/{payment_products_e_check_config_account_validation_service_processors.rb → e_check_config_features_account_validation_service_processors.rb} +1 -1
  52. data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_underwriting.rb → e_check_config_underwriting.rb} +1 -1
  53. data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments.rb +15 -5
  54. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get404_response.rb +1 -1
  55. data/lib/cybersource_rest_client/models/merchant_initiated_transaction_object.rb +242 -0
  56. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +1 -1
  57. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +8 -8
  58. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +1 -1
  59. data/lib/cybersource_rest_client/models/{payments_products_payer_authentication_configuration_information_configurations.rb → payer_auth_config.rb} +2 -2
  60. data/lib/cybersource_rest_client/models/{payments_products_payer_authentication_configuration_information_configurations_card_types.rb → payer_auth_config_card_types.rb} +9 -9
  61. data/lib/cybersource_rest_client/models/{payments_products_payer_authentication_configuration_information_configurations_card_types_cb.rb → payer_auth_config_card_types_cb.rb} +2 -2
  62. data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_config_card_types_j_cbj_secure.rb → payer_auth_config_card_types_j_cbj_secure.rb} +2 -2
  63. data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_config_card_types_verified.rb → payer_auth_config_card_types_verified_by_visa.rb} +2 -2
  64. data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_config_card_types_verified_currencies.rb → payer_auth_config_card_types_verified_by_visa_currencies.rb} +1 -1
  65. data/lib/cybersource_rest_client/models/payments_products.rb +15 -5
  66. data/lib/cybersource_rest_client/models/payments_products_card_processing_configuration_information.rb +1 -1
  67. data/lib/cybersource_rest_client/models/payments_products_e_check_configuration_information.rb +1 -1
  68. data/lib/cybersource_rest_client/models/payments_products_payer_authentication_configuration_information.rb +1 -1
  69. data/lib/cybersource_rest_client/models/payments_products_secure_acceptance_configuration_information.rb +1 -1
  70. data/lib/cybersource_rest_client/models/payments_products_virtual_terminal_configuration_information.rb +1 -1
  71. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_consumer_authentication_information_issuer_information.rb → payments_strong_auth_issuer_information.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +1 -1
  73. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +8 -8
  74. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +8 -8
  75. data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +191 -0
  76. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +1 -1
  77. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +1 -1
  78. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +16 -5
  79. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +1 -1
  80. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_capture.rb +1 -1
  81. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +1 -1
  82. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights.rb +22 -5
  83. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +1 -1
  84. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +1 -1
  85. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +15 -5
  86. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +15 -5
  87. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_refund_options.rb +191 -0
  88. data/lib/cybersource_rest_client/models/ptsv2credits_recipient_information.rb +214 -0
  89. data/lib/cybersource_rest_client/models/{riskv1authenticationresults_order_information_line_items.rb → ptsv2credits_sender_information.rb} +78 -43
  90. data/lib/cybersource_rest_client/models/ptsv2credits_sender_information_account.rb +214 -0
  91. data/lib/cybersource_rest_client/models/ptsv2payments_acquirer_information.rb +22 -5
  92. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +12 -1
  93. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information.rb +35 -5
  94. data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information.rb +1 -1
  95. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +5 -17
  96. data/lib/cybersource_rest_client/models/riskv1decisions_acquirer_information.rb +248 -0
  97. data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations.rb → sa_config.rb} +7 -7
  98. data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_checkout.rb → sa_config_checkout.rb} +1 -1
  99. data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_contact_information.rb → sa_config_contact_information.rb} +1 -1
  100. data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_notifications.rb → sa_config_notifications.rb} +3 -3
  101. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_config_notifications_customer_notifications.rb → sa_config_notifications_customer_notifications.rb} +1 -1
  102. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_config_notifications_merchant_notifications.rb → sa_config_notifications_merchant_notifications.rb} +1 -1
  103. data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_payment_methods.rb → sa_config_payment_methods.rb} +1 -1
  104. data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_payment_types.rb → sa_config_payment_types.rb} +2 -2
  105. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_config_payment_types_card_types.rb → sa_config_payment_types_card_types.rb} +5 -5
  106. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_config_payment_types_card_types_discover.rb → sa_config_payment_types_card_types_discover.rb} +1 -1
  107. data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_service.rb → sa_config_service.rb} +1 -1
  108. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_authorization_options.rb → tms_authorization_options.rb} +2 -2
  109. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_authorization_options_initiator.rb → tms_authorization_options_initiator.rb} +2 -2
  110. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_merchant_initiated_transaction.rb → tms_authorization_options_initiator_merchant_initiated_transaction.rb} +1 -1
  111. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb → tms_embedded_instrument_identifier.rb} +9 -9
  112. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier__links.rb → tms_embedded_instrument_identifier__links.rb} +3 -3
  113. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_payment_instruments.rb → tms_embedded_instrument_identifier__links_payment_instruments.rb} +1 -1
  114. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier__links_self.rb → tms_embedded_instrument_identifier__links_self.rb} +1 -1
  115. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bank_account.rb → tms_embedded_instrument_identifier_bank_account.rb} +1 -1
  116. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb → tms_embedded_instrument_identifier_bill_to.rb} +1 -1
  117. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb → tms_embedded_instrument_identifier_card.rb} +1 -1
  118. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_issuer.rb → tms_embedded_instrument_identifier_issuer.rb} +1 -1
  119. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb → tms_embedded_instrument_identifier_metadata.rb} +1 -1
  120. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_processing_information.rb → tms_embedded_instrument_identifier_processing_information.rb} +2 -2
  121. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_tokenized_card.rb → tms_embedded_instrument_identifier_tokenized_card.rb} +26 -4
  122. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_tokenized_card_card.rb → tms_embedded_instrument_identifier_tokenized_card_card.rb} +1 -1
  123. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_processing_information.rb → tms_payment_instrument_processing_info.rb} +2 -2
  124. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb → tms_payment_instrument_processing_info_bank_transfer_options.rb} +1 -1
  125. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +1 -1
  126. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
  127. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +21 -1
  128. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +28 -1
  129. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +40 -1
  130. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +1 -1
  131. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_capture_options.rb +214 -0
  132. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_recurring_payment_information.rb +197 -0
  133. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_unscheduled_payment_information.rb +191 -0
  134. data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_features.rb → vt_config.rb} +3 -3
  135. data/lib/cybersource_rest_client/models/{payments_products_virtual_terminal_configuration_information_configurations_card_not_present.rb → vt_config_card_not_present.rb} +3 -3
  136. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_global_payment_info.rb → vt_config_card_not_present_global_payment_information.rb} +4 -4
  137. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_global_payment_info_basic_info.rb → vt_config_card_not_present_global_payment_information_basic_information.rb} +1 -1
  138. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_merchant_defined_data_fields.rb → vt_config_card_not_present_global_payment_information_merchant_defined_data_fields.rb} +1 -1
  139. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_payment_info.rb → vt_config_card_not_present_global_payment_information_payment_information.rb} +1 -1
  140. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_receipt_info.rb → vt_config_card_not_present_receipt_information.rb} +4 -4
  141. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_receipt_info_email_receipt.rb → vt_config_card_not_present_receipt_information_email_receipt.rb} +1 -1
  142. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_receipt_info_header.rb → vt_config_card_not_present_receipt_information_header.rb} +1 -1
  143. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_receipt_info_order_info.rb → vt_config_card_not_present_receipt_information_order_information.rb} +1 -1
  144. data/lib/cybersource_rest_client.rb +99 -90
  145. metadata +127 -118
@@ -13,13 +13,19 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard
17
- # The network token card association brand Possible Values: - visa - mastercard
16
+ class TmsEmbeddedInstrumentIdentifierTokenizedCard
17
+ # The network token card association brand Possible Values: - visa - mastercard - americanexpress
18
18
  attr_accessor :type
19
19
 
20
20
  # State of the network token or network token provision Possible Values: - ACTIVE : Network token is active. - SUSPENDED : Network token is suspended. This state can change back to ACTIVE. - DELETED : This is a final state for a network token instance. - UNPROVISIONED : A previous network token provision was unsuccessful.
21
21
  attr_accessor :state
22
22
 
23
+ # Unique Identifier for the enrolled PAN. This Id is provided by the card association when a network token is provisioned successfully.
24
+ attr_accessor :enrollment_id
25
+
26
+ # Unique Identifier for the network token. This Id is provided by the card association when a network token is provisioned successfully.
27
+ attr_accessor :token_reference_id
28
+
23
29
  # Issuers state for the network token Possible Values: - INVALID_REQUEST : The network token provision request contained invalid data. - CARD_VERIFICATION_FAILED : The network token provision request contained data that could not be verified. - CARD_NOT_ELIGIBLE : Card can currently not be used with issuer for tokenization. - CARD_NOT_ALLOWED : Card can currently not be used with card association for tokenization. - DECLINED : Card can currently not be used with issuer for tokenization. - SERVICE_UNAVAILABLE : The network token service was unavailable or timed out. - SYSTEM_ERROR : An unexpected error occurred with network token service, check configuration.
24
30
  attr_accessor :reason
25
31
 
@@ -42,6 +48,8 @@ module CyberSource
42
48
  {
43
49
  :'type' => :'type',
44
50
  :'state' => :'state',
51
+ :'enrollment_id' => :'enrollmentId',
52
+ :'token_reference_id' => :'tokenReferenceId',
45
53
  :'reason' => :'reason',
46
54
  :'number' => :'number',
47
55
  :'expiration_month' => :'expirationMonth',
@@ -56,6 +64,8 @@ module CyberSource
56
64
  {
57
65
  :'type' => :'type',
58
66
  :'state' => :'state',
67
+ :'enrollment_id' => :'enrollment_id',
68
+ :'token_reference_id' => :'token_reference_id',
59
69
  :'reason' => :'reason',
60
70
  :'number' => :'number',
61
71
  :'expiration_month' => :'expiration_month',
@@ -70,12 +80,14 @@ module CyberSource
70
80
  {
71
81
  :'type' => :'String',
72
82
  :'state' => :'String',
83
+ :'enrollment_id' => :'String',
84
+ :'token_reference_id' => :'String',
73
85
  :'reason' => :'String',
74
86
  :'number' => :'String',
75
87
  :'expiration_month' => :'String',
76
88
  :'expiration_year' => :'String',
77
89
  :'cryptogram' => :'String',
78
- :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCardCard'
90
+ :'card' => :'TmsEmbeddedInstrumentIdentifierTokenizedCardCard'
79
91
  }
80
92
  end
81
93
 
@@ -95,6 +107,14 @@ module CyberSource
95
107
  self.state = attributes[:'state']
96
108
  end
97
109
 
110
+ if attributes.has_key?(:'enrollmentId')
111
+ self.enrollment_id = attributes[:'enrollmentId']
112
+ end
113
+
114
+ if attributes.has_key?(:'tokenReferenceId')
115
+ self.token_reference_id = attributes[:'tokenReferenceId']
116
+ end
117
+
98
118
  if attributes.has_key?(:'reason')
99
119
  self.reason = attributes[:'reason']
100
120
  end
@@ -152,6 +172,8 @@ module CyberSource
152
172
  self.class == o.class &&
153
173
  type == o.type &&
154
174
  state == o.state &&
175
+ enrollment_id == o.enrollment_id &&
176
+ token_reference_id == o.token_reference_id &&
155
177
  reason == o.reason &&
156
178
  number == o.number &&
157
179
  expiration_month == o.expiration_month &&
@@ -169,7 +191,7 @@ module CyberSource
169
191
  # Calculates hash code according to all attributes.
170
192
  # @return [Fixnum] Hash code
171
193
  def hash
172
- [type, state, reason, number, expiration_month, expiration_year, cryptogram, card].hash
194
+ [type, state, enrollment_id, token_reference_id, reason, number, expiration_month, expiration_year, cryptogram, card].hash
173
195
  end
174
196
 
175
197
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  # The latest card details associated with the network token
17
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCardCard
17
+ class TmsEmbeddedInstrumentIdentifierTokenizedCardCard
18
18
  # The customer's latest payment card number suffix
19
19
  attr_accessor :suffix
20
20
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformation
16
+ class TmsPaymentInstrumentProcessingInfo
17
17
  # Flag that indicates that this is a payment for a bill or for an existing contractual loan. For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) Possible Values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment.
18
18
  attr_accessor :bill_payment_program_enabled
19
19
 
@@ -39,7 +39,7 @@ module CyberSource
39
39
  def self.swagger_types
40
40
  {
41
41
  :'bill_payment_program_enabled' => :'BOOLEAN',
42
- :'bank_transfer_options' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions'
42
+ :'bank_transfer_options' => :'TmsPaymentInstrumentProcessingInfoBankTransferOptions'
43
43
  }
44
44
  end
45
45
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions
16
+ class TmsPaymentInstrumentProcessingInfoBankTransferOptions
17
17
  # Specifies the authorization method for the transaction. #### TeleCheck Possible Values: - `ARC`: account receivable conversion - `CCD`: corporate cash disbursement - `POP`: point of purchase conversion - `PPD`: prearranged payment and deposit entry - `TEL`: telephone-initiated entry - `WEB`: internet-initiated entry For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)
18
18
  attr_accessor :sec_code
19
19
 
@@ -104,7 +104,7 @@ module CyberSource
104
104
  :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard',
105
105
  :'buyer_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation',
106
106
  :'bill_to' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo',
107
- :'processing_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformation',
107
+ :'processing_information' => :'TmsPaymentInstrumentProcessingInfo',
108
108
  :'merchant_information' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation',
109
109
  :'instrument_identifier' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier',
110
110
  :'metadata' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata',
@@ -34,7 +34,7 @@ module CyberSource
34
34
  # Attribute type mapping.
35
35
  def self.swagger_types
36
36
  {
37
- :'instrument_identifier' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifier'
37
+ :'instrument_identifier' => :'TmsEmbeddedInstrumentIdentifier'
38
38
  }
39
39
  end
40
40
 
@@ -63,10 +63,14 @@ module CyberSource
63
63
 
64
64
  attr_accessor :payout_options
65
65
 
66
+ attr_accessor :unscheduled_payment_information
67
+
66
68
  attr_accessor :processing_information
67
69
 
68
70
  attr_accessor :processor_information
69
71
 
72
+ attr_accessor :recurring_payment_information
73
+
70
74
  attr_accessor :point_of_sale_information
71
75
 
72
76
  attr_accessor :risk_information
@@ -101,8 +105,10 @@ module CyberSource
101
105
  :'payment_information' => :'paymentInformation',
102
106
  :'payment_insights_information' => :'paymentInsightsInformation',
103
107
  :'payout_options' => :'payoutOptions',
108
+ :'unscheduled_payment_information' => :'unscheduledPaymentInformation',
104
109
  :'processing_information' => :'processingInformation',
105
110
  :'processor_information' => :'processorInformation',
111
+ :'recurring_payment_information' => :'recurringPaymentInformation',
106
112
  :'point_of_sale_information' => :'pointOfSaleInformation',
107
113
  :'risk_information' => :'riskInformation',
108
114
  :'sender_information' => :'senderInformation',
@@ -135,8 +141,10 @@ module CyberSource
135
141
  :'payment_information' => :'payment_information',
136
142
  :'payment_insights_information' => :'payment_insights_information',
137
143
  :'payout_options' => :'payout_options',
144
+ :'unscheduled_payment_information' => :'unscheduled_payment_information',
138
145
  :'processing_information' => :'processing_information',
139
146
  :'processor_information' => :'processor_information',
147
+ :'recurring_payment_information' => :'recurring_payment_information',
140
148
  :'point_of_sale_information' => :'point_of_sale_information',
141
149
  :'risk_information' => :'risk_information',
142
150
  :'sender_information' => :'sender_information',
@@ -169,8 +177,10 @@ module CyberSource
169
177
  :'payment_information' => :'TssV2TransactionsGet200ResponsePaymentInformation',
170
178
  :'payment_insights_information' => :'PtsV2PaymentsPost201ResponsePaymentInsightsInformation',
171
179
  :'payout_options' => :'TssV2TransactionsGet200ResponsePayoutOptions',
180
+ :'unscheduled_payment_information' => :'TssV2TransactionsGet200ResponseUnscheduledPaymentInformation',
172
181
  :'processing_information' => :'TssV2TransactionsGet200ResponseProcessingInformation',
173
182
  :'processor_information' => :'TssV2TransactionsGet200ResponseProcessorInformation',
183
+ :'recurring_payment_information' => :'TssV2TransactionsGet200ResponseRecurringPaymentInformation',
174
184
  :'point_of_sale_information' => :'TssV2TransactionsGet200ResponsePointOfSaleInformation',
175
185
  :'risk_information' => :'TssV2TransactionsGet200ResponseRiskInformation',
176
186
  :'sender_information' => :'TssV2TransactionsGet200ResponseSenderInformation',
@@ -273,6 +283,10 @@ module CyberSource
273
283
  self.payout_options = attributes[:'payoutOptions']
274
284
  end
275
285
 
286
+ if attributes.has_key?(:'unscheduledPaymentInformation')
287
+ self.unscheduled_payment_information = attributes[:'unscheduledPaymentInformation']
288
+ end
289
+
276
290
  if attributes.has_key?(:'processingInformation')
277
291
  self.processing_information = attributes[:'processingInformation']
278
292
  end
@@ -281,6 +295,10 @@ module CyberSource
281
295
  self.processor_information = attributes[:'processorInformation']
282
296
  end
283
297
 
298
+ if attributes.has_key?(:'recurringPaymentInformation')
299
+ self.recurring_payment_information = attributes[:'recurringPaymentInformation']
300
+ end
301
+
284
302
  if attributes.has_key?(:'pointOfSaleInformation')
285
303
  self.point_of_sale_information = attributes[:'pointOfSaleInformation']
286
304
  end
@@ -359,8 +377,10 @@ module CyberSource
359
377
  payment_information == o.payment_information &&
360
378
  payment_insights_information == o.payment_insights_information &&
361
379
  payout_options == o.payout_options &&
380
+ unscheduled_payment_information == o.unscheduled_payment_information &&
362
381
  processing_information == o.processing_information &&
363
382
  processor_information == o.processor_information &&
383
+ recurring_payment_information == o.recurring_payment_information &&
364
384
  point_of_sale_information == o.point_of_sale_information &&
365
385
  risk_information == o.risk_information &&
366
386
  sender_information == o.sender_information &&
@@ -377,7 +397,7 @@ module CyberSource
377
397
  # Calculates hash code according to all attributes.
378
398
  # @return [Fixnum] Hash code
379
399
  def hash
380
- [id, root_id, reconciliation_id, merchant_id, submit_time_utc, status, application_information, buyer_information, client_reference_information, consumer_authentication_information, device_information, error_information, installment_information, fraud_marking_information, health_care_information, merchant_defined_information, merchant_information, order_information, payment_information, payment_insights_information, payout_options, processing_information, processor_information, point_of_sale_information, risk_information, sender_information, token_information, _links].hash
400
+ [id, root_id, reconciliation_id, merchant_id, submit_time_utc, status, application_information, buyer_information, client_reference_information, consumer_authentication_information, device_information, error_information, installment_information, fraud_marking_information, health_care_information, merchant_defined_information, merchant_information, order_information, payment_information, payment_insights_information, payout_options, unscheduled_payment_information, processing_information, processor_information, recurring_payment_information, point_of_sale_information, risk_information, sender_information, token_information, _links].hash
381
401
  end
382
402
 
383
403
  # Builds the object from hash
@@ -36,6 +36,11 @@ module CyberSource
36
36
 
37
37
  attr_accessor :bank_transfer_options
38
38
 
39
+ attr_accessor :capture_options
40
+
41
+ # Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response.
42
+ attr_accessor :reconciliation_id
43
+
39
44
  attr_accessor :japan_payment_options
40
45
 
41
46
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -49,6 +54,8 @@ module CyberSource
49
54
  :'business_application_id' => :'businessApplicationId',
50
55
  :'authorization_options' => :'authorizationOptions',
51
56
  :'bank_transfer_options' => :'bankTransferOptions',
57
+ :'capture_options' => :'captureOptions',
58
+ :'reconciliation_id' => :'reconciliationId',
52
59
  :'japan_payment_options' => :'japanPaymentOptions'
53
60
  }
54
61
  end
@@ -64,6 +71,8 @@ module CyberSource
64
71
  :'business_application_id' => :'business_application_id',
65
72
  :'authorization_options' => :'authorization_options',
66
73
  :'bank_transfer_options' => :'bank_transfer_options',
74
+ :'capture_options' => :'capture_options',
75
+ :'reconciliation_id' => :'reconciliation_id',
67
76
  :'japan_payment_options' => :'japan_payment_options'
68
77
  }
69
78
  end
@@ -79,6 +88,8 @@ module CyberSource
79
88
  :'business_application_id' => :'String',
80
89
  :'authorization_options' => :'TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions',
81
90
  :'bank_transfer_options' => :'TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions',
91
+ :'capture_options' => :'TssV2TransactionsGet200ResponseProcessingInformationCaptureOptions',
92
+ :'reconciliation_id' => :'String',
82
93
  :'japan_payment_options' => :'TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions'
83
94
  }
84
95
  end
@@ -123,6 +134,14 @@ module CyberSource
123
134
  self.bank_transfer_options = attributes[:'bankTransferOptions']
124
135
  end
125
136
 
137
+ if attributes.has_key?(:'captureOptions')
138
+ self.capture_options = attributes[:'captureOptions']
139
+ end
140
+
141
+ if attributes.has_key?(:'reconciliationId')
142
+ self.reconciliation_id = attributes[:'reconciliationId']
143
+ end
144
+
126
145
  if attributes.has_key?(:'japanPaymentOptions')
127
146
  self.japan_payment_options = attributes[:'japanPaymentOptions']
128
147
  end
@@ -165,6 +184,12 @@ module CyberSource
165
184
  @commerce_indicator_label = commerce_indicator_label
166
185
  end
167
186
 
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] reconciliation_id Value to be assigned
189
+ def reconciliation_id=(reconciliation_id)
190
+ @reconciliation_id = reconciliation_id
191
+ end
192
+
168
193
  # Checks equality by comparing each attribute.
169
194
  # @param [Object] Object to be compared
170
195
  def ==(o)
@@ -178,6 +203,8 @@ module CyberSource
178
203
  business_application_id == o.business_application_id &&
179
204
  authorization_options == o.authorization_options &&
180
205
  bank_transfer_options == o.bank_transfer_options &&
206
+ capture_options == o.capture_options &&
207
+ reconciliation_id == o.reconciliation_id &&
181
208
  japan_payment_options == o.japan_payment_options
182
209
  end
183
210
 
@@ -190,7 +217,7 @@ module CyberSource
190
217
  # Calculates hash code according to all attributes.
191
218
  # @return [Fixnum] Hash code
192
219
  def hash
193
- [bin_source, industry_data_type, payment_solution, commerce_indicator, commerce_indicator_label, business_application_id, authorization_options, bank_transfer_options, japan_payment_options].hash
220
+ [bin_source, industry_data_type, payment_solution, commerce_indicator, commerce_indicator_label, business_application_id, authorization_options, bank_transfer_options, capture_options, reconciliation_id, japan_payment_options].hash
194
221
  end
195
222
 
196
223
  # Builds the object from hash
@@ -17,12 +17,24 @@ module CyberSource
17
17
  # Authorization type. Possible values: - `AUTOCAPTURE`: automatic capture. - `STANDARDCAPTURE`: standard capture. - `VERBAL`: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. #### Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing Set this field to `AUTOCAPTURE` and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to `STANDARDCAPTURE` and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. For more information, see the `auth_type` field description in [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) #### Forced Capture Set this field to `VERBAL` and include it in the authorization request to indicate that you are performing a forced capture; therefore, you receive the authorization code outside the CyberSource system. #### Verbal Authorization Set this field to `VERBAL` and include it in the capture request to indicate that the request is for a verbal authorization. For more information, see \"Verbal Authorizations\" in [Credit Card Services Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html).
18
18
  attr_accessor :auth_type
19
19
 
20
+ # Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization To set the default for this field, contact CyberSource Customer Support. #### Barclays and Elavon The default for Barclays and Elavon is 1 (final authorization). To change the default for this field, contact CyberSource Customer Support. #### CyberSource through VisaNet When the value for this field is 0, it corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators When the value for this field is 1, it does not correspond to any data in the TC 33 capture file.
21
+ attr_accessor :auth_indicator
22
+
23
+ # Flag that indicates whether the transaction is an extended authorization.
24
+ attr_accessor :extend_auth_indicator
25
+
26
+ # This API field will indicate whether a card verification check is being performed during the transaction Possible values: - `true` - `false` (default value)
27
+ attr_accessor :card_verification_indicator
28
+
20
29
  attr_accessor :initiator
21
30
 
22
31
  # Attribute mapping from ruby-style variable name to JSON key.
23
32
  def self.attribute_map
24
33
  {
25
34
  :'auth_type' => :'authType',
35
+ :'auth_indicator' => :'authIndicator',
36
+ :'extend_auth_indicator' => :'extendAuthIndicator',
37
+ :'card_verification_indicator' => :'cardVerificationIndicator',
26
38
  :'initiator' => :'initiator'
27
39
  }
28
40
  end
@@ -31,6 +43,9 @@ module CyberSource
31
43
  def self.json_map
32
44
  {
33
45
  :'auth_type' => :'auth_type',
46
+ :'auth_indicator' => :'auth_indicator',
47
+ :'extend_auth_indicator' => :'extend_auth_indicator',
48
+ :'card_verification_indicator' => :'card_verification_indicator',
34
49
  :'initiator' => :'initiator'
35
50
  }
36
51
  end
@@ -39,6 +54,9 @@ module CyberSource
39
54
  def self.swagger_types
40
55
  {
41
56
  :'auth_type' => :'String',
57
+ :'auth_indicator' => :'String',
58
+ :'extend_auth_indicator' => :'String',
59
+ :'card_verification_indicator' => :'BOOLEAN',
42
60
  :'initiator' => :'TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator'
43
61
  }
44
62
  end
@@ -55,6 +73,18 @@ module CyberSource
55
73
  self.auth_type = attributes[:'authType']
56
74
  end
57
75
 
76
+ if attributes.has_key?(:'authIndicator')
77
+ self.auth_indicator = attributes[:'authIndicator']
78
+ end
79
+
80
+ if attributes.has_key?(:'extendAuthIndicator')
81
+ self.extend_auth_indicator = attributes[:'extendAuthIndicator']
82
+ end
83
+
84
+ if attributes.has_key?(:'cardVerificationIndicator')
85
+ self.card_verification_indicator = attributes[:'cardVerificationIndicator']
86
+ end
87
+
58
88
  if attributes.has_key?(:'initiator')
59
89
  self.initiator = attributes[:'initiator']
60
90
  end
@@ -79,12 +109,21 @@ module CyberSource
79
109
  @auth_type = auth_type
80
110
  end
81
111
 
112
+ # Custom attribute writer method with validation
113
+ # @param [Object] auth_indicator Value to be assigned
114
+ def auth_indicator=(auth_indicator)
115
+ @auth_indicator = auth_indicator
116
+ end
117
+
82
118
  # Checks equality by comparing each attribute.
83
119
  # @param [Object] Object to be compared
84
120
  def ==(o)
85
121
  return true if self.equal?(o)
86
122
  self.class == o.class &&
87
123
  auth_type == o.auth_type &&
124
+ auth_indicator == o.auth_indicator &&
125
+ extend_auth_indicator == o.extend_auth_indicator &&
126
+ card_verification_indicator == o.card_verification_indicator &&
88
127
  initiator == o.initiator
89
128
  end
90
129
 
@@ -97,7 +136,7 @@ module CyberSource
97
136
  # Calculates hash code according to all attributes.
98
137
  # @return [Fixnum] Hash code
99
138
  def hash
100
- [auth_type, initiator].hash
139
+ [auth_type, auth_indicator, extend_auth_indicator, card_verification_indicator, initiator].hash
101
140
  end
102
141
 
103
142
  # Builds the object from hash
@@ -51,7 +51,7 @@ module CyberSource
51
51
  :'type' => :'String',
52
52
  :'credential_stored_on_file' => :'String',
53
53
  :'stored_credential_used' => :'String',
54
- :'merchant_initiated_transaction' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction'
54
+ :'merchant_initiated_transaction' => :'MerchantInitiatedTransactionObject'
55
55
  }
56
56
  end
57
57
 
@@ -0,0 +1,214 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class TssV2TransactionsGet200ResponseProcessingInformationCaptureOptions
17
+ # Total number of captures when requesting multiple partial captures for one payment. Used along with `captureSequenceNumber` field to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - `captureSequenceNumber = 2`, and - `totalCaptureCount = 5`
18
+ attr_accessor :total_capture_count
19
+
20
+ # Capture number when requesting multiple partial captures for one authorization. Used along with `totalCaptureCount` to track which capture is being processed. For example, the second of five captures would be passed to CyberSource as: - `captureSequenceNumber_ = 2`, and - `totalCaptureCount = 5`
21
+ attr_accessor :capture_sequence_number
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'total_capture_count' => :'totalCaptureCount',
27
+ :'capture_sequence_number' => :'captureSequenceNumber'
28
+ }
29
+ end
30
+
31
+ # Attribute mapping from JSON key to ruby-style variable name.
32
+ def self.json_map
33
+ {
34
+ :'total_capture_count' => :'total_capture_count',
35
+ :'capture_sequence_number' => :'capture_sequence_number'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'total_capture_count' => :'Integer',
43
+ :'capture_sequence_number' => :'Integer'
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
54
+
55
+ if attributes.has_key?(:'totalCaptureCount')
56
+ self.total_capture_count = attributes[:'totalCaptureCount']
57
+ end
58
+
59
+ if attributes.has_key?(:'captureSequenceNumber')
60
+ self.capture_sequence_number = attributes[:'captureSequenceNumber']
61
+ end
62
+ end
63
+
64
+ # Show invalid properties with the reasons. Usually used together with valid?
65
+ # @return Array for valid properties with the reasons
66
+ def list_invalid_properties
67
+ invalid_properties = Array.new
68
+ invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ true
75
+ end
76
+
77
+ # Custom attribute writer method with validation
78
+ # @param [Object] total_capture_count Value to be assigned
79
+ def total_capture_count=(total_capture_count)
80
+ @total_capture_count = total_capture_count
81
+ end
82
+
83
+ # Custom attribute writer method with validation
84
+ # @param [Object] capture_sequence_number Value to be assigned
85
+ def capture_sequence_number=(capture_sequence_number)
86
+ @capture_sequence_number = capture_sequence_number
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ total_capture_count == o.total_capture_count &&
95
+ capture_sequence_number == o.capture_sequence_number
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [total_capture_count, capture_sequence_number].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :DateTime
137
+ DateTime.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :BOOLEAN
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ temp_model = CyberSource.const_get(type).new
168
+ temp_model.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ next if value.nil?
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+ end
214
+ end