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
@@ -0,0 +1,191 @@
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 PostPaymentCredentialsRequest
17
+ # The type of payment credentials to be returned. By default, payment credentials include network token and cryptogram or dynamic CVV. If \"NETWORK_TOKEN\" is supplied then only network token will be returned and cryptogram or dynamic CVV will be excluded. Possible Values: - NETWORK_TOKEN
18
+ attr_accessor :payment_credential_type
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'payment_credential_type' => :'paymentCredentialType'
24
+ }
25
+ end
26
+
27
+ # Attribute mapping from JSON key to ruby-style variable name.
28
+ def self.json_map
29
+ {
30
+ :'payment_credential_type' => :'payment_credential_type'
31
+ }
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.swagger_types
36
+ {
37
+ :'payment_credential_type' => :'String'
38
+ }
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ return unless attributes.is_a?(Hash)
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
+
49
+ if attributes.has_key?(:'paymentCredentialType')
50
+ self.payment_credential_type = attributes[:'paymentCredentialType']
51
+ end
52
+ end
53
+
54
+ # Show invalid properties with the reasons. Usually used together with valid?
55
+ # @return Array for valid properties with the reasons
56
+ def list_invalid_properties
57
+ invalid_properties = Array.new
58
+ invalid_properties
59
+ end
60
+
61
+ # Check to see if the all the properties in the model are valid
62
+ # @return true if the model is valid
63
+ def valid?
64
+ true
65
+ end
66
+
67
+ # Checks equality by comparing each attribute.
68
+ # @param [Object] Object to be compared
69
+ def ==(o)
70
+ return true if self.equal?(o)
71
+ self.class == o.class &&
72
+ payment_credential_type == o.payment_credential_type
73
+ end
74
+
75
+ # @see the `==` method
76
+ # @param [Object] Object to be compared
77
+ def eql?(o)
78
+ self == o
79
+ end
80
+
81
+ # Calculates hash code according to all attributes.
82
+ # @return [Fixnum] Hash code
83
+ def hash
84
+ [payment_credential_type].hash
85
+ end
86
+
87
+ # Builds the object from hash
88
+ # @param [Hash] attributes Model attributes in the form of hash
89
+ # @return [Object] Returns the model itself
90
+ def build_from_hash(attributes)
91
+ return nil unless attributes.is_a?(Hash)
92
+ self.class.swagger_types.each_pair do |key, type|
93
+ if type =~ /\AArray<(.*)>/i
94
+ # check to ensure the input is an array given that the the attribute
95
+ # is documented as an array but the input is not
96
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
97
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
98
+ end
99
+ elsif !attributes[self.class.attribute_map[key]].nil?
100
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
101
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
102
+ end
103
+
104
+ self
105
+ end
106
+
107
+ # Deserializes the data based on type
108
+ # @param string type Data type
109
+ # @param string value Value to be deserialized
110
+ # @return [Object] Deserialized data
111
+ def _deserialize(type, value)
112
+ case type.to_sym
113
+ when :DateTime
114
+ DateTime.parse(value)
115
+ when :Date
116
+ Date.parse(value)
117
+ when :String
118
+ value.to_s
119
+ when :Integer
120
+ value.to_i
121
+ when :Float
122
+ value.to_f
123
+ when :BOOLEAN
124
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
125
+ true
126
+ else
127
+ false
128
+ end
129
+ when :Object
130
+ # generic object (usually a Hash), return directly
131
+ value
132
+ when /\AArray<(?<inner_type>.+)>\z/
133
+ inner_type = Regexp.last_match[:inner_type]
134
+ value.map { |v| _deserialize(inner_type, v) }
135
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
136
+ k_type = Regexp.last_match[:k_type]
137
+ v_type = Regexp.last_match[:v_type]
138
+ {}.tap do |hash|
139
+ value.each do |k, v|
140
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
141
+ end
142
+ end
143
+ else # model
144
+ temp_model = CyberSource.const_get(type).new
145
+ temp_model.build_from_hash(value)
146
+ end
147
+ end
148
+
149
+ # Returns the string representation of the object
150
+ # @return [String] String presentation of the object
151
+ def to_s
152
+ to_hash.to_s
153
+ end
154
+
155
+ # to_body is an alias to to_hash (backward compatibility)
156
+ # @return [Hash] Returns the object in the form of hash
157
+ def to_body
158
+ to_hash
159
+ end
160
+
161
+ # Returns the object in the form of hash
162
+ # @return [Hash] Returns the object in the form of hash
163
+ def to_hash
164
+ hash = {}
165
+ self.class.attribute_map.each_pair do |attr, param|
166
+ value = self.send(attr)
167
+ next if value.nil?
168
+ hash[param] = _to_hash(value)
169
+ end
170
+ hash
171
+ end
172
+
173
+ # Outputs non-array value in the form of hash
174
+ # For object, use to_hash. Otherwise, just return the value
175
+ # @param [Object] value Any valid value
176
+ # @return [Hash] Returns the value in the form of hash
177
+ def _to_hash(value)
178
+ if value.is_a?(Array)
179
+ value.compact.map { |v| _to_hash(v) }
180
+ elsif value.is_a?(Hash)
181
+ {}.tap do |hash|
182
+ value.each { |k, v| hash[k] = _to_hash(v) }
183
+ end
184
+ elsif value.respond_to? :to_hash
185
+ value.to_hash
186
+ else
187
+ value
188
+ end
189
+ end
190
+ end
191
+ end
@@ -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',
@@ -22,7 +22,7 @@ module CyberSource
22
22
  # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
