cybersource_rest_client 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client.rb +3 -39
  3. data/lib/cybersource_rest_client/api/conversion_details_api.rb +4 -4
  4. data/lib/cybersource_rest_client/api/decision_manager_api.rb +2 -2
  5. data/lib/cybersource_rest_client/api/net_fundings_api.rb +4 -4
  6. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +4 -4
  7. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +4 -10
  8. data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
  9. data/lib/cybersource_rest_client/api/reports_api.rb +12 -25
  10. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
  11. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +6 -6
  12. data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
  13. data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
  14. data/lib/cybersource_rest_client/models/create_payment_instrument_request.rb +2 -48
  15. data/lib/cybersource_rest_client/models/create_payment_request.rb +1 -1
  16. data/lib/cybersource_rest_client/models/create_search_request.rb +2 -2
  17. data/lib/cybersource_rest_client/models/embedded_instrument_identifier.rb +2 -48
  18. data/lib/cybersource_rest_client/models/file_detail.rb +1 -35
  19. data/lib/cybersource_rest_client/models/instrument_identifier.rb +2 -48
  20. data/lib/cybersource_rest_client/models/payment_instrument.rb +2 -48
  21. data/lib/cybersource_rest_client/models/payment_instrument_bank_account.rb +0 -34
  22. data/lib/cybersource_rest_client/models/payment_instrument_card.rb +2 -36
  23. data/lib/cybersource_rest_client/models/payment_instruments_for_instrument_identifier.rb +1 -35
  24. data/lib/cybersource_rest_client/models/personal_identification.rb +1 -35
  25. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +0 -34
  26. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +0 -34
  27. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +0 -46
  28. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +0 -34
  29. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +0 -34
  30. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +0 -34
  31. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +1 -1
  32. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +13 -37
  33. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +1 -1
  34. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -2
  35. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +7 -7
  36. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +15 -0
  37. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +1 -1
  38. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +1 -1
  39. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +0 -46
  40. data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +1 -47
  41. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +0 -34
  42. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +1 -1
  43. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +0 -46
  44. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +0 -34
  45. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +3 -3
  46. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +0 -46
  47. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +0 -34
  48. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +0 -46
  49. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +0 -34
  50. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +0 -34
  51. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +1 -1
  52. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
  53. data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +0 -34
  54. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +1 -1
  55. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
  56. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
  57. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +0 -34
  58. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +6 -6
  59. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +5 -5
  60. data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +1 -1
  61. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +1 -1
  62. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +1 -1
  63. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +2 -2
  64. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +3 -3
  65. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +1 -1
  66. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +1 -1
  67. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +7 -41
  68. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +32 -50
  69. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +1 -1
  70. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +4 -4
  71. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +1 -1
  72. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +1 -1
  73. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -3
  74. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
  75. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +4 -26
  76. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +1 -35
  77. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +2 -2
  78. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
  79. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
  80. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
  81. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
  82. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +3 -3
  83. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +32 -16
  84. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +3 -3
  85. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
  86. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +1 -1
  87. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +1 -1
  88. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +1 -1
  89. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +14 -48
  90. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  91. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  92. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +1 -1
  93. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +1 -34
  94. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +0 -22
  95. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +0 -22
  96. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +2 -48
  97. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response.rb +8 -8
  98. data/lib/cybersource_rest_client/models/{reporting_v3_reports_get200_response_reports.rb → reporting_v3_reports_get200_response_report_search_results.rb} +4 -62
  99. data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +3 -61
  100. data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +1 -35
  101. data/lib/cybersource_rest_client/models/request_body.rb +1 -35
  102. data/lib/cybersource_rest_client/models/request_body_1.rb +2 -47
  103. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +1 -1
  104. data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response.rb +0 -34
  105. data/lib/cybersource_rest_client/models/riskv1decisions_card_verification.rb +1 -1
  106. data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +5 -5
  107. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +1 -1
  108. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +15 -15
  109. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +1 -1
  110. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response.rb +1 -35
  111. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bank_account.rb +0 -34
  112. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +2 -36
  113. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_bank_transfer_options.rb +0 -34
  114. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb +2 -48
  115. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb +2 -48
  116. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb +1 -35
  117. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +2 -48
  118. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +2 -2
  119. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +3 -3
  120. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +2 -2
  121. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +5 -5
  122. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +2 -2
  123. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +1 -1
  124. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
  125. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +47 -31
  126. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +1 -1
  127. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +6 -6
  128. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +5 -5
  129. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +5 -5
  130. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.rb +3 -3
  131. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +23 -34
  132. data/lib/cybersource_rest_client/models/{risk_v1_authentications_post400_response.rb → tss_v2_transactions_get200_response_payment_information_payment_type_funding_source.rb} +37 -38
  133. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
  134. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.rb +1 -1
  135. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +3 -3
  136. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +14 -4
  137. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +1 -1
  138. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +5 -5
  139. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +5 -5
  140. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb +9 -9
  141. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +2 -2
  142. data/lib/cybersource_rest_client/models/{riskv1authentications_device_information_raw_data.rb → tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb} +17 -27
  143. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
  144. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +3 -3
  145. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +2 -2
  146. data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +0 -34
  147. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_account_information.rb +1 -34
  148. data/lib/cybersource_rest_client/models/update_payment_instrument_request.rb +2 -48
  149. data/lib/cybersource_rest_client/models/v1_file_details_get200_response_file_details.rb +1 -35
  150. metadata +5 -43
  151. data/lib/cybersource_rest_client/api/download_dtd_api.rb +0 -88
  152. data/lib/cybersource_rest_client/api/download_xsd_api.rb +0 -88
  153. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +0 -154
  154. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +0 -275
  155. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +0 -349
  156. data/lib/cybersource_rest_client/models/request.rb +0 -210
  157. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +0 -285
  158. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +0 -324
  159. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +0 -294
  160. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +0 -429
  161. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information.rb +0 -183
  162. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +0 -199
  163. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +0 -214
  164. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +0 -194
  165. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -267
  166. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +0 -192
  167. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +0 -264
  168. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +0 -264
  169. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +0 -196
  170. data/lib/cybersource_rest_client/models/riskv1authentications_client_reference_information.rb +0 -208
  171. data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +0 -552
  172. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +0 -285
  173. data/lib/cybersource_rest_client/models/riskv1authentications_merchant_information.rb +0 -199
  174. data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +0 -258
  175. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +0 -496
  176. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +0 -371
  177. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_ship_to.rb +0 -434
  178. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +0 -192
  179. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +0 -291
  180. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +0 -291
  181. data/lib/cybersource_rest_client/models/riskv1authentications_recurring_payment_information.rb +0 -235
  182. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb +0 -183
  183. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history.rb +0 -262
  184. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_account_history.rb +0 -209
  185. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_customer_account.rb +0 -279
  186. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +0 -206
  187. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +0 -259
  188. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_passengers.rb +0 -224
