cybersource_rest_client 0.0.17 → 0.0.19

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/MerchantConfig.rb +2 -0
  3. data/lib/cybersource_rest_client.rb +81 -5
  4. data/lib/cybersource_rest_client/api/authentication_exemptions_api.rb +89 -0
  5. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +154 -0
  6. data/lib/cybersource_rest_client/api/report_definitions_api.rb +9 -0
  7. data/lib/cybersource_rest_client/api/report_downloads_api.rb +3 -0
  8. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +79 -0
  9. data/lib/cybersource_rest_client/api/reports_api.rb +2 -2
  10. data/lib/cybersource_rest_client/api_client.rb +12 -0
  11. data/lib/cybersource_rest_client/models/authentication_exemptions_request.rb +228 -0
  12. data/lib/cybersource_rest_client/models/buyer_information.rb +20 -20
  13. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +284 -0
  14. data/lib/cybersource_rest_client/models/create_payment_instrument_request.rb +2 -41
  15. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +27 -2
  16. data/lib/cybersource_rest_client/models/embedded_instrument_identifier_request.rb +226 -0
  17. data/lib/cybersource_rest_client/models/{embedded_instrument_identifier.rb → embedded_instrument_identifier_response.rb} +11 -2
  18. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_delete409_response__links_payment_instruments.rb → instrument_identifier_payment_instruments_link.rb} +1 -1
  19. data/lib/cybersource_rest_client/models/{instrument_identifier.rb → instrument_identifier_response.rb} +11 -2
  20. data/lib/cybersource_rest_client/models/issuer.rb +208 -0
  21. data/lib/cybersource_rest_client/models/links.rb +10 -1
  22. data/lib/cybersource_rest_client/models/model_409_links.rb +1 -1
  23. data/lib/cybersource_rest_client/models/payment_instrument.rb +9 -9
  24. data/lib/cybersource_rest_client/models/payment_instrument_card.rb +2 -2
  25. data/lib/cybersource_rest_client/models/payment_instrument_instrument_identifier_request.rb +246 -0
  26. data/lib/cybersource_rest_client/models/payment_instrument_self_link.rb +183 -0
  27. data/lib/cybersource_rest_client/models/payment_instruments_links.rb +183 -0
  28. data/lib/cybersource_rest_client/models/personal_identification.rb +1 -1
  29. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +392 -0
  30. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +225 -0
  31. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
  32. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +2 -2
  33. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +0 -15
  34. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +2 -2
  35. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +1 -1
  36. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +60 -0
  37. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +22 -27
  38. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +2 -2
  39. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +26 -1
  40. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +4 -4
  41. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +2 -2
  42. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  43. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +2 -2
  44. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +1 -1
  45. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +270 -0
  46. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +2 -2
  47. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +1 -1
  48. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +2 -2
  49. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -30
  50. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +2 -2
  51. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +2 -2
  52. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +1 -1
  53. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +23 -4
  54. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +23 -4
  55. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_default_settings.rb +255 -0
  56. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +27 -2
  57. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response__link.rb +183 -0
  58. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response__link_report_download.rb +192 -0
  59. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_report_search_results.rb +13 -4
  60. data/lib/cybersource_rest_client/models/request.rb +210 -0
  61. data/lib/cybersource_rest_client/models/risk_v1_authentication_excemptions_post400_response.rb +225 -0
  62. data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_consumer_authentication_information_strong_authentication.rb +269 -0
  63. data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response.rb +255 -0
  64. data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response_consumer_authentication_information.rb +183 -0
  65. data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response_risk_information.rb +199 -0
  66. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +285 -0
  67. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +324 -0
  68. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +294 -0
  69. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +444 -0
  70. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information.rb +183 -0
  71. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +199 -0
  72. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_acquirer_information.rb +199 -0
  73. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_device_information.rb +183 -0
  74. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_merchant_information.rb +258 -0
  75. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_merchant_information_merchant_descriptor.rb +229 -0
  76. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information.rb +212 -0
  77. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_bill_to.rb +496 -0
  78. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_line_items.rb +283 -0
  79. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_ship_to.rb +399 -0
  80. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information.rb +192 -0
  81. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information_card.rb +325 -0
  82. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information_tokenized_card.rb +291 -0
  83. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +524 -0
  84. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +194 -0
  85. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +267 -0
  86. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +192 -0
  87. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +298 -0
  88. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +264 -0
  89. data/lib/cybersource_rest_client/models/riskv1authentications_acquirer_information.rb +274 -0
  90. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +196 -0
  91. data/lib/cybersource_rest_client/models/riskv1authentications_client_reference_information.rb +208 -0
  92. data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +1359 -0
  93. data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information_ivr.rb +319 -0
  94. data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information_strong_authentication.rb +199 -0
  95. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +430 -0
  96. data/lib/cybersource_rest_client/models/riskv1authentications_device_information_raw_data.rb +209 -0
  97. data/lib/cybersource_rest_client/models/riskv1authentications_merchant_information.rb +208 -0
  98. data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_payment_information_payment_type_funding_source.rb → riskv1authentications_merchant_information_merchant_descriptor.rb} +25 -40
  99. data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +283 -0
  100. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +396 -0
  101. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_ship_to.rb +459 -0
  102. data/lib/cybersource_rest_client/models/riskv1authentications_recurring_payment_information.rb +235 -0
  103. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb +183 -0
  104. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history.rb +262 -0
  105. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_account_history.rb +209 -0
  106. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_customer_account.rb +279 -0
  107. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +206 -0
  108. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +259 -0
  109. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_passengers.rb +224 -0
  110. data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +26 -1
  111. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +13 -4
  112. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_address.rb +325 -0
  113. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +26 -1
  114. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +13 -4
  115. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_bank.rb +275 -0
  116. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +2 -2
  117. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  118. data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +13 -4
  119. data/lib/cybersource_rest_client/models/riskv1decisions_risk_information_marking_details.rb +275 -0
  120. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_delete409_response__links.rb +1 -1
  121. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb → tms_v1_instrument_identifiers_payment_instruments_embedded_instrument_identifier.rb} +11 -2
  122. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__embedded.rb +183 -0
  123. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links.rb +183 -0
  124. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links_self.rb +183 -0
  125. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information.rb +20 -20
  126. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +2 -2
  127. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb +9 -9
  128. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb +1 -1
  129. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +10 -1
  130. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response__links.rb +10 -1
  131. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response__links_payment_instruments.rb +183 -0
  132. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_issuer.rb +208 -0
  133. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +1 -1
  134. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +226 -0
  135. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information_applications.rb +1 -1
  136. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +3 -3
  137. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  138. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +12 -31
  139. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
  140. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +2 -2
  141. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  142. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb +9 -9
  143. data/lib/cybersource_rest_client/models/update_payment_instrument_request.rb +2 -41
  144. data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +42 -0
  145. metadata +79 -7