23
23
  attr_accessor :submit_time_utc
24
24
 
25
- # The status of the submitted transaction. Possible values: - PENDING
25
+ # The status of the submitted transaction. Possible values: - PENDING - TRANSMITTED (Only for Online Capture enabled merchants)
26
26
  attr_accessor :status
27
27
 
28
28
  # 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.
@@ -17,24 +17,30 @@ module CyberSource
17
17
  # Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003
18
18
  attr_accessor :transaction_id
19
19
 
20
+ # Network Transaction Identifier Applicable for online capture transactions only.
21
+ attr_accessor :network_transaction_id
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
- :'transaction_id' => :'transactionId'
26
+ :'transaction_id' => :'transactionId',
27
+ :'network_transaction_id' => :'networkTransactionId'
24
28
  }
25
29
  end
26
30
 
27
31
  # Attribute mapping from JSON key to ruby-style variable name.
28
32
  def self.json_map
29
33
  {
30
- :'transaction_id' => :'transaction_id'
34
+ :'transaction_id' => :'transaction_id',
35
+ :'network_transaction_id' => :'network_transaction_id'
31
36
  }
32
37
  end
33
38
 
34
39
  # Attribute type mapping.
35
40
  def self.swagger_types
36
41
  {
37
- :'transaction_id' => :'String'
42
+ :'transaction_id' => :'String',
43
+ :'network_transaction_id' => :'String'
38
44
  }
39
45
  end
40
46
 
@@ -49,6 +55,10 @@ module CyberSource
49
55
  if attributes.has_key?(:'transactionId')
50
56
  self.transaction_id = attributes[:'transactionId']
51
57
  end
58
+
59
+ if attributes.has_key?(:'networkTransactionId')
60
+ self.network_transaction_id = attributes[:'networkTransactionId']
61
+ end
52
62
  end
53
63
 
54
64
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -75,7 +85,8 @@ module CyberSource
75
85
  def ==(o)
76
86
  return true if self.equal?(o)
77
87
  self.class == o.class &&
78
- transaction_id == o.transaction_id
88
+ transaction_id == o.transaction_id &&
89
+ network_transaction_id == o.network_transaction_id
79
90
  end
80
91
 
81
92
  # @see the `==` method
@@ -87,7 +98,7 @@ module CyberSource
87
98
  # Calculates hash code according to all attributes.
88
99
  # @return [Fixnum] Hash code
89
100
  def hash
90
- [transaction_id].hash
101
+ [transaction_id, network_transaction_id].hash
91
102
  end
92
103
 
93
104
  # Builds the object from hash
@@ -33,7 +33,7 @@ module CyberSource
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'issuer_information' => :'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation'
36
+ :'issuer_information' => :'PaymentsStrongAuthIssuerInformation'
37
37
  }
38
38
  end