@@ -38,7 +38,7 @@ module CyberSource
38
38
 
39
39
  attr_accessor :point_of_sale_information
40
40
 
41
- # The description for this field is not available.
41
+ # The object containing the custom data that the merchant defines.
42
42
  attr_accessor :merchant_defined_information
43
43
 
44
44
  attr_accessor :installment_information
@@ -20,7 +20,7 @@ module CyberSource
20
20
  # The description for this field is not available.
21
21
  attr_accessor :name
22
22
 
23
- # Time Zone.
23
+ # Time Zone in ISO format.
24
24
  attr_accessor :timezone
25
25
 
26
26
  # transaction search query string.
@@ -29,7 +29,7 @@ module CyberSource
29
29
  # offset.
30
30
  attr_accessor :offset
31
31
 
32
- # limit on number of results.
32
+ # Limit on number of results.
33
33
  attr_accessor :limit
34
34
 
35
35
  # A comma separated list of the following form - fieldName1 asc or desc, fieldName2 asc or desc, etc.
@@ -16,10 +16,10 @@ module CyberSource
16
16
  class EmbeddedInstrumentIdentifier
17
17
  attr_accessor :_links
18
18
 
19
- # Describes type of token.
19
+ # 'Describes type of token.' Valid values: - instrumentIdentifier
20
20
  attr_accessor :object
