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,198 +1,206 @@
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 SecureFileShareApi
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 a File with File Identifier
24
- # Download a file for the given file identifier
25
- # @param file_id Unique identifier for each file
26
- # @param [Hash] opts the optional parameters
27
- # @option opts [String] :organization_id Valid Cybersource Organization Id
28
- # @return [nil]
29
- def get_file(file_id, opts = {})
30
- data, status_code, headers = get_file_with_http_info(file_id, opts)
31
- return data, status_code, headers
32
- end
33
-
34
- # Download a File with File Identifier
35
- # Download a file for the given file identifier
36
- # @param file_id Unique identifier for each file
37
- # @param [Hash] opts the optional parameters
38
- # @option opts [String] :organization_id Valid Cybersource Organization Id
39
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
- def get_file_with_http_info(file_id, opts = {})
41
-
42
- if @api_client.config.debugging
43
- begin
44
- raise
45
- @api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file ...'
46
- rescue
47
- puts 'Cannot write to log'
48
- end
49
- end
50
- # verify the required parameter 'file_id' is set
51
- if @api_client.config.client_side_validation && file_id.nil?
52
- fail ArgumentError, "Missing the required parameter 'file_id' when calling SecureFileShareApi.get_file"
53
- end
54
- if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
55
- fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file, the character length must be smaller than or equal to 32.'
56
- end
57
-
58
- if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
59
- fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file, the character length must be great than or equal to 1.'
60
- end
61
-
62
- #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
63
- #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling SecureFileShareApi.get_file, must conform to the pattern /[a-zA-Z0-9-_]+/."
64
- #end
65
-
66
- # resource path
67
- local_var_path = 'sfs/v1/files/{fileId}'.sub('{' + 'fileId' + '}', file_id.to_s)
68
-
69
- # query parameters
70
- query_params = {}
71
- query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
72
-
73
- # header parameters
74
- header_params = {}
75
- # HTTP header 'Accept' (if needed)
76
- header_params['Accept'] = @api_client.select_header_accept(['application/xml', 'text/csv', 'application/pdf'])
77
- # HTTP header 'Content-Type'
78
- header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
79
-
80
- # form parameters
81
- form_params = {}
82
-
83
- # http body (model)
84
- post_body = nil
85
- auth_names = []
86
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
87
- :header_params => header_params,
88
- :query_params => query_params,
89
- :form_params => form_params,
90
- :body => post_body,
91
- :auth_names => auth_names)
92
- if @api_client.config.debugging
93
- begin
94
- raise
95
- @api_client.config.logger.debug "API called: SecureFileShareApi#get_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
- rescue
97
- puts 'Cannot write to log'
98
- end
99
- end
100
- return data, status_code, headers
101
- end
102
- # Get List of Files
103
- # Get list of files and it's information of them available inside the report directory
104
- # @param start_date Valid start date 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
105
- # @param end_date Valid end date 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
106
- # @param [Hash] opts the optional parameters
107
- # @option opts [String] :organization_id Valid Cybersource Organization Id
108
- # @option opts [String] :name **Tailored to searches for specific files with in given Date range** example : MyTransactionDetailreport.xml
109
- # @return [V1FileDetailsGet200Response]
110
- def get_file_detail(start_date, end_date, opts = {})
111
- data, status_code, headers = get_file_detail_with_http_info(start_date, end_date, opts)
112
- return data, status_code, headers
113
- end
114
-
115
- # Get List of Files
116
- # Get list of files and it&#39;s information of them available inside the report directory
117
- # @param start_date Valid start date 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
118
- # @param end_date Valid end date 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
119
- # @param [Hash] opts the optional parameters
120
- # @option opts [String] :organization_id Valid Cybersource Organization Id
121
- # @option opts [String] :name **Tailored to searches for specific files with in given Date range** example : MyTransactionDetailreport.xml
122
- # @return [Array<(V1FileDetailsGet200Response, Fixnum, Hash)>] V1FileDetailsGet200Response data, response status code and response headers
123
- def get_file_detail_with_http_info(start_date, end_date, opts = {})
124
-
125
- if @api_client.config.debugging
126
- begin
127
- raise
128
- @api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file_detail ...'
129
- rescue
130
- puts 'Cannot write to log'
131
- end
132
- end
133
- # verify the required parameter 'start_date' is set
134
- if @api_client.config.client_side_validation && start_date.nil?
135
- fail ArgumentError, "Missing the required parameter 'start_date' when calling SecureFileShareApi.get_file_detail"
136
- end
137
- # verify the required parameter 'end_date' is set
138
- if @api_client.config.client_side_validation && end_date.nil?
139
- fail ArgumentError, "Missing the required parameter 'end_date' when calling SecureFileShareApi.get_file_detail"
140
- end
141
- if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
142
- fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file_detail, the character length must be smaller than or equal to 32.'
143
- end
144
-
145
- if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
146
- fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file_detail, the character length must be great than or equal to 1.'
147
- end
148
-
149
- #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
150
- #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling SecureFileShareApi.get_file_detail, must conform to the pattern /[a-zA-Z0-9-_]+/."
151
- #end
152
-
153
- #if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'] !~ Regexp.new(/[a-zA-Z0-9-_\\.]+/)
154
- #fail ArgumentError, "invalid value for 'opts[:\"name\"]' when calling SecureFileShareApi.get_file_detail, must conform to the pattern /[a-zA-Z0-9-_\\.]+/."
155
- #end
156
-
157
- # resource path
158
- local_var_path = 'sfs/v1/file-details'
159
-
160
- # query parameters
161
- query_params = {}
162
- query_params[:'startDate'] = start_date
163
- query_params[:'endDate'] = end_date
164
- query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
165
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
166
-
167
- # header parameters
168
- header_params = {}
169
- # HTTP header 'Accept' (if needed)
170
- header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
171
- # HTTP header 'Content-Type'
172
- header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
173
-
174
- # form parameters
175
- form_params = {}
176
-
177
- # http body (model)
178
- post_body = nil
179
- auth_names = []
180
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
181
- :header_params => header_params,
182
- :query_params => query_params,
183
- :form_params => form_params,
184
- :body => post_body,
185
- :auth_names => auth_names,
186
- :return_type => 'V1FileDetailsGet200Response')
187
- if @api_client.config.debugging
188
- begin
189
- raise
190
- @api_client.config.logger.debug "API called: SecureFileShareApi#get_file_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
191
- rescue
192
- puts 'Cannot write to log'
193
- end
194
- end
195
- return data, status_code, headers
196
- end
197
- end
198
- 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 SecureFileShareApi
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 a File with File Identifier
24
+ # Download a file for the given file identifier
25
+ # @param file_id Unique identifier for each file
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
28
+ # @return [nil]
29
+ def get_file(file_id, opts = {})
30
+ data, status_code, headers = get_file_with_http_info(file_id, opts)
31
+ return data, status_code, headers
32
+ end
33
+
34
+ # Download a File with File Identifier
35
+ # Download a file for the given file identifier
36
+ # @param file_id Unique identifier for each file
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
39
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
+ def get_file_with_http_info(file_id, opts = {})
41
+
42
+ if @api_client.config.debugging
43
+ begin
44
+ raise
45
+ @api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file ...'
46
+ rescue
47
+ puts 'Cannot write to log'
48
+ end
49
+ end
50
+ # verify the required parameter 'file_id' is set
51
+ if @api_client.config.client_side_validation && file_id.nil?
52
+ fail ArgumentError, "Missing the required parameter 'file_id' when calling SecureFileShareApi.get_file"
53
+ end
54
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
55
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file, the character length must be smaller than or equal to 32.'
56
+ end
57
+
58
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
59
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file, the character length must be great than or equal to 1.'
60
+ end
61
+
62
+ #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
63
+ #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling SecureFileShareApi.get_file, must conform to the pattern /[a-zA-Z0-9-_]+/."
64
+ #end
65
+
66
+ # resource path
67
+ local_var_path = 'sfs/v1/files/{fileId}'.sub('{' + 'fileId' + '}', file_id.to_s)
68
+
69
+ # query parameters
70
+ query_params = {}
71
+ query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
72
+
73
+ # header parameters
74
+ header_params = {}
75
+ # HTTP header 'Accept' (if needed)
76
+ header_params['Accept'] = @api_client.select_header_accept(['application/xml', 'text/csv', 'application/pdf'])
77
+ # HTTP header 'Content-Type'
78
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
79
+
80
+ # form parameters
81
+ form_params = {}
82
+
83
+ # http body (model)
84
+ if 'GET' == 'POST'
85
+ post_body = '{}'
86
+ else
87
+ post_body = nil
88
+ end
89
+ auth_names = []
90
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
91
+ :header_params => header_params,
92
+ :query_params => query_params,
93
+ :form_params => form_params,
94
+ :body => post_body,
95
+ :auth_names => auth_names)
96
+ if @api_client.config.debugging
97
+ begin
98
+ raise
99
+ @api_client.config.logger.debug "API called: SecureFileShareApi#get_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
100
+ rescue
101
+ puts 'Cannot write to log'
102
+ end
103
+ end
104
+ return data, status_code, headers
105
+ end
106
+ # Get List of Files
107
+ # Get list of files and it's information of them available inside the report directory
108
+ # @param start_date Valid start date 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
109
+ # @param end_date Valid end date 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
110
+ # @param [Hash] opts the optional parameters
111
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
112
+ # @option opts [String] :name **Tailored to searches for specific files with in given Date range** example : MyTransactionDetailreport.xml
113
+ # @return [V1FileDetailsGet200Response]
114
+ def get_file_detail(start_date, end_date, opts = {})
115
+ data, status_code, headers = get_file_detail_with_http_info(start_date, end_date, opts)
116
+ return data, status_code, headers
117
+ end
118
+
119
+ # Get List of Files
120
+ # Get list of files and it&#39;s information of them available inside the report directory
121
+ # @param start_date Valid start date 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
122
+ # @param end_date Valid end date 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
123
+ # @param [Hash] opts the optional parameters
124
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
125
+ # @option opts [String] :name **Tailored to searches for specific files with in given Date range** example : MyTransactionDetailreport.xml
126
+ # @return [Array<(V1FileDetailsGet200Response, Fixnum, Hash)>] V1FileDetailsGet200Response data, response status code and response headers
127
+ def get_file_detail_with_http_info(start_date, end_date, opts = {})
128
+
129
+ if @api_client.config.debugging
130
+ begin
131
+ raise
132
+ @api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file_detail ...'
133
+ rescue
134
+ puts 'Cannot write to log'
135
+ end
136
+ end
137
+ # verify the required parameter 'start_date' is set
138
+ if @api_client.config.client_side_validation && start_date.nil?
139
+ fail ArgumentError, "Missing the required parameter 'start_date' when calling SecureFileShareApi.get_file_detail"
140
+ end
141
+ # verify the required parameter 'end_date' is set
142
+ if @api_client.config.client_side_validation && end_date.nil?
143
+ fail ArgumentError, "Missing the required parameter 'end_date' when calling SecureFileShareApi.get_file_detail"
144
+ end
145
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
146
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file_detail, the character length must be smaller than or equal to 32.'
147
+ end
148
+
149
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file_detail, the character length must be great than or equal to 1.'
151
+ end
152
+
153
+ #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
154
+ #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling SecureFileShareApi.get_file_detail, must conform to the pattern /[a-zA-Z0-9-_]+/."
155
+ #end
156
+
157
+ #if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'] !~ Regexp.new(/[a-zA-Z0-9-_\\.]+/)
158
+ #fail ArgumentError, "invalid value for 'opts[:\"name\"]' when calling SecureFileShareApi.get_file_detail, must conform to the pattern /[a-zA-Z0-9-_\\.]+/."
159
+ #end
160
+
161
+ # resource path
162
+ local_var_path = 'sfs/v1/file-details'
163
+
164
+ # query parameters
165
+ query_params = {}
166
+ query_params[:'startDate'] = start_date
167
+ query_params[:'endDate'] = end_date
168
+ query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
169
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
170
+
171
+ # header parameters
172
+ header_params = {}
173
+ # HTTP header 'Accept' (if needed)
174
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
175
+ # HTTP header 'Content-Type'
176
+ header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
177
+
178
+ # form parameters
179
+ form_params = {}
180
+
181
+ # http body (model)
182
+ if 'GET' == 'POST'
183
+ post_body = '{}'
184
+ else
185
+ post_body = nil
186
+ end
187
+ auth_names = []
188
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
189
+ :header_params => header_params,
190
+ :query_params => query_params,
191
+ :form_params => form_params,
192
+ :body => post_body,
193
+ :auth_names => auth_names,
194
+ :return_type => 'V1FileDetailsGet200Response')
195
+ if @api_client.config.debugging
196
+ begin
197
+ raise
198
+ @api_client.config.logger.debug "API called: SecureFileShareApi#get_file_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
199
+ rescue
200
+ puts 'Cannot write to log'
201
+ end
202
+ end
203
+ return data, status_code, headers
204
+ end
205
+ end
206
+ end
@@ -268,7 +268,11 @@ module CyberSource
268
268
  form_params = {}
269
269
 
270
270
  # http body (model)
271
- post_body = nil
271
+ if 'GET' == 'POST'
272
+ post_body = '{}'
273
+ else
274
+ post_body = nil
275
+ end
272
276
  auth_names = []
273
277
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
274
278
  :header_params => header_params,