39
39
 
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE
17
- # The status of the submitted transaction. Possible values: - PENDING
17
+ # The status of the submitted transaction. Possible values: - PENDING - TRANSMITTED (Only for Online Capture enabled merchants)
18
18
  attr_accessor :status
19
19
 
20
20
  # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED
@@ -23,7 +23,7 @@ module CyberSource
23
23
  # Data defined by the issuer. This national use field contains two subfields for information unique to the processing of Visa transactions by members in Japan. This subfield contains the Katakana text to be printed on the receipt. For details, see `jpo_issuer_message` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
24
24
  attr_accessor :country_specific_discretionary_data
25
25
 
26
- # Additional authorization code that must be printed on the receipt when returned by the processor. This value is generated by the processor and is returned only for a successful transaction. This reply field is supported only for these processors: - FDC Nashville Global - SIX
26
+ # This is the raw Association/Issuer Response Codes. You can use 'issuer/association' response codes to identify when you can retry to authorize a declined transaction and increase successful transaction volumes. You'll receive an association/issuer response code for the majority of transactions. #### Processors supported: - HSBC - FDC Nashville Global - SIX Currently SIX is not receiving Association/Issuer Response Codes here it receives the additional authorization code that must be printed on the receipt when returned by the processor. #### Possible values: | Card Type | Response Code | Description | | ----------- | ------------- | ------------------------------------------------------------------------------ | | VISA | 000 | Successful approval/completion or that V.I.P. PIN verification is successful | | VISA | 001 | Refer to card issuer | | VISA | 002 | Refer to card issuer, special condition | | VISA | 003 | Invalid merchant or service provider | | VISA | 004 | Pickup card | | MasterCard | 000 | Approved or completed successfully | | MasterCard | 001 | Refer to card issuer | | MasterCard | 003 | Invalid merchant | | MasterCard | 004 | Capture card | | MasterCard | 005 | Do not honor | | AMEX | 000 | Approved | | AMEX | 001 | Approve with ID | | AMEX | 002 | Partial Approval (Prepaid Cards only) | | AMEX | 100 | Deny | | AMEX | 101 | Expired Card/Invalid Expiration Date | | Discover | 000 | Approved or completed successfully | | Discover | 001 | Reserved for future USE | | Discover | 002 | Reserved for future USE | | Discover | 003 | Invalid Merchant | | Discover | 004 | Capture Card | | .... | ... | For details, see `issuerInformation. responseCode` field description in the [Credit Card Service Using the SCMP API Guide.] (https://developer.cybersource.com/content/dam/docs/cybs/en-us/api-fields/reference/all/rest/api-fields.pdf)|
27
27
  attr_accessor :response_code
28
28
 
29
29
  # This field contains value '1' which is sent by Issuer in the response when PIN is requested by issuer, This field is only supported for Visa Platform Connect.
@@ -20,11 +20,15 @@ module CyberSource
20
20
  # Categorization Code of response message from processor Possible Values: - `01` : Issuer Will Never Approve - `02` : Issuer Can't Approve at this Time - `03` : Issuer Can't Approve with these Details - `04` : Generic Error - `98` : Others - `99` : Payment Insights Response Category Match Not Found
21
21
  attr_accessor :category_code
22
22
 
23
+ # Raw name of the processor used for the transaction processing, especially useful during acquirer swing to see which processor transaction settled with
24
+ attr_accessor :processor_raw_name
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'category' => :'category',
27
- :'category_code' => :'categoryCode'
30
+ :'category_code' => :'categoryCode',
31
+ :'processor_raw_name' => :'processorRawName'
28
32
  }
29
33
  end
30
34
 
@@ -32,7 +36,8 @@ module CyberSource
32
36
  def self.json_map
33
37
  {
34
38
  :'category' => :'category',
35
- :'category_code' => :'category_code'
39
+ :'category_code' => :'category_code',
40
+ :'processor_raw_name' => :'processor_raw_name'
36
41
  }
37
42
  end
38
43
 
@@ -40,7 +45,8 @@ module CyberSource
40
45
  def self.swagger_types
41
46
  {
42
47
  :'category' => :'String',
43
- :'category_code' => :'String'
48
+ :'category_code' => :'String',
49
+ :'processor_raw_name' => :'String'
44
50
  }
45
51
  end
46
52
 
