cybersource_rest_client 0.0.40 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/logging/sensitive_logging.rb +7 -4
  3. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +223 -219
  4. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +116 -112
  5. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +116 -112
  6. data/lib/cybersource_rest_client/api/conversion_details_api.rb +5 -1
  7. data/lib/cybersource_rest_client/api/customer_api.rb +368 -360
  8. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +530 -518
  9. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +530 -518
  10. data/lib/cybersource_rest_client/api/download_dtd_api.rb +92 -88
  11. data/lib/cybersource_rest_client/api/download_xsd_api.rb +92 -88
  12. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +15 -3
  13. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +116 -112
  14. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +152 -148
  15. data/lib/cybersource_rest_client/api/invoices_api.rb +447 -431
  16. data/lib/cybersource_rest_client/api/net_fundings_api.rb +5 -1
  17. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +5 -1
  18. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +219 -219
  19. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +133 -129
  20. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +10 -2
  21. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +5 -1
  22. data/lib/cybersource_rest_client/api/report_definitions_api.rb +10 -2
  23. data/lib/cybersource_rest_client/api/report_downloads_api.rb +5 -1
  24. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +15 -3
  25. data/lib/cybersource_rest_client/api/reports_api.rb +10 -2
  26. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +116 -112
  27. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +116 -112
  28. data/lib/cybersource_rest_client/api/search_transactions_api.rb +5 -1
  29. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +206 -198
  30. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +5 -1
  31. data/lib/cybersource_rest_client/api/taxes_api.rb +160 -160
  32. data/lib/cybersource_rest_client/api/tokenization_api.rb +89 -89
  33. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +15 -3
  34. data/lib/cybersource_rest_client/api/transaction_details_api.rb +5 -1
  35. data/lib/cybersource_rest_client/api/user_management_api.rb +5 -1
  36. data/lib/cybersource_rest_client/api/user_management_search_api.rb +89 -89
  37. data/lib/cybersource_rest_client/api/verification_api.rb +154 -154
  38. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +20 -4
  39. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +20 -4
  40. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
  41. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +11 -1
  42. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
  43. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  44. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +20 -4
  45. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +21 -7
  46. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +17 -1
  47. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +13 -4
  48. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options.rb +190 -0
  49. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +0 -2
  50. data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_order_information.rb +183 -0
  51. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +14 -4
  52. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +13 -4
  53. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options.rb +183 -0
  54. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator.rb +190 -0
  55. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +52 -4
  56. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  57. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  58. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  59. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  60. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
  61. data/lib/cybersource_rest_client/models/void_capture_request.rb +13 -4
  62. data/lib/cybersource_rest_client/models/void_credit_request.rb +13 -4
  63. data/lib/cybersource_rest_client/models/void_payment_request.rb +13 -4
  64. data/lib/cybersource_rest_client/models/void_refund_request.rb +13 -4
  65. data/lib/cybersource_rest_client.rb +4 -0
  66. metadata +7 -3