@@ -24,6 +24,8 @@ module CyberSource
24
24
  # View the attributes of an individual report type. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation/)
25
25
  # @param report_definition_name Name of the Report definition to retrieve
26
26
  # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :subscription_type The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD
28
+ # @option opts [String] :report_mime_type The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv
27
29
  # @option opts [String] :organization_id Valid Cybersource Organization Id
28
30
  # @return [ReportingV3ReportDefinitionsNameGet200Response]
29
31
  def get_resource_info_by_report_definition(report_definition_name, opts = {})
@@ -35,6 +37,8 @@ module CyberSource
35
37
  # View the attributes of an individual report type. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation/)
36
38
  # @param report_definition_name Name of the Report definition to retrieve
37
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :subscription_type The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD
41
+ # @option opts [String] :report_mime_type The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv
38
42
  # @option opts [String] :organization_id Valid Cybersource Organization Id
39
43
  # @return [Array<(ReportingV3ReportDefinitionsNameGet200Response, Fixnum, Hash)>] ReportingV3ReportDefinitionsNameGet200Response data, response status code and response headers
40
44
  def get_resource_info_by_report_definition_with_http_info(report_definition_name, opts = {})
@@ -68,6 +72,8 @@ module CyberSource
68
72
 
69
73
  # query parameters