@@ -59,6 +65,10 @@ module CyberSource
59
65
  if attributes.has_key?(:'categoryCode')
60
66
  self.category_code = attributes[:'categoryCode']
61
67
  end
68
+
69
+ if attributes.has_key?(:'processorRawName')
70
+ self.processor_raw_name = attributes[:'processorRawName']
71
+ end
62
72
  end
63
73
 
64
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -86,13 +96,20 @@ module CyberSource
86
96
  @category_code = category_code
87
97
  end
88
98
 
99
+ # Custom attribute writer method with validation
100
+ # @param [Object] processor_raw_name Value to be assigned
101
+ def processor_raw_name=(processor_raw_name)
102
+ @processor_raw_name = processor_raw_name
103
+ end
104
+
89
105
  # Checks equality by comparing each attribute.
90
106
  # @param [Object] Object to be compared
91
107
  def ==(o)
92
108
  return true if self.equal?(o)
93
109
  self.class == o.class &&
94
110
  category == o.category &&
95
- category_code == o.category_code
111
+ category_code == o.category_code &&
112
+ processor_raw_name == o.processor_raw_name
96
113
  end
97
114
 
98
115
  # @see the `==` method
@@ -104,7 +121,7 @@ module CyberSource
104
121
  # Calculates hash code according to all attributes.
105
122
  # @return [Fixnum] Hash code
106
123
  def hash
107
- [category, category_code].hash
124
+ [category, category_code, processor_raw_name].hash
108
125
  end
109
126
 
110
127
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice
17
- # Reason the recurring payment transaction was declined. For some processors, this field is used only for Mastercard. For other processors, this field is used for Visa and Mastercard. And for other processors, this field is not implemented. Possible values: - `00`: Response not provided. - `01`: New account information is available. Obtain the new information. - `02`: Try again later. - `03`: Do not try again. Obtain another type of payment from the customer. - `04`: Problem with a token or a partial shipment indicator. - `21`: Recurring payment cancellation service. - `99`: An unknown value was returned from the processor. For processor-specific information, see the `auth_merchant_advice_code` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
17
+ # - Merchant should update their retry logic to ensure retry is not attempted for the cards for which Issuer won't approve the transactions and where the retry is allowed. - Card Processing Associations provides this data which is being passed through in the following data element irrespective of the Card Associations. Usage of this data must be always associated with the Card Associations card types for merchant processing retry logic. - In additions to the Merchant Advice code, Associations also provides the decline response codes which provides the reason for decline. Association response code will be a pass-through value. #### Processors supported: - HSBC - Barclays - FDC Nash - FDI Global - Elavon America - VPC - Rede - Payment tech Salem #### Possible values: | Card Type | Advice Code | Description | | ----------- | ------------- | ------------------------------------------- | | VISA | 1 | Issuer never approves | | VISA | 2 | Issuer cannot approve at this time | | VISA | 3 | Data quality/revalidate payment information | | MasterCard | 01 | New account information available | | MasterCard | 02 | Try Again Later | | MasterCard | 03 | Do Not Try Again | | MasterCard | 04 | Token not supported | | MasterCard | 21 | Do not honor | | MasterCard | 22 | Merchant does not qualify for product code | | MasterCard | 24 | Retry after 1 hour | | MasterCard | 25 | Retry after 24 hours | | MasterCard | 26 | Retry after 2 days | | MasterCard | 27 | Retry after 4 days | | MasterCard | 28 | Retry after 6 days | | MasterCard | 29 | Retry after 8 days | | MasterCard | 30 | Retry after 10 days | | MasterCard | 99 | Do Not Try Again | For processor-specific information, see the `auth_merchant_advice_code` field 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 :code
19
19
 
20
20
  # Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR7 - Position: 96-99 - Field: Response Data-Merchant Advice Code For processor-specific information, see the `auth_merchant_advice_code_raw` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class PtsV2PaymentsReversalsPost201ResponseIssuerInformation