@@ -1,88 +1,92 @@
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 'uri'
14
-
15
- module CyberSource
16
- class DownloadDTDApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default, config)
20
- @api_client = api_client
21
- @api_client.set_configuration(config)
22
- end
23
- # Download DTD for Report
24
- # Used to download DTDs for reports on no-auth.
25
- # @param report_definition_name_version Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1
26
- # @param [Hash] opts the optional parameters
27
- # @return [nil]
28
- def get_dtdv2(report_definition_name_version, opts = {})
29
- data, status_code, headers = get_dtdv2_with_http_info(report_definition_name_version, opts)
30
- return data, status_code, headers
31
- end
32
-
33
- # Download DTD for Report
34
- # Used to download DTDs for reports on no-auth.
35
- # @param report_definition_name_version Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1
36
- # @param [Hash] opts the optional parameters
37
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
- def get_dtdv2_with_http_info(report_definition_name_version, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: DownloadDTDApi.get_dtdv2 ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
47
- end
48
- # verify the required parameter 'report_definition_name_version' is set
49
- if @api_client.config.client_side_validation && report_definition_name_version.nil?
50
- fail ArgumentError, "Missing the required parameter 'report_definition_name_version' when calling DownloadDTDApi.get_dtdv2"
51
- end
52
- # resource path
53
- local_var_path = 'reporting/v3/dtds/{reportDefinitionNameVersion}'.sub('{' + 'reportDefinitionNameVersion' + '}', report_definition_name_version.to_s)
54
-
55
- # query parameters
56
- query_params = {}
57
-
58
- # header parameters
59
- header_params = {}
60
- # HTTP header 'Accept' (if needed)
61
- header_params['Accept'] = @api_client.select_header_accept(['application/xml-dtd'])
62
- # HTTP header 'Content-Type'
63
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
64
-
65
- # form parameters
66
- form_params = {}
67
-
68
- # http body (model)
69
- post_body = nil
70
- auth_names = []
71
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
72
- :header_params => header_params,
73
- :query_params => query_params,
74
- :form_params => form_params,
75
- :body => post_body,
76
- :auth_names => auth_names)
77
- if @api_client.config.debugging
78
- begin
79
- raise
80
- @api_client.config.logger.debug "API called: DownloadDTDApi#get_dtdv2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
- rescue
82
- puts 'Cannot write to log'
83
- end
84
- end
85
- return data, status_code, headers
86
- end
87
- end
88
- end
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 'uri'
14
+
15
+ module CyberSource
16
+ class DownloadDTDApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default, config)
20
+ @api_client = api_client
21
+ @api_client.set_configuration(config)
22
+ end
23
+ # Download DTD for Report
24
+ # Used to download DTDs for reports on no-auth.
25
+ # @param report_definition_name_version Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [nil]
28
+ def get_dtdv2(report_definition_name_version, opts = {})
29
+ data, status_code, headers = get_dtdv2_with_http_info(report_definition_name_version, opts)
30
+ return data, status_code, headers
31
+ end
32
+
33
+ # Download DTD for Report
34
+ # Used to download DTDs for reports on no-auth.
35
+ # @param report_definition_name_version Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
+ def get_dtdv2_with_http_info(report_definition_name_version, opts = {})
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: DownloadDTDApi.get_dtdv2 ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
+ end
48
+ # verify the required parameter 'report_definition_name_version' is set
49
+ if @api_client.config.client_side_validation && report_definition_name_version.nil?
50
+ fail ArgumentError, "Missing the required parameter 'report_definition_name_version' when calling DownloadDTDApi.get_dtdv2"
51
+ end
52
+ # resource path
53
+ local_var_path = 'reporting/v3/dtds/{reportDefinitionNameVersion}'.sub('{' + 'reportDefinitionNameVersion' + '}', report_definition_name_version.to_s)
54
+
55
+ # query parameters
56
+ query_params = {}
57
+
58
+ # header parameters
59
+ header_params = {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/xml-dtd'])
62
+ # HTTP header 'Content-Type'
63
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ if 'GET' == 'POST'
70
+ post_body = '{}'
71
+ else
72
+ post_body = nil
73
+ end
74
+ auth_names = []
75
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
76
+ :header_params => header_params,
77
+ :query_params => query_params,
78
+ :form_params => form_params,
79
+ :body => post_body,
80
+ :auth_names => auth_names)
81
+ if @api_client.config.debugging
82
+ begin
83
+ raise
84
+ @api_client.config.logger.debug "API called: DownloadDTDApi#get_dtdv2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ rescue
86
+ puts 'Cannot write to log'
87
+ end
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+ end
92
+ end
@@ -1,88 +1,92 @@
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 'uri'
14
-
15
- module CyberSource
16
- class DownloadXSDApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default, config)
20
- @api_client = api_client
21
- @api_client.set_configuration(config)
22
- end
23
- # Download XSD for Report
24
- # Used to download XSDs for reports on no-auth.
25
- # @param report_definition_name_version Name and version of XSD file to download. Some XSDs only have one version. In that case version name is not needed. Some example values are DecisionManagerDetailReport, DecisionManagerTypes
26
- # @param [Hash] opts the optional parameters
27
- # @return [nil]
28
- def get_xsdv2(report_definition_name_version, opts = {})
29
- data, status_code, headers = get_xsdv2_with_http_info(report_definition_name_version, opts)
30
- return data, status_code, headers
31
- end
32
-
33
- # Download XSD for Report
34
- # Used to download XSDs for reports on no-auth.
35
- # @param report_definition_name_version Name and version of XSD file to download. Some XSDs only have one version. In that case version name is not needed. Some example values are DecisionManagerDetailReport, DecisionManagerTypes
36
- # @param [Hash] opts the optional parameters
37
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
- def get_xsdv2_with_http_info(report_definition_name_version, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: DownloadXSDApi.get_xsdv2 ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
47
- end
48
- # verify the required parameter 'report_definition_name_version' is set
49
- if @api_client.config.client_side_validation && report_definition_name_version.nil?
50
- fail ArgumentError, "Missing the required parameter 'report_definition_name_version' when calling DownloadXSDApi.get_xsdv2"
51
- end
52
- # resource path
53
- local_var_path = 'reporting/v3/xsds/{reportDefinitionNameVersion}'.sub('{' + 'reportDefinitionNameVersion' + '}', report_definition_name_version.to_s)
54
-
55
- # query parameters
56
- query_params = {}
57
-
58
- # header parameters
59
- header_params = {}
60
- # HTTP header 'Accept' (if needed)
61
- header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
62
- # HTTP header 'Content-Type'
63
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
64
-
65
- # form parameters
66
- form_params = {}
67
-
68
- # http body (model)
69
- post_body = nil
70
- auth_names = []
71
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
72
- :header_params => header_params,
73
- :query_params => query_params,
74
- :form_params => form_params,
75
- :body => post_body,
76
- :auth_names => auth_names)
77
- if @api_client.config.debugging
78
- begin
79
- raise
80
- @api_client.config.logger.debug "API called: DownloadXSDApi#get_xsdv2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
- rescue
82
- puts 'Cannot write to log'
83
- end
84
- end
85
- return data, status_code, headers
86
- end
87
- end
88
- end
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 'uri'
14
+
15
+ module CyberSource
16
+ class DownloadXSDApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default, config)
20
+ @api_client = api_client
21
+ @api_client.set_configuration(config)
22
+ end
23
+ # Download XSD for Report
24
+ # Used to download XSDs for reports on no-auth.
25
+ # @param report_definition_name_version Name and version of XSD file to download. Some XSDs only have one version. In that case version name is not needed. Some example values are DecisionManagerDetailReport, DecisionManagerTypes
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [nil]
28
+ def get_xsdv2(report_definition_name_version, opts = {})
29
+ data, status_code, headers = get_xsdv2_with_http_info(report_definition_name_version, opts)
30
+ return data, status_code, headers
31
+ end
32
+
33
+ # Download XSD for Report
34
+ # Used to download XSDs for reports on no-auth.
35
+ # @param report_definition_name_version Name and version of XSD file to download. Some XSDs only have one version. In that case version name is not needed. Some example values are DecisionManagerDetailReport, DecisionManagerTypes
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
+ def get_xsdv2_with_http_info(report_definition_name_version, opts = {})
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: DownloadXSDApi.get_xsdv2 ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
+ end
48
+ # verify the required parameter 'report_definition_name_version' is set
49
+ if @api_client.config.client_side_validation && report_definition_name_version.nil?
50
+ fail ArgumentError, "Missing the required parameter 'report_definition_name_version' when calling DownloadXSDApi.get_xsdv2"
51
+ end
52
+ # resource path
53
+ local_var_path = 'reporting/v3/xsds/{reportDefinitionNameVersion}'.sub('{' + 'reportDefinitionNameVersion' + '}', report_definition_name_version.to_s)
54
+
55
+ # query parameters
56
+ query_params = {}
57
+
58
+ # header parameters
59
+ header_params = {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml'])
62
+ # HTTP header 'Content-Type'
63
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ if 'GET' == 'POST'
70
+ post_body = '{}'
71
+ else
72
+ post_body = nil
73
+ end
74
+ auth_names = []
75
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
76
+ :header_params => header_params,
77
+ :query_params => query_params,
78
+ :form_params => form_params,
79
+ :body => post_body,
80
+ :auth_names => auth_names)
81
+ if @api_client.config.debugging
82
+ begin
83
+ raise
84
+ @api_client.config.logger.debug "API called: DownloadXSDApi#get_xsdv2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ rescue
86
+ puts 'Cannot write to log'
87
+ end
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+ end
92
+ end
@@ -83,7 +83,11 @@ module CyberSource
83
83
  form_params = {}