70
74
  query_params = {}
75
+ query_params[:'subscriptionType'] = opts[:'subscription_type'] if !opts[:'subscription_type'].nil?
76
+ query_params[:'reportMimeType'] = opts[:'report_mime_type'] if !opts[:'report_mime_type'].nil?
71
77
  query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
72
78
 
73
79
  # header parameters
@@ -103,6 +109,7 @@ module CyberSource
103
109
  # Get reporting resource information
104
110
  # View a list of supported reports and their attributes before subscribing to them.
105
111
  # @param [Hash] opts the optional parameters
112
+ # @option opts [String] :subscription_type Valid Values: - CLASSIC - CUSTOM - STANDARD
106
113
  # @option opts [String] :organization_id Valid Cybersource Organization Id
107
114
  # @return [ReportingV3ReportDefinitionsGet200Response]
108
115
  def get_resource_v2_info(opts = {})
@@ -113,6 +120,7 @@ module CyberSource
113
120
  # Get reporting resource information
114
121
  # View a list of supported reports and their attributes before subscribing to them.
115
122
  # @param [Hash] opts the optional parameters
123
+ # @option opts [String] :subscription_type Valid Values: - CLASSIC - CUSTOM - STANDARD
116
124
  # @option opts [String] :organization_id Valid Cybersource Organization Id
117
125
  # @return [Array<(ReportingV3ReportDefinitionsGet200Response, Fixnum, Hash)>] ReportingV3ReportDefinitionsGet200Response data, response status code and response headers
118
126
  def get_resource_v2_info_with_http_info(opts = {})
@@ -142,6 +150,7 @@ module CyberSource
142
150
 
143
151
  # query parameters
144
152
  query_params = {}
153
+ query_params[:'subscriptionType'] = opts[:'subscription_type'] if !opts[:'subscription_type'].nil?
145
154
  query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
146
155
 
147
156
  # header parameters
@@ -26,6 +26,7 @@ module CyberSource
26
26
  # @param report_name Name of the report to download
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @option opts [String] :organization_id Valid Cybersource Organization Id
29
+ # @option opts [String] :report_time Valid time on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Time Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example time format:** - hh:mm:ss±hh:mm
29
30
  # @return [nil]
30
31
  def download_report(report_date, report_name, opts = {})
31
32
  data, status_code, headers = download_report_with_http_info(report_date, report_name, opts)
@@ -38,6 +39,7 @@ module CyberSource
38
39
  # @param report_name Name of the report to download
39
40
  # @param [Hash] opts the optional parameters
40
41
  # @option opts [String] :organization_id Valid Cybersource Organization Id
42
+ # @option opts [String] :report_time Valid time on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Time Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example time format:** - hh:mm:ss±hh:mm
41
43
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
42
44
  def download_report_with_http_info(report_date, report_name, opts = {})
43
45
 
@@ -77,6 +79,7 @@ module CyberSource
77
79
  query_params[:'reportDate'] = report_date
78
80
  query_params[:'reportName'] = report_name
79
81
  query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
82
+ query_params[:'reportTime'] = opts[:'report_time'] if !opts[:'report_time'].nil?
80
83
 
81
84
  # header parameters
82
85
  header_params = {}
@@ -311,5 +311,84 @@ module CyberSource
311
311
  end
312
312
  return data, status_code, headers
313
313
  end