17
- # Additional authorization code that must be printed on the receipt when returned by the processor. This value is generated by the processor and is returned only for a successful transaction. This reply field is supported only for these processors: - FDC Nashville Global - SIX
17
+ # This is the raw Association/Issuer Response Codes. You can use 'issuer/association' response codes to identify when you can retry to authorize a declined transaction and increase successful transaction volumes. You'll receive an association/issuer response code for the majority of transactions. #### Processors supported: - HSBC - FDC Nashville Global - SIX Currently SIX is not receiving Association/Issuer Response Codes here it receives the additional authorization code that must be printed on the receipt when returned by the processor. #### Possible values: | Card Type | Response Code | Description | | ----------- | ------------- | ------------------------------------------------------------------------------ | | VISA | 000 | Successful approval/completion or that V.I.P. PIN verification is successful | | VISA | 001 | Refer to card issuer | | VISA | 002 | Refer to card issuer, special condition | | VISA | 003 | Invalid merchant or service provider | | VISA | 004 | Pickup card | | MasterCard | 000 | Approved or completed successfully | | MasterCard | 001 | Refer to card issuer | | MasterCard | 003 | Invalid merchant | | MasterCard | 004 | Capture card | | MasterCard | 005 | Do not honor | | AMEX | 000 | Approved | | AMEX | 001 | Approve with ID | | AMEX | 002 | Partial Approval (Prepaid Cards only) | | AMEX | 100 | Deny | | AMEX | 101 | Expired Card/Invalid Expiration Date | | Discover | 000 | Approved or completed successfully | | Discover | 001 | Reserved for future USE | | Discover | 002 | Reserved for future USE | | Discover | 003 | Invalid Merchant | | Discover | 004 | Capture Card | | .... | ... | For details, see `issuerInformation. responseCode` field description in the [Credit Card Service Using the SCMP API Guide.] (https://developer.cybersource.com/content/dam/docs/cybs/en-us/api-fields/reference/all/rest/api-fields.pdf)|
18
18
  attr_accessor :response_code
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,6 +42,8 @@ module CyberSource
42
42
 
43
43
  attr_accessor :issuer_information
44
44
 
45
+ attr_accessor :token_information
46
+
45
47
  # Attribute mapping from ruby-style variable name to JSON key.
46
48
  def self.attribute_map
47
49
  {
@@ -56,7 +58,8 @@ module CyberSource
56
58
  :'order_information' => :'orderInformation',
57
59
  :'processor_information' => :'processorInformation',
58
60
  :'recipient_information' => :'recipientInformation',
59
- :'issuer_information' => :'issuerInformation'
61
+ :'issuer_information' => :'issuerInformation',
62
+ :'token_information' => :'tokenInformation'
60
63
  }
61
64
  end
62
65
 
@@ -74,7 +77,8 @@ module CyberSource
74
77
  :'order_information' => :'order_information',
75
78
  :'processor_information' => :'processor_information',
76
79
  :'recipient_information' => :'recipient_information',
77
- :'issuer_information' => :'issuer_information'
80
+ :'issuer_information' => :'issuer_information',
81
+ :'token_information' => :'token_information'
78
82
  }
79
83
  end
80
84
 
@@ -92,7 +96,8 @@ module CyberSource
92
96
  :'order_information' => :'PtsV2PayoutsPost201ResponseOrderInformation',
93
97
  :'processor_information' => :'PtsV2PayoutsPost201ResponseProcessorInformation',
94
98
  :'recipient_information' => :'PtsV2PayoutsPost201ResponseRecipientInformation',
95
- :'issuer_information' => :'PtsV2PayoutsPost201ResponseIssuerInformation'
99
+ :'issuer_information' => :'PtsV2PayoutsPost201ResponseIssuerInformation',
100
+ :'token_information' => :'PtsV2PaymentsPost201ResponseTokenInformation'
96
101
  }
97
102
  end
98
103
 
@@ -151,6 +156,10 @@ module CyberSource
151
156
  if attributes.has_key?(:'issuerInformation')
152
157
  self.issuer_information = attributes[:'issuerInformation']
153
158
  end
159
+
160
+ if attributes.has_key?(:'tokenInformation')
161
+ self.token_information = attributes[:'tokenInformation']
162
+ end
154
163
  end
155
164
 
156
165
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -194,7 +203,8 @@ module CyberSource
194
203
  order_information == o.order_information &&
195
204
  processor_information == o.processor_information &&
196
205
  recipient_information == o.recipient_information &&
197
- issuer_information == o.issuer_information
206
+ issuer_information == o.issuer_information &&
207
+ token_information == o.token_information
198
208
  end