21
21
 
22
- # Current state of the token.
22
+ # 'Current state of the token.' Valid values: - ACTIVE - CLOSED
23
23
  attr_accessor :state
24
24
 
25
25
  # The ID of the existing instrument identifier to be linked to the newly created payment instrument.
@@ -33,28 +33,6 @@ module CyberSource
33
33
 
34
34
  attr_accessor :metadata
35
35
 
36
- class EnumAttributeValidator
37
- attr_reader :datatype
38
- attr_reader :allowable_values
39
-
40
- def initialize(datatype, allowable_values)
41
- @allowable_values = allowable_values.map do |value|
42
- case datatype.to_s
43
- when /Integer/i
44
- value.to_i
45
- when /Float/i
46
- value.to_f
47
- else
48
- value
49
- end
50
- end
51
- end
52
-
53
- def valid?(value)
54
- !value || allowable_values.include?(value)
55
- end
56
- end
57
-
58
36
  # Attribute mapping from ruby-style variable name to JSON key.
59
37
  def self.attribute_map
60
38
  {
@@ -142,35 +120,11 @@ module CyberSource
142
120
  # Check to see if the all the properties in the model are valid
143
121
  # @return true if the model is valid
144
122
  def valid?
145
- object_validator = EnumAttributeValidator.new('String', ['instrumentIdentifier'])
146
- return false unless object_validator.valid?(@object)
147
- state_validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
148
- return false unless state_validator.valid?(@state)
149
123
  return false if !@id.nil? && @id.to_s.length > 32
150
124
  return false if !@id.nil? && @id.to_s.length < 16
151
125
  true
152
126
  end
153
127
 
154
- # Custom attribute writer method checking allowed values (enum).
155
- # @param [Object] object Object to be assigned
156
- def object=(object)
157
- validator = EnumAttributeValidator.new('String', ['instrumentIdentifier'])
158
- unless validator.valid?(object)
159
- fail ArgumentError, 'invalid value for "object", must be one of #{validator.allowable_values}.'
160
- end
161
- @object = object
162
- end
163
-
164
- # Custom attribute writer method checking allowed values (enum).
165
- # @param [Object] state Object to be assigned
166
- def state=(state)
167
- validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
168
- unless validator.valid?(state)
169
- fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
170
- end
171
- @state = state
172
- end
173
-
174
128
  # Custom attribute writer method with validation
175
129
  # @param [Object] id Value to be assigned
176
130
  def id=(id)
@@ -29,34 +29,12 @@ module CyberSource
29
29
  # Date and time for the file in PST
30
30
  attr_accessor :date
31
31
 
32
- # File extension
32
+ # 'File extension' Valid values: - 'application/xml' - 'text/csv' - 'application/pdf' - 'application/octet-stream'
33
33
  attr_accessor :mime_type
34
34
 
35
35
  # Size of the file in bytes
36
36
  attr_accessor :size
37
37
 
38
- class EnumAttributeValidator
39
- attr_reader :datatype
40
- attr_reader :allowable_values
41
-
42
- def initialize(datatype, allowable_values)
43
- @allowable_values = allowable_values.map do |value|
44
- case datatype.to_s
45
- when /Integer/i
46
- value.to_i
47
- when /Float/i
48
- value.to_f
49
- else
50
- value
51
- end
52
- end
53
- end
54
-
55
- def valid?(value)
56
- !value || allowable_values.include?(value)
57
- end
58
- end
59
-
60
38
  # Attribute mapping from ruby-style variable name to JSON key.
61
39
  def self.attribute_map
62
40
  {
@@ -130,21 +108,9 @@ module CyberSource
130
108
  # Check to see if the all the properties in the model are valid
131
109
  # @return true if the model is valid
132
110
  def valid?
133
- mime_type_validator = EnumAttributeValidator.new('String', ['application/xml', 'text/csv', 'application/pdf', 'application/octet-stream'])
134
- return false unless mime_type_validator.valid?(@mime_type)
135
111
  true
136
112
  end
137
113
 
138
- # Custom attribute writer method checking allowed values (enum).
139
- # @param [Object] mime_type Object to be assigned
140
- def mime_type=(mime_type)
141
- validator = EnumAttributeValidator.new('String', ['application/xml', 'text/csv', 'application/pdf', 'application/octet-stream'])
142
- unless validator.valid?(mime_type)
143
- fail ArgumentError, 'invalid value for "mime_type", must be one of #{validator.allowable_values}.'
144
- end
145
- @mime_type = mime_type
146
- end
147
-
148
114
  # Checks equality by comparing each attribute.
149
115
  # @param [Object] Object to be compared
150
116
  def ==(o)
@@ -19,10 +19,10 @@ module CyberSource
19
19
  # Unique identification number assigned by CyberSource to the submitted request.
20
20
  attr_accessor :id
21
21
 
22
- # Describes type of token.
22
+ # 'Describes type of token.' Valid values: - instrumentIdentifier
23
23
  attr_accessor :object
24
24
 
25
- # Current state of the token.
25
+ # 'Current state of the token.' Valid values: - ACTIVE - CLOSED
26
26
  attr_accessor :state
27
27
 
28
28
  attr_accessor :card
@@ -33,28 +33,6 @@ module CyberSource
33
33
 
34
34
  attr_accessor :metadata
35
35
 
36
- class EnumAttributeValidator
37
- attr_reader :datatype
38
- attr_reader :allowable_values
39
-
40
- def initialize(datatype, allowable_values)
41
- @allowable_values = allowable_values.map do |value|
42
- case datatype.to_s
43
- when /Integer/i
44
- value.to_i
45
- when /Float/i
46
- value.to_f
47
- else
48
- value
49
- end
50
- end
51
- end
52
-
53
- def valid?(value)
54
- !value || allowable_values.include?(value)
55
- end
56
- end
57
-
58
36
  # Attribute mapping from ruby-style variable name to JSON key.
59
37
  def self.attribute_map
60
38
  {
@@ -134,33 +112,9 @@ module CyberSource
134
112
  # Check to see if the all the properties in the model are valid
135
113
  # @return true if the model is valid
136
114
  def valid?
137
- object_validator = EnumAttributeValidator.new('String', ['instrumentIdentifier'])
138
- return false unless object_validator.valid?(@object)
139
- state_validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
140
- return false unless state_validator.valid?(@state)
141
115
  true
142
116
  end
143
117
 
144
- # Custom attribute writer method checking allowed values (enum).
145
- # @param [Object] object Object to be assigned
146
- def object=(object)
147
- validator = EnumAttributeValidator.new('String', ['instrumentIdentifier'])
148
- unless validator.valid?(object)
149
- fail ArgumentError, 'invalid value for "object", must be one of #{validator.allowable_values}.'
150
- end
151
- @object = object
152
- end
153
-
154
- # Custom attribute writer method checking allowed values (enum).
155
- # @param [Object] state Object to be assigned
156
- def state=(state)
157
- validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
158
- unless validator.valid?(state)
159
- fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
160
- end
161
- @state = state
162
- end
163
-
164
118
  # Checks equality by comparing each attribute.
165
119
  # @param [Object] Object to be compared
166
120
  def ==(o)
@@ -19,10 +19,10 @@ module CyberSource
19
19
  # Unique identification number assigned by CyberSource to the submitted request.
20
20
  attr_accessor :id
21
21
 
22
- # Describes type of token.
22
+ # 'Describes type of token.' Valid values: - paymentInstrument
23
23
  attr_accessor :object
24
24
 
25
- # Current state of the token.
25
+ # 'Current state of the token.' Valid values: - ACTIVE - CLOSED
26
26
  attr_accessor :state
27
27
 
28
28
  attr_accessor :bank_account
@@ -41,28 +41,6 @@ module CyberSource
41
41
 
42
42
  attr_accessor :instrument_identifier
43
43
 
44
- class EnumAttributeValidator
45
- attr_reader :datatype
46
- attr_reader :allowable_values
47
-
48
- def initialize(datatype, allowable_values)
49
- @allowable_values = allowable_values.map do |value|
50
- case datatype.to_s
51
- when /Integer/i
52
- value.to_i
53
- when /Float/i
54
- value.to_f
55
- else
56
- value
57
- end
58
- end
59
- end
60
-
61
- def valid?(value)
62
- !value || allowable_values.include?(value)
63
- end
64
- end
65
-
66
44
  # Attribute mapping from ruby-style variable name to JSON key.
67
45
  def self.attribute_map
68
46
  {
@@ -166,33 +144,9 @@ module CyberSource
166
144
  # Check to see if the all the properties in the model are valid
167
145
  # @return true if the model is valid
168
146
  def valid?
169
- object_validator = EnumAttributeValidator.new('String', ['paymentInstrument'])
170
- return false unless object_validator.valid?(@object)
171
- state_validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
172
- return false unless state_validator.valid?(@state)
173
147
  true
174
148
  end
175
149
 
176
- # Custom attribute writer method checking allowed values (enum).
177
- # @param [Object] object Object to be assigned
178
- def object=(object)
179
- validator = EnumAttributeValidator.new('String', ['paymentInstrument'])
180
- unless validator.valid?(object)
181
- fail ArgumentError, 'invalid value for "object", must be one of #{validator.allowable_values}.'
182
- end
183
- @object = object
184
- end
185
-
186
- # Custom attribute writer method checking allowed values (enum).
187
- # @param [Object] state Object to be assigned
188
- def state=(state)
189
- validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
190
- unless validator.valid?(state)
191
- fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
192
- end
193
- @state = state
194
- end
195
-
196
150
  # Checks equality by comparing each attribute.
197
151
  # @param [Object] Object to be compared
198
152
  def ==(o)
@@ -17,28 +17,6 @@ module CyberSource
17
17
  # Checking account type. Possible values: * C: checking * S: savings (USD only) * X: corporate checking (USD only) * G: general ledger
18
18
  attr_accessor :type
19
19
 
20
- class EnumAttributeValidator
21
- attr_reader :datatype
22
- attr_reader :allowable_values
23
-
24
- def initialize(datatype, allowable_values)
25
- @allowable_values = allowable_values.map do |value|
26
- case datatype.to_s
27
- when /Integer/i
28
- value.to_i
29
- when /Float/i
30
- value.to_f
31
- else
32
- value
33
- end
34
- end
35
- end
36
-
37
- def valid?(value)
38
- !value || allowable_values.include?(value)
39
- end
40
- end
41
-
42
20
  # Attribute mapping from ruby-style variable name to JSON key.
43
21
  def self.attribute_map
44
22
  {
@@ -76,21 +54,9 @@ module CyberSource
76
54
  # Check to see if the all the properties in the model are valid
77
55
  # @return true if the model is valid
78
56
  def valid?
79
- type_validator = EnumAttributeValidator.new('String', ['checking', 'savings', 'corporate checking', 'general ledger'])
80
- return false unless type_validator.valid?(@type)
81
57
  true
82
58
  end
83
59
 
84
- # Custom attribute writer method checking allowed values (enum).
85
- # @param [Object] type Object to be assigned
86
- def type=(type)
87
- validator = EnumAttributeValidator.new('String', ['checking', 'savings', 'corporate checking', 'general ledger'])
88
- unless validator.valid?(type)
89
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
90
- end
91
- @type = type
92
- end
93
-
94
60
  # Checks equality by comparing each attribute.
95
61
  # @param [Object] Object to be compared
96
62
  def ==(o)
@@ -17,10 +17,10 @@ module CyberSource
17
17
  # Two-digit month in which the credit card expires. Format: `MM` Possible values: `01` through `12` This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. For more information about relaxed requirements, see the TMS REST API Developer Guide. Important: It is your responsibility to determine whether a field is required for the transaction you are requesting.
18
18
  attr_accessor :expiration_month
19
19
 
20
- # Four-digit year in which the credit card expires. Format: `YYYY`. Possible values: `1900` through `2099`. **FDC Nashville Global and FDMS South** You can send in 2 digits or 4 digits. When you send in 2 digits, they must be the last 2 digits of the year. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. See Relaxed Requirements for Address Data and Expiration Date page. Important: It is your responsibility to determine whether a field is required for the transaction you are requesting.'
20
+ # Four-digit year in which the credit card expires. Format: `YYYY`. Possible values: `1900` through `2099`. **FDC Nashville Global and FDMS South** You can send in 2 digits or 4 digits. When you send in 2 digits, they must be the last 2 digits of the year. This field is optional if your CyberSource account is configured for relaxed requirements for address data and expiration date. For details, see [Relaxed Requirements for Address Data and Expiration Date.](https://www.cybersource.com/developers/integration_methods/relax_avs/). **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting.'
21
21
  attr_accessor :expiration_year
22
22
 
23
- # Type of credit card. Possible values: * Visa (001) * Mastercard (002) - Eurocard—European regional brand of Mastercard * American Express (003) * Discover (004) * Diners Club (005) * Carte Blanche (006) * JCB (007) * Optima (008) * Twinpay Credit (011) * Twinpay Debit (012) * Walmart (013) * EnRoute (014) * Lowes consumer (015) * Home Depot consumer (016) * MBNA (017) * Dicks Sportswear (018) * Casual Corner (019) * Sears (020) * JAL (021) * Disney (023) * Maestro (024) - UK Domestic * Sams Club consumer (025) * Sams Club business (026) * Nicos (027) * Bill me later (028) * Bebe (029) * Restoration Hardware (030) * Delta (031) — use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types. * Solo (032) * Visa Electron (033) * Dankort (034) * Laser (035) * Carte Bleue (036) — formerly Cartes Bancaires * Cartes Bancaires (036) * Carta Si (037) * pinless debit (038) * encoded account (039) * UATP (040) * Household (041) * Maestro (042) - International * GE Money UK (043) * Korean cards (044) * Style (045) * JCrew (046) * PayEase China processing eWallet (047) * PayEase China processing bank transfer (048) * Meijer Private Label (049) * Hipercard (050) — supported only by the Comercio Latino processor. * Aura (051) — supported only by the Comercio Latino processor. * Redecard (052) * ORICO (053) * Elo (054) — supported only by the Comercio Latino processor. * Capital One Private Label (055) * Synchrony Private Label (056) * Costco Private Label (057) * mada (060) * China Union Pay (062) * Falabella private label (063)
23
+ # Type of credit card. Possible values: * **visa** -- Visa (001) * **mastercard** -- Mastercard (002) - Eurocard—European regional brand of Mastercard * **american express** -- American Express (003) * **discover** -- Discover (004) * **diners club** -- Diners Club (005) * **carte blanche** -- Carte Blanche (006) * **jcb** -- JCB (007) * **optima** -- Optima (008) * **twinpay credit** -- Twinpay Credit (011) * **twinpay debit** -- Twinpay Debit (012) * **walmart** -- Walmart (013) * **enroute** -- EnRoute (014) * **lowes consumer** -- Lowes consumer (015) * **home depot consumer** -- Home Depot consumer (016) * **mbna** -- MBNA (017) * **dicks sportswear** -- Dicks Sportswear (018) * **casual corner** -- Casual Corner (019) * **sears** -- Sears (020) * **jal** -- JAL (021) * **disney** -- Disney (023) * **maestro uk domestic** -- Maestro (024) - UK Domestic * **sams club consumer** -- Sams Club consumer (025) * **sams club business** -- Sams Club business (026) * **bill me later** -- Bill me later (028) * **bebe** -- Bebe (029) * **restoration hardware** -- Restoration Hardware (030) * **delta online** -- Delta (031) — use this value only for Ingenico ePayments. For other processors, use 001 for all Visa card types. * **solo** -- Solo (032) * **visa electron** -- Visa Electron (033) * **dankort** -- Dankort (034) * **laser** -- Laser (035) * **carte bleue** -- Carte Bleue (036) — formerly Cartes Bancaires * **carta si** -- Carta Si (037) * **pinless debit** -- pinless debit (038) * **encoded account** -- encoded account (039) * **uatp** -- UATP (040) * **household** -- Household (041) * **maestro international** -- Maestro (042) - International * **ge money uk** -- GE Money UK (043) * **korean cards** -- Korean cards (044) * **style** -- Style (045) * **jcrew** -- JCrew (046) * **payease china processing ewallet** -- PayEase China processing eWallet (047) * **payease china processing bank transfer** -- PayEase China processing bank transfer (048) * **meijer private label** -- Meijer Private Label (049) * **hipercard** -- Hipercard (050) — supported only by the Comercio Latino processor. * **aura** -- Aura (051) — supported only by the Comercio Latino processor. * **redecard** -- Redecard (052) * **elo** -- Elo (054) — supported only by the Comercio Latino processor. * **capital one private label** -- Capital One Private Label (055) * **synchrony private label** -- Synchrony Private Label (056) * **costco private label** -- Costco Private Label (057) * **mada** -- mada (060) * **china union pay** -- China Union Pay (062) * **falabella private label** -- Falabella private label (063)
24
24
  attr_accessor :type
25
25
 
26
26
  # Number of times a Maestro (UK Domestic) card has been issued to the account holder.
@@ -35,28 +35,6 @@ module CyberSource
35
35
  # Card Use As Field. Supported value of `pinless debit` only. Only for use with Pinless Debit tokens.
36
36
  attr_accessor :use_as
37
37
 
38
- class EnumAttributeValidator
39
- attr_reader :datatype
40
- attr_reader :allowable_values
41
-
42
- def initialize(datatype, allowable_values)
43
- @allowable_values = allowable_values.map do |value|
44
- case datatype.to_s
45
- when /Integer/i
46
- value.to_i
47
- when /Float/i
48
- value.to_f
49
- else
50
- value
51
- end
52
- end
53
- end
54
-
55
- def valid?(value)
56
- !value || allowable_values.include?(value)
57
- end
58
- end
59
-
60
38
  # Attribute mapping from ruby-style variable name to JSON key.
61
39
  def self.attribute_map
62
40
  {
@@ -179,8 +157,6 @@ module CyberSource
179
157
  return false if !@expiration_year.nil? && @expiration_year.to_s.length > 4
180
158
  return false if !@expiration_year.nil? && @expiration_year.to_s.length < 4
181
159
  return false if @type.nil?
182
- type_validator = EnumAttributeValidator.new('String', ['visa', 'mastercard', 'american express', 'discover', 'diners club', 'carte blanche', 'jcb', 'optima', 'twinpay credit', 'twinpay debit', 'walmart', 'enroute', 'lowes consumer', 'home depot consumer', 'mbna', 'dicks sportswear', 'casual corner', 'sears', 'jal', 'disney', 'maestro uk domestic', 'sams club consumer', 'sams club business', 'nicos', 'bill me later', 'bebe', 'restoration hardware', 'delta online', 'solo', 'visa electron', 'dankort', 'laser', 'carte bleue', 'carta si', 'pinless debit', 'encoded account', 'uatp', 'household', 'maestro international', 'ge money uk', 'korean cards', 'style', 'jcrew', 'payease china processing ewallet', 'payease china processing bank transfer', 'meijer private label', 'hipercard', 'aura', 'redecard', 'orico', 'elo', 'capital one private label', 'synchrony private label', 'china union pay', 'costco private label', 'mada', 'falabella private label'])
183
- return false unless type_validator.valid?(@type)
184
160
  return false if !@issue_number.nil? && @issue_number.to_s.length > 2
185
161
  return false if !@issue_number.nil? && @issue_number.to_s.length < 1
186
162
  return false if !@start_month.nil? && @start_month.to_s.length > 2
@@ -218,16 +194,6 @@ module CyberSource
218
194
  @expiration_year = expiration_year
219
195
  end
220
196
 
221
- # Custom attribute writer method checking allowed values (enum).
222
- # @param [Object] type Object to be assigned
223
- def type=(type)
224
- validator = EnumAttributeValidator.new('String', ['visa', 'mastercard', 'american express', 'discover', 'diners club', 'carte blanche', 'jcb', 'optima', 'twinpay credit', 'twinpay debit', 'walmart', 'enroute', 'lowes consumer', 'home depot consumer', 'mbna', 'dicks sportswear', 'casual corner', 'sears', 'jal', 'disney', 'maestro uk domestic', 'sams club consumer', 'sams club business', 'nicos', 'bill me later', 'bebe', 'restoration hardware', 'delta online', 'solo', 'visa electron', 'dankort', 'laser', 'carte bleue', 'carta si', 'pinless debit', 'encoded account', 'uatp', 'household', 'maestro international', 'ge money uk', 'korean cards', 'style', 'jcrew', 'payease china processing ewallet', 'payease china processing bank transfer', 'meijer private label', 'hipercard', 'aura', 'redecard', 'orico', 'elo', 'capital one private label', 'synchrony private label', 'china union pay', 'costco private label', 'mada', 'falabella private label'])
225
- unless validator.valid?(type)
226
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
227
- end
228
- @type = type
229
- end
230
-
231
197
  # Custom attribute writer method with validation
232
198
  # @param [Object] issue_number Value to be assigned
233
199
  def issue_number=(issue_number)
@@ -16,7 +16,7 @@ module CyberSource
16
16
  class PaymentInstrumentsForInstrumentIdentifier
17
17
  attr_accessor :_links
18
18
 
19
- # Shows the response is a collection of objects.
19
+ # 'Shows the response is a collection of objects.' Valid values: - collection
20
20
  attr_accessor :object
21
21
 
22
22
  # The offset parameter supplied in the request.
@@ -33,28 +33,6 @@ module CyberSource
33
33
 
34
34
  attr_accessor :_embedded
35
35
 
36
- class EnumAttributeValidator
37
- attr_reader :datatype
38
- attr_reader :allowable_values
39
-
40
- def initialize(datatype, allowable_values)
41
- @allowable_values = allowable_values.map do |value|
42
- case datatype.to_s
43
- when /Integer/i
44
- value.to_i
45
- when /Float/i
46
- value.to_f
47
- else
48
- value
49
- end
50
- end
51
- end
52
-
53
- def valid?(value)
54
- !value || allowable_values.include?(value)
55
- end
56
- end
57
-
58
36
  # Attribute mapping from ruby-style variable name to JSON key.
59
37
  def self.attribute_map
60
38
  {
@@ -128,21 +106,9 @@ module CyberSource
128
106
  # Check to see if the all the properties in the model are valid
129
107
  # @return true if the model is valid
130
108
  def valid?
131
- object_validator = EnumAttributeValidator.new('String', ['collection'])
132
- return false unless object_validator.valid?(@object)
133
109
  true
134
110
  end
135
111
 
136
- # Custom attribute writer method checking allowed values (enum).
137
- # @param [Object] object Object to be assigned
138
- def object=(object)
139
- validator = EnumAttributeValidator.new('String', ['collection'])
140
- unless validator.valid?(object)
141
- fail ArgumentError, 'invalid value for "object", must be one of #{validator.allowable_values}.'
142
- end
143
- @object = object
144
- end
145
-
146
112
  # Checks equality by comparing each attribute.
147
113
  # @param [Object] Object to be compared
148
114
  def ==(o)