314
+ # Create a Standard or Classic subscription
315
+ # Create or update an already existing classic or standard subscription.
316
+ # @param predefined_subscription_request_bean Report subscription request payload
317
+ # @param [Hash] opts the optional parameters
318
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
319
+ # @return [nil]
320
+ def reporting_v3_predefined_report_subscriptions_put(predefined_subscription_request_bean, opts = {})
321
+ data, status_code, headers = reporting_v3_predefined_report_subscriptions_put_with_http_info(predefined_subscription_request_bean, opts)
322
+ return data, status_code, headers
323
+ end
324
+
325
+ # Create a Standard or Classic subscription
326
+ # Create or update an already existing classic or standard subscription.
327
+ # @param predefined_subscription_request_bean Report subscription request payload
328
+ # @param [Hash] opts the optional parameters
329
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
330
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
331
+ def reporting_v3_predefined_report_subscriptions_put_with_http_info(predefined_subscription_request_bean, opts = {})
332
+
333
+ if @api_client.config.debugging
334
+ begin
335
+ raise
336
+ @api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.reporting_v3_predefined_report_subscriptions_put ...'
337
+ rescue
338
+ puts 'Cannot write to log'
339
+ end
340
+ end
341
+ # verify the required parameter 'predefined_subscription_request_bean' is set
342
+ if @api_client.config.client_side_validation && predefined_subscription_request_bean.nil?
343
+ fail ArgumentError, "Missing the required parameter 'predefined_subscription_request_bean' when calling ReportSubscriptionsApi.reporting_v3_predefined_report_subscriptions_put"
344
+ end
345
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
346
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportSubscriptionsApi.reporting_v3_predefined_report_subscriptions_put, the character length must be smaller than or equal to 32.'
347
+ end
348
+
349
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
350
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportSubscriptionsApi.reporting_v3_predefined_report_subscriptions_put, the character length must be great than or equal to 1.'
351
+ end
352
+
353
+ #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
354
+ #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ReportSubscriptionsApi.reporting_v3_predefined_report_subscriptions_put, must conform to the pattern /[a-zA-Z0-9-_]+/."
355
+ #end
356
+
357
+ # resource path
358
+ local_var_path = 'reporting/v3/predefined-report-subscriptions'
359
+
360
+ # query parameters
361
+ query_params = {}
362
+ query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
363
+
364
+ # header parameters
365
+ header_params = {}
366
+ # HTTP header 'Accept' (if needed)
367
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
368
+ # HTTP header 'Content-Type'
369
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
370
+
371
+ # form parameters
372
+ form_params = {}
373
+
374
+ # http body (model)
375
+ post_body = @api_client.object_to_http_body(predefined_subscription_request_bean)
376
+ auth_names = []
377
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
378
+ :header_params => header_params,
379
+ :query_params => query_params,
380
+ :form_params => form_params,
381
+ :body => post_body,
382
+ :auth_names => auth_names)
383
+ if @api_client.config.debugging
384
+ begin
385
+ raise
386
+ @api_client.config.logger.debug "API called: ReportSubscriptionsApi#reporting_v3_predefined_report_subscriptions_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
387
+ rescue
388
+ puts 'Cannot write to log'
389
+ end
390
+ end
391
+ return data, status_code, headers
392
+ end
314
393
  end
315
394
  end
@@ -187,7 +187,7 @@ module CyberSource
187
187
  # @param [Hash] opts the optional parameters
188
188
  # @option opts [String] :organization_id Valid Cybersource Organization Id
189
189
  # @option opts [String] :report_mime_type Valid Report Format Valid values: - application/xml - text/csv
190
- # @option opts [String] :report_frequency Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - ADHOC
190
+ # @option opts [String] :report_frequency Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC
191
191
  # @option opts [String] :report_name Valid Report Name
192
192
  # @option opts [Integer] :report_definition_id Valid Report Definition Id
193
193
  # @option opts [String] :report_status Valid Report Status Valid values: - COMPLETED - PENDING - QUEUED - RUNNING - ERROR - NO_DATA
@@ -205,7 +205,7 @@ module CyberSource
205
205
  # @param [Hash] opts the optional parameters
206
206
  # @option opts [String] :organization_id Valid Cybersource Organization Id
207
207
  # @option opts [String] :report_mime_type Valid Report Format Valid values: - application/xml - text/csv
208
- # @option opts [String] :report_frequency Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - ADHOC
208
+ # @option opts [String] :report_frequency Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC
209
209
  # @option opts [String] :report_name Valid Report Name
210
210
  # @option opts [Integer] :report_definition_id Valid Report Definition Id
211
211
  # @option opts [String] :report_status Valid Report Status Valid values: - COMPLETED - PENDING - QUEUED - RUNNING - ERROR - NO_DATA