199
209
 
200
210
  # @see the `==` method
@@ -206,7 +216,7 @@ module CyberSource
206
216
  # Calculates hash code according to all attributes.
207
217
  # @return [Fixnum] Hash code
208
218
  def hash
209
- [_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, merchant_information, order_information, processor_information, recipient_information, issuer_information].hash
219
+ [_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, merchant_information, order_information, processor_information, recipient_information, issuer_information, token_information].hash
210
220
  end
211
221
 
212
222
  # Builds the object from hash
@@ -62,6 +62,8 @@ module CyberSource
62
62
 
63
63
  attr_accessor :japan_payment_options
64
64
 
65
+ attr_accessor :refund_options
66
+
65
67
  # Attribute mapping from ruby-style variable name to JSON key.
66
68
  def self.attribute_map
67
69
  {
@@ -82,7 +84,8 @@ module CyberSource
82
84
  :'purchase_options' => :'purchaseOptions',
83
85
  :'electronic_benefits_transfer' => :'electronicBenefitsTransfer',
84
86
  :'loan_options' => :'loanOptions',
85
- :'japan_payment_options' => :'japanPaymentOptions'
87
+ :'japan_payment_options' => :'japanPaymentOptions',
88
+ :'refund_options' => :'refundOptions'
86
89
  }
87
90
  end
88
91
 
@@ -106,7 +109,8 @@ module CyberSource
106
109
  :'purchase_options' => :'purchase_options',
107
110
  :'electronic_benefits_transfer' => :'electronic_benefits_transfer',
108
111
  :'loan_options' => :'loan_options',
109
- :'japan_payment_options' => :'japan_payment_options'
112
+ :'japan_payment_options' => :'japan_payment_options',
113
+ :'refund_options' => :'refund_options'
110
114
  }
111
115
  end
112
116
 
@@ -130,7 +134,8 @@ module CyberSource
130
134
  :'purchase_options' => :'Ptsv2creditsProcessingInformationPurchaseOptions',
131
135
  :'electronic_benefits_transfer' => :'Ptsv2creditsProcessingInformationElectronicBenefitsTransfer',
132
136
  :'loan_options' => :'Ptsv2paymentsProcessingInformationLoanOptions',
133
- :'japan_payment_options' => :'Ptsv2creditsProcessingInformationJapanPaymentOptions'
137
+ :'japan_payment_options' => :'Ptsv2creditsProcessingInformationJapanPaymentOptions',
138
+ :'refund_options' => :'Ptsv2creditsProcessingInformationRefundOptions'
134
139
  }
135
140
  end
136
141
 
@@ -213,6 +218,10 @@ module CyberSource
213
218
  if attributes.has_key?(:'japanPaymentOptions')
214
219
  self.japan_payment_options = attributes[:'japanPaymentOptions']
215
220
  end
221
+
222
+ if attributes.has_key?(:'refundOptions')
223
+ self.refund_options = attributes[:'refundOptions']
224
+ end
216
225
  end
217
226
 
218
227
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -322,7 +331,8 @@ module CyberSource
322
331
  purchase_options == o.purchase_options &&
323
332
  electronic_benefits_transfer == o.electronic_benefits_transfer &&
324
333
  loan_options == o.loan_options &&
325
- japan_payment_options == o.japan_payment_options
334
+ japan_payment_options == o.japan_payment_options &&
335
+ refund_options == o.refund_options
326
336
  end
327
337
 
328
338
  # @see the `==` method
@@ -334,7 +344,7 @@ module CyberSource
334
344
  # Calculates hash code according to all attributes.
335
345
  # @return [Fixnum] Hash code
336
346
  def hash
337
- [commerce_indicator, processor_id, payment_solution, reconciliation_id, link_id, report_group, visa_checkout_id, purchase_level, industry_data_type, wallet_type, national_net_domestic_data, network_routing_order, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, japan_payment_options].hash
347
+ [commerce_indicator, processor_id, payment_solution, reconciliation_id, link_id, report_group, visa_checkout_id, purchase_level, industry_data_type, wallet_type, national_net_domestic_data, network_routing_order, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, japan_payment_options, refund_options].hash
338
348
  end
339
349
 
340
350
  # Builds the object from hash