84
84
 
85
85
  # http body (model)
86
- post_body = nil
86
+ if 'DELETE' == 'POST'
87
+ post_body = '{}'
88
+ else
89
+ post_body = nil
90
+ end
87
91
  auth_names = []
88
92
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
89
93
  :header_params => header_params,
@@ -164,7 +168,11 @@ module CyberSource
164
168
  form_params = {}
165
169
 
166
170
  # http body (model)
167
- post_body = nil
171
+ if 'GET' == 'POST'
172
+ post_body = '{}'
173
+ else
174
+ post_body = nil
175
+ end
168
176
  auth_names = []
169
177
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
170
178
  :header_params => header_params,
@@ -264,7 +272,11 @@ module CyberSource
264
272
  form_params = {}
265
273
 
266
274
  # http body (model)
267
- post_body = nil
275
+ if 'GET' == 'POST'
276
+ post_body = '{}'
277
+ else
278
+ post_body = nil
279
+ end
268
280
  auth_names = []
269
281
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
270
282
  :header_params => header_params,
@@ -1,112 +1,116 @@
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 'uri'
14
-
15
- module CyberSource
16
- class InterchangeClearingLevelDetailsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default, config)
20
- @api_client = api_client
21
- @api_client.set_configuration(config)
22
- end
23
- # Interchange Clearing Level data for an account or a merchant
24
- # Interchange Clearing Level data for an account or a merchant
25
- # @param start_time Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
26
- # @param end_time Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
27
- # @param [Hash] opts the optional parameters
28
- # @option opts [String] :organization_id Valid Organization Id
29
- # @return [ReportingV3InterchangeClearingLevelDetailsGet200Response]
30
- def get_interchange_clearing_level_details(start_time, end_time, opts = {})
31
- data, status_code, headers = get_interchange_clearing_level_details_with_http_info(start_time, end_time, opts)
32
- return data, status_code, headers
33
- end
34
-
35
- # Interchange Clearing Level data for an account or a merchant
36
- # Interchange Clearing Level data for an account or a merchant
37
- # @param start_time Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
38
- # @param end_time Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
39
- # @param [Hash] opts the optional parameters
40
- # @option opts [String] :organization_id Valid Organization Id
41
- # @return [Array<(ReportingV3InterchangeClearingLevelDetailsGet200Response, Fixnum, Hash)>] ReportingV3InterchangeClearingLevelDetailsGet200Response data, response status code and response headers
42
- def get_interchange_clearing_level_details_with_http_info(start_time, end_time, opts = {})
43
-
44
- if @api_client.config.debugging
45
- begin
46
- raise
47
- @api_client.config.logger.debug 'Calling API: InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details ...'
48
- rescue
49
- puts 'Cannot write to log'
50
- end
51
- end
52
- # verify the required parameter 'start_time' is set
53
- if @api_client.config.client_side_validation && start_time.nil?
54
- fail ArgumentError, "Missing the required parameter 'start_time' when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details"
55
- end
56
- # verify the required parameter 'end_time' is set
57
- if @api_client.config.client_side_validation && end_time.nil?
58
- fail ArgumentError, "Missing the required parameter 'end_time' when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details"
59
- end
60
- if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
61
- fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details, the character length must be smaller than or equal to 32.'
62
- end
63
-
64
- if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
65
- fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details, the character length must be great than or equal to 1.'
66
- end
67
-
68
- #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
69
- #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details, must conform to the pattern /[a-zA-Z0-9-_]+/."
70
- #end
71
-
72
- # resource path
73
- local_var_path = 'reporting/v3/interchange-clearing-level-details'
74
-
75
- # query parameters
76
- query_params = {}
77
- query_params[:'startTime'] = start_time
78
- query_params[:'endTime'] = end_time
79
- query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
80
-
81
- # header parameters
82
- header_params = {}
83
- # HTTP header 'Accept' (if needed)
84
- header_params['Accept'] = @api_client.select_header_accept(['application/hal+json', 'application/xml'])
85
- # HTTP header 'Content-Type'
86
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
87
-
88
- # form parameters
89
- form_params = {}
90
-
91
- # http body (model)
92
- post_body = nil
93
- auth_names = []
94
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
95
- :header_params => header_params,
96
- :query_params => query_params,
97
- :form_params => form_params,
98
- :body => post_body,
99
- :auth_names => auth_names,
100
- :return_type => 'ReportingV3InterchangeClearingLevelDetailsGet200Response')
101
- if @api_client.config.debugging
102
- begin
103
- raise
104
- @api_client.config.logger.debug "API called: InterchangeClearingLevelDetailsApi#get_interchange_clearing_level_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
105
- rescue
106
- puts 'Cannot write to log'
107
- end
108
- end
109
- return data, status_code, headers
110
- end
111
- end
112
- end
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 'uri'
14
+
15
+ module CyberSource
16
+ class InterchangeClearingLevelDetailsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default, config)
20
+ @api_client = api_client
21
+ @api_client.set_configuration(config)
22
+ end
23
+ # Interchange Clearing Level data for an account or a merchant
24
+ # Interchange Clearing Level data for an account or a merchant
25
+ # @param start_time Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
26
+ # @param end_time Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [String] :organization_id Valid Organization Id
29
+ # @return [ReportingV3InterchangeClearingLevelDetailsGet200Response]
30
+ def get_interchange_clearing_level_details(start_time, end_time, opts = {})
31
+ data, status_code, headers = get_interchange_clearing_level_details_with_http_info(start_time, end_time, opts)
32
+ return data, status_code, headers
33
+ end
34
+
35
+ # Interchange Clearing Level data for an account or a merchant
36
+ # Interchange Clearing Level data for an account or a merchant
37
+ # @param start_time Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
38
+ # @param end_time Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :organization_id Valid Organization Id
41
+ # @return [Array<(ReportingV3InterchangeClearingLevelDetailsGet200Response, Fixnum, Hash)>] ReportingV3InterchangeClearingLevelDetailsGet200Response data, response status code and response headers
42
+ def get_interchange_clearing_level_details_with_http_info(start_time, end_time, opts = {})
43
+
44
+ if @api_client.config.debugging
45
+ begin
46
+ raise
47
+ @api_client.config.logger.debug 'Calling API: InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details ...'
48
+ rescue
49
+ puts 'Cannot write to log'
50
+ end
51
+ end
52
+ # verify the required parameter 'start_time' is set
53
+ if @api_client.config.client_side_validation && start_time.nil?
54
+ fail ArgumentError, "Missing the required parameter 'start_time' when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details"
55
+ end
56
+ # verify the required parameter 'end_time' is set
57
+ if @api_client.config.client_side_validation && end_time.nil?
58
+ fail ArgumentError, "Missing the required parameter 'end_time' when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details"
59
+ end
60
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
61
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details, the character length must be smaller than or equal to 32.'
62
+ end
63
+
64
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
65
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details, the character length must be great than or equal to 1.'
66
+ end
67
+
68
+ #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
69
+ #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling InterchangeClearingLevelDetailsApi.get_interchange_clearing_level_details, must conform to the pattern /[a-zA-Z0-9-_]+/."
70
+ #end
71
+
72
+ # resource path
73
+ local_var_path = 'reporting/v3/interchange-clearing-level-details'
74
+
75
+ # query parameters
76
+ query_params = {}
77
+ query_params[:'startTime'] = start_time
78
+ query_params[:'endTime'] = end_time
79
+ query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
80
+
81
+ # header parameters
82
+ header_params = {}
83
+ # HTTP header 'Accept' (if needed)
84
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json', 'application/xml'])
85
+ # HTTP header 'Content-Type'
86
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
87
+
88
+ # form parameters
89
+ form_params = {}
90
+
91
+ # http body (model)
92
+ if 'GET' == 'POST'
93
+ post_body = '{}'
94
+ else
95
+ post_body = nil
96
+ end
97
+ auth_names = []
98
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
99
+ :header_params => header_params,
100
+ :query_params => query_params,
101
+ :form_params => form_params,
102
+ :body => post_body,
103
+ :auth_names => auth_names,
104
+ :return_type => 'ReportingV3InterchangeClearingLevelDetailsGet200Response')
105
+ if @api_client.config.debugging
106
+ begin
107
+ raise
108
+ @api_client.config.logger.debug "API called: InterchangeClearingLevelDetailsApi#get_interchange_clearing_level_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
109
+ rescue
110
+ puts 'Cannot write to log'
111
+ end
112
+ end
113
+ return data, status_code, headers
114
+ end
115
+ end
116
+ end