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,197 @@
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 TssV2TransactionsGet200ResponseRecurringPaymentInformation
17
+ # Indicates recurring amount type agreed by the cardholder Valid Values : 1- Fixed amount recurring payment 2- Recurring payment with maximum amount
18
+ attr_accessor :amount_type
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'amount_type' => :'amountType'
24
+ }
25
+ end
26
+
27
+ # Attribute mapping from JSON key to ruby-style variable name.
28
+ def self.json_map
29
+ {
30
+ :'amount_type' => :'amount_type'
31
+ }
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.swagger_types
36
+ {
37
+ :'amount_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?(:'amountType')
50
+ self.amount_type = attributes[:'amountType']
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
+ # Custom attribute writer method with validation
68
+ # @param [Object] amount_type Value to be assigned
69
+ def amount_type=(amount_type)
70
+ @amount_type = amount_type
71
+ end
72
+
73
+ # Checks equality by comparing each attribute.
74
+ # @param [Object] Object to be compared
75
+ def ==(o)
76
+ return true if self.equal?(o)
77
+ self.class == o.class &&
78
+ amount_type == o.amount_type
79
+ end
80
+
81
+ # @see the `==` method
82
+ # @param [Object] Object to be compared
83
+ def eql?(o)
84
+ self == o
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Fixnum] Hash code
89
+ def hash
90
+ [amount_type].hash
91
+ end
92
+
93
+ # Builds the object from hash
94
+ # @param [Hash] attributes Model attributes in the form of hash
95
+ # @return [Object] Returns the model itself
96
+ def build_from_hash(attributes)
97
+ return nil unless attributes.is_a?(Hash)
98
+ self.class.swagger_types.each_pair do |key, type|
99
+ if type =~ /\AArray<(.*)>/i
100
+ # check to ensure the input is an array given that the the attribute
101
+ # is documented as an array but the input is not
102
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
103
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
+ end
105
+ elsif !attributes[self.class.attribute_map[key]].nil?
106
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
107
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
108
+ end
109
+
110
+ self
111
+ end
112
+
113
+ # Deserializes the data based on type
114
+ # @param string type Data type
115
+ # @param string value Value to be deserialized
116
+ # @return [Object] Deserialized data
117
+ def _deserialize(type, value)
118
+ case type.to_sym
119
+ when :DateTime
120
+ DateTime.parse(value)
121
+ when :Date
122
+ Date.parse(value)
123
+ when :String
124
+ value.to_s
125
+ when :Integer
126
+ value.to_i
127
+ when :Float
128
+ value.to_f
129
+ when :BOOLEAN
130
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131
+ true
132
+ else
133
+ false
134
+ end
135
+ when :Object
136
+ # generic object (usually a Hash), return directly
137
+ value
138
+ when /\AArray<(?<inner_type>.+)>\z/
139
+ inner_type = Regexp.last_match[:inner_type]
140
+ value.map { |v| _deserialize(inner_type, v) }
141
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
142
+ k_type = Regexp.last_match[:k_type]
143
+ v_type = Regexp.last_match[:v_type]
144
+ {}.tap do |hash|
145
+ value.each do |k, v|
146
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
147
+ end
148
+ end
149
+ else # model
150
+ temp_model = CyberSource.const_get(type).new
151
+ temp_model.build_from_hash(value)
152
+ end
153
+ end
154
+
155
+ # Returns the string representation of the object
156
+ # @return [String] String presentation of the object
157
+ def to_s
158
+ to_hash.to_s
159
+ end
160
+
161
+ # to_body is an alias to to_hash (backward compatibility)
162
+ # @return [Hash] Returns the object in the form of hash
163
+ def to_body
164
+ to_hash
165
+ end
166
+
167
+ # Returns the object in the form of hash
168
+ # @return [Hash] Returns the object in the form of hash
169
+ def to_hash
170
+ hash = {}
171
+ self.class.attribute_map.each_pair do |attr, param|
172
+ value = self.send(attr)
173
+ next if value.nil?
174
+ hash[param] = _to_hash(value)
175
+ end
176
+ hash
177
+ end
178
+
179
+ # Outputs non-array value in the form of hash
180
+ # For object, use to_hash. Otherwise, just return the value
181
+ # @param [Object] value Any valid value
182
+ # @return [Hash] Returns the value in the form of hash
183
+ def _to_hash(value)
184
+ if value.is_a?(Array)
185
+ value.compact.map { |v| _to_hash(v) }
186
+ elsif value.is_a?(Hash)
187
+ {}.tap do |hash|
188
+ value.each { |k, v| hash[k] = _to_hash(v) }
189
+ end
190
+ elsif value.respond_to? :to_hash
191
+ value.to_hash
192
+ else
193
+ value
194
+ end
195
+ end
196
+ end
197
+ end
@@ -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 TssV2TransactionsGet200ResponseUnscheduledPaymentInformation
17
+ # Indicates the type of unscheduled payment. This field is required for unscheduled payments CIT/MIT Possible values: 1: First unscheduled transaction. 2: Subsequent unscheduled transaction.
18
+ attr_accessor :type
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'type' => :'type'
24
+ }
25
+ end
26
+
27
+ # Attribute mapping from JSON key to ruby-style variable name.
28
+ def self.json_map
29
+ {
30
+ :'type' => :'type'
31
+ }
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.swagger_types
36
+ {
37
+ :'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?(:'type')
50
+ self.type = attributes[:'type']
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
+ type == o.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
+ [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
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsCardProcessingConfigurationInformationConfigurationsFeatures
16
+ class VTConfig
17
17
  attr_accessor :card_not_present
18
18
 
19
19
  attr_accessor :card_present
@@ -37,8 +37,8 @@ module CyberSource
37
37
  # Attribute type mapping.
38
38
  def self.swagger_types
39
39
  {
40
- :'card_not_present' => :'PaymentsProductsCardProcessingConfigurationInformationConfigurationsFeaturesCardNotPresent',
41
- :'card_present' => :'PaymentsProductsCardProcessingConfigurationInformationConfigurationsFeaturesCardPresent'
40
+ :'card_not_present' => :'VTConfigCardNotPresent',
41
+ :'card_present' => :'VTConfigCardNotPresent'
42
42
  }
43
43
  end
44
44
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresent
16
+ class VTConfigCardNotPresent
17
17
  attr_accessor :global_payment_information
18
18
 
19
19
  attr_accessor :receipt_information
@@ -37,8 +37,8 @@ module CyberSource
37
37
  # Attribute type mapping.
38
38
  def self.swagger_types
39
39
  {
40
- :'global_payment_information' => :'PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentGlobalPaymentInformation',
41
- :'receipt_information' => :'PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentReceiptInformation'
40
+ :'global_payment_information' => :'VTConfigCardNotPresentGlobalPaymentInformation',
41
+ :'receipt_information' => :'VTConfigCardNotPresentReceiptInformation'
42
42
  }
43
43
  end
44
44
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentGlobalPaymentInformation
16
+ class VTConfigCardNotPresentGlobalPaymentInformation
17
17
  attr_accessor :basic_information
18
18
 
19
19
  attr_accessor :payment_information
@@ -41,9 +41,9 @@ module CyberSource
41
41
  # Attribute type mapping.
42
42
  def self.swagger_types
43
43
  {
44
- :'basic_information' => :'PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentGlobalPaymentInformationBasicInformation',
45
- :'payment_information' => :'PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentGlobalPaymentInformationPaymentInformation',
46
- :'merchant_defined_data_fields' => :'PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentGlobalPaymentInformationMerchantDefinedDataFields'
44
+ :'basic_information' => :'VTConfigCardNotPresentGlobalPaymentInformationBasicInformation',
45
+ :'payment_information' => :'VTConfigCardNotPresentGlobalPaymentInformationPaymentInformation',
46
+ :'merchant_defined_data_fields' => :'VTConfigCardNotPresentGlobalPaymentInformationMerchantDefinedDataFields'
47
47
  }
48
48
  end
49
49
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentGlobalPaymentInformationBasicInformation
16
+ class VTConfigCardNotPresentGlobalPaymentInformationBasicInformation
17
17
  attr_accessor :default_standard_entry_class_code
18
18
 
19
19
  # ISO 4217 format
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentGlobalPaymentInformationMerchantDefinedDataFields
16
+ class VTConfigCardNotPresentGlobalPaymentInformationMerchantDefinedDataFields
17
17
  attr_accessor :display_merchant_defined_data1
18
18
 
19
19
  attr_accessor :display_merchant_defined_data2
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentGlobalPaymentInformationPaymentInformation
16
+ class VTConfigCardNotPresentGlobalPaymentInformationPaymentInformation
17
17
  attr_accessor :display_card_verification_value
18
18
 
19
19
  attr_accessor :require_card_verification_value
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentReceiptInformation
16
+ class VTConfigCardNotPresentReceiptInformation
17
17
  attr_accessor :header
18
18
 
19
19
  attr_accessor :order_information
@@ -41,9 +41,9 @@ module CyberSource
41
41
  # Attribute type mapping.
42
42
  def self.swagger_types
43
43
  {
44
- :'header' => :'PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentReceiptInformationHeader',
45
- :'order_information' => :'PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentReceiptInformationOrderInformation',
46
- :'email_receipt' => :'PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentReceiptInformationEmailReceipt'
44
+ :'header' => :'VTConfigCardNotPresentReceiptInformationHeader',
45
+ :'order_information' => :'VTConfigCardNotPresentReceiptInformationOrderInformation',
46
+ :'email_receipt' => :'VTConfigCardNotPresentReceiptInformationEmailReceipt'
47
47
  }
48
48
  end
49
49
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentReceiptInformationEmailReceipt
16
+ class VTConfigCardNotPresentReceiptInformationEmailReceipt
17
17
  attr_accessor :senders_email_address
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentReceiptInformationHeader
16
+ class VTConfigCardNotPresentReceiptInformationHeader
17
17
  attr_accessor :virtual_terminal_receipt_header
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class PaymentsProductsVirtualTerminalConfigurationInformationConfigurationsCardNotPresentReceiptInformationOrderInformation
16
+ class VTConfigCardNotPresentReceiptInformationOrderInformation
17
17
  attr_accessor :email_alias_name
18
18
 
19
19
  attr_accessor :custom_reply_to_email_address