@@ -27,6 +27,9 @@ module CyberSource
27
27
  # @return [Hash]
28
28
  attr_accessor :default_headers
29
29
 
30
+ # Defines the client ID for the SDK
31
+ attr_accessor :client_id
32
+
30
33
  # Initializes the ApiClient
31
34
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
32
35
  def initialize(config = Configuration.default)
@@ -36,6 +39,8 @@ module CyberSource
36
39
  'Content-Type' => 'application/json',
37
40
  'User-Agent' => @user_agent
38
41
  }
42
+
43
+ @client_id = 'cybs-rest-sdk-ruby-' + Gem.loaded_specs["cybersource_rest_client"].version.to_s
39
44
  end
40
45
 
41
46
  def self.default
@@ -166,6 +171,13 @@ module CyberSource
166
171
  # Calling APISDK, Apisdk.controller.
167
172
  gmtDateTime = DateTime.now.httpdate
168
173
  token = Authorization.new.getToken($merchantconfig_obj, gmtDateTime, log_obj)
174
+
175
+ # Adding client ID header
176
+ header_params['v-c-client-id'] = @client_id
177
+
178
+ # Adding solution ID header
179
+ # header_params['v-c-solution-id'] = $merchantconfig_obj.solutionId if !$merchantconfig_obj.solutionId.nil? && !$merchantconfig_obj.solutionId.empty?
180
+
169
181
  # HTTP header 'Accept' (if needed)
170
182
  if $merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_HTTP
171
183
  # Appending headers for Get Connection
@@ -0,0 +1,228 @@
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 AuthenticationExemptionsRequest
17
+ attr_accessor :client_reference_information
18
+
19
+ attr_accessor :order_information
20
+
21
+ attr_accessor :payment_information
22
+
23
+ attr_accessor :device_information
24
+
25
+ attr_accessor :merchant_information
26
+
27
+ attr_accessor :acquirer_information
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'client_reference_information' => :'clientReferenceInformation',
33
+ :'order_information' => :'orderInformation',
34
+ :'payment_information' => :'paymentInformation',
35
+ :'device_information' => :'deviceInformation',
36
+ :'merchant_information' => :'merchantInformation',
37
+ :'acquirer_information' => :'acquirerInformation'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ :'client_reference_information' => :'Ptsv2payoutsClientReferenceInformation',
45
+ :'order_information' => :'Riskv1authenticationexemptionsOrderInformation',
46
+ :'payment_information' => :'Riskv1authenticationexemptionsPaymentInformation',
47
+ :'device_information' => :'Riskv1authenticationexemptionsDeviceInformation',
48
+ :'merchant_information' => :'Riskv1authenticationexemptionsMerchantInformation',
49
+ :'acquirer_information' => :'Riskv1authenticationexemptionsAcquirerInformation'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
+
61
+ if attributes.has_key?(:'clientReferenceInformation')
62
+ self.client_reference_information = attributes[:'clientReferenceInformation']
63
+ end
64
+
65
+ if attributes.has_key?(:'orderInformation')
66
+ self.order_information = attributes[:'orderInformation']
67
+ end
68
+
69
+ if attributes.has_key?(:'paymentInformation')
70
+ self.payment_information = attributes[:'paymentInformation']
71
+ end
72
+
73
+ if attributes.has_key?(:'deviceInformation')
74
+ self.device_information = attributes[:'deviceInformation']
75
+ end
76
+
77
+ if attributes.has_key?(:'merchantInformation')
78
+ self.merchant_information = attributes[:'merchantInformation']
79
+ end
80
+
81
+ if attributes.has_key?(:'acquirerInformation')
82
+ self.acquirer_information = attributes[:'acquirerInformation']
83
+ end
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properties with the reasons
88
+ def list_invalid_properties
89
+ invalid_properties = Array.new
90
+ invalid_properties
91
+ end
92
+
93
+ # Check to see if the all the properties in the model are valid
94
+ # @return true if the model is valid
95
+ def valid?
96
+ true
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param [Object] Object to be compared
101
+ def ==(o)
102
+ return true if self.equal?(o)
103
+ self.class == o.class &&
104
+ client_reference_information == o.client_reference_information &&
105
+ order_information == o.order_information &&
106
+ payment_information == o.payment_information &&
107
+ device_information == o.device_information &&
108
+ merchant_information == o.merchant_information &&
109
+ acquirer_information == o.acquirer_information
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Fixnum] Hash code
120
+ def hash
121
+ [client_reference_information, order_information, payment_information, device_information, merchant_information, acquirer_information].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.swagger_types.each_pair do |key, type|
130
+ if type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
139
+ end
140
+
141
+ self
142
+ end
143
+
144
+ # Deserializes the data based on type
145
+ # @param string type Data type
146
+ # @param string value Value to be deserialized
147
+ # @return [Object] Deserialized data
148
+ def _deserialize(type, value)
149
+ case type.to_sym
150
+ when :DateTime
151
+ DateTime.parse(value)
152
+ when :Date
153
+ Date.parse(value)
154
+ when :String
155
+ value.to_s
156
+ when :Integer
157
+ value.to_i
158
+ when :Float
159
+ value.to_f
160
+ when :BOOLEAN
161
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
162
+ true
163
+ else
164
+ false
165
+ end
166
+ when :Object
167
+ # generic object (usually a Hash), return directly
168
+ value
169
+ when /\AArray<(?<inner_type>.+)>\z/
170
+ inner_type = Regexp.last_match[:inner_type]
171
+ value.map { |v| _deserialize(inner_type, v) }
172
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
173
+ k_type = Regexp.last_match[:k_type]
174
+ v_type = Regexp.last_match[:v_type]
175
+ {}.tap do |hash|
176
+ value.each do |k, v|
177
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
178
+ end
179
+ end
180
+ else # model
181
+ temp_model = CyberSource.const_get(type).new
182
+ temp_model.build_from_hash(value)
183
+ end
184
+ end
185
+
186
+ # Returns the string representation of the object
187
+ # @return [String] String presentation of the object
188
+ def to_s
189
+ to_hash.to_s
190
+ end
191
+
192
+ # to_body is an alias to to_hash (backward compatibility)
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_body
195
+ to_hash
196
+ end
197
+
198
+ # Returns the object in the form of hash
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_hash
201
+ hash = {}
202
+ self.class.attribute_map.each_pair do |attr, param|
203
+ value = self.send(attr)
204
+ next if value.nil?
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+ end
228
+ end
@@ -21,7 +21,7 @@ module CyberSource
21
21
  attr_accessor :currency
22
22
 
23
23
  # Date of birth of the customer. Format: `YYYY-MM-DD` or `YYYYMMDD`
24
- attr_accessor :date_o_birth
24
+ attr_accessor :date_of_birth
25
25
 
26
26
  attr_accessor :personal_identification
27
27
 
@@ -30,7 +30,7 @@ module CyberSource
30
30
  {
31
31
  :'company_tax_id' => :'companyTaxID',
32
32
  :'currency' => :'currency',
33
- :'date_o_birth' => :'dateOBirth',
33
+ :'date_of_birth' => :'dateOfBirth',
34
34
  :'personal_identification' => :'personalIdentification'
35
35
  }
36
36
  end
@@ -40,7 +40,7 @@ module CyberSource
40
40
  {
41
41
  :'company_tax_id' => :'String',
42
42
  :'currency' => :'String',
43
- :'date_o_birth' => :'String',
43
+ :'date_of_birth' => :'String',
44
44
  :'personal_identification' => :'Array<TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedBuyerInformationPersonalIdentification>'
45
45
  }
46
46
  end
@@ -61,8 +61,8 @@ module CyberSource
61
61
  self.currency = attributes[:'currency']
62
62
  end
63
63
 
64
- if attributes.has_key?(:'dateOBirth')
65
- self.date_o_birth = attributes[:'dateOBirth']
64
+ if attributes.has_key?(:'dateOfBirth')
65
+ self.date_of_birth = attributes[:'dateOfBirth']
66
66
  end
67
67
 
68
68
  if attributes.has_key?(:'personalIdentification')
@@ -88,12 +88,12 @@ module CyberSource
88
88
  invalid_properties.push('invalid value for "currency", the character length must be great than or equal to 3.')
89
89
  end
90
90
 
91
- if !@date_o_birth.nil? && @date_o_birth.to_s.length > 10
92
- invalid_properties.push('invalid value for "date_o_birth", the character length must be smaller than or equal to 10.')
91
+ if !@date_of_birth.nil? && @date_of_birth.to_s.length > 10
92
+ invalid_properties.push('invalid value for "date_of_birth", the character length must be smaller than or equal to 10.')
93
93
  end
94
94
 
95
- if !@date_o_birth.nil? && @date_o_birth.to_s.length < 8
96
- invalid_properties.push('invalid value for "date_o_birth", the character length must be great than or equal to 8.')
95
+ if !@date_of_birth.nil? && @date_of_birth.to_s.length < 8
96
+ invalid_properties.push('invalid value for "date_of_birth", the character length must be great than or equal to 8.')
97
97
  end
98
98
 
99
99
  invalid_properties
@@ -105,8 +105,8 @@ module CyberSource
105
105
  return false if !@company_tax_id.nil? && @company_tax_id.to_s.length > 9
106
106
  return false if !@currency.nil? && @currency.to_s.length > 3
107
107
  return false if !@currency.nil? && @currency.to_s.length < 3
108
- return false if !@date_o_birth.nil? && @date_o_birth.to_s.length > 10
109
- return false if !@date_o_birth.nil? && @date_o_birth.to_s.length < 8
108
+ return false if !@date_of_birth.nil? && @date_of_birth.to_s.length > 10
109
+ return false if !@date_of_birth.nil? && @date_of_birth.to_s.length < 8
110
110
  true
111
111
  end
112
112
 
@@ -135,17 +135,17 @@ module CyberSource
135
135
  end
136
136
 
137
137
  # Custom attribute writer method with validation
138
- # @param [Object] date_o_birth Value to be assigned
139
- def date_o_birth=(date_o_birth)
140
- if !date_o_birth.nil? && date_o_birth.to_s.length > 10
141
- fail ArgumentError, 'invalid value for "date_o_birth", the character length must be smaller than or equal to 10.'
138
+ # @param [Object] date_of_birth Value to be assigned
139
+ def date_of_birth=(date_of_birth)
140
+ if !date_of_birth.nil? && date_of_birth.to_s.length > 10
141
+ fail ArgumentError, 'invalid value for "date_of_birth", the character length must be smaller than or equal to 10.'
142
142
  end
143
143
 
144
- if !date_o_birth.nil? && date_o_birth.to_s.length < 8
145
- fail ArgumentError, 'invalid value for "date_o_birth", the character length must be great than or equal to 8.'
144
+ if !date_of_birth.nil? && date_of_birth.to_s.length < 8
145
+ fail ArgumentError, 'invalid value for "date_of_birth", the character length must be great than or equal to 8.'
146
146
  end
147
147
 
148
- @date_o_birth = date_o_birth
148
+ @date_of_birth = date_of_birth
149
149
  end
150
150
 
151
151
  # Checks equality by comparing each attribute.
@@ -155,7 +155,7 @@ module CyberSource
155
155
  self.class == o.class &&
156
156
  company_tax_id == o.company_tax_id &&
157
157
  currency == o.currency &&
158
- date_o_birth == o.date_o_birth &&
158
+ date_of_birth == o.date_of_birth &&
159
159
  personal_identification == o.personal_identification
160
160
  end
161
161
 
@@ -168,7 +168,7 @@ module CyberSource
168
168
  # Calculates hash code according to all attributes.
169
169
  # @return [Fixnum] Hash code
170
170
  def hash
171
- [company_tax_id, currency, date_o_birth, personal_identification].hash
171
+ [company_tax_id, currency, date_of_birth, personal_identification].hash
172
172
  end
173
173
 
174
174
  # Builds the object from hash