cybersource_rest_client 0.0.44 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +10 -10
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +206 -206
- data/lib/cybersource_rest_client/models/inline_response_400_2.rb +15 -5
- data/lib/cybersource_rest_client/models/inline_response_502.rb +224 -0
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb +11 -1
- data/lib/cybersource_rest_client/models/mit_void_request.rb +22 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +33 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +97 -1
- data/lib/cybersource_rest_client/models/ptsv2voids_processing_information.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information_partner.rb +20 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_fluid_data.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +11 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +17 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information_partner.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +20 -4
- data/lib/cybersource_rest_client.rb +4 -0
- metadata +28 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a7da240e798ebf2ebc94feb7b5a16ea7063d22e5ea9ef9cd5502d1c385d9fe5
|
4
|
+
data.tar.gz: 42a44f628047a260771de48b62cf3003fc7bfc752e6ecc6a67c9e10639ddbaa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a745028341fdf150124b3414c46574856a93735bfd6a226985f0d62983378985826fc9954aa921a9834057863c275f522891bfe8adbafae2d32510d22ed05b0
|
7
|
+
data.tar.gz: 13f5cab06d072151fff26a919a22b22ba940391e1ae501142c416bc6ea51d3baebd4625ec9ce4977d90c877362279ffd6fce517f645ebf9dd77205fc99097b19
|
@@ -20,8 +20,8 @@ module CyberSource
|
|
20
20
|
@api_client = api_client
|
21
21
|
@api_client.set_configuration(config)
|
22
22
|
end
|
23
|
-
# Create one or more
|
24
|
-
# 'Create one or more
|
23
|
+
# Create one or more PKCS12 keys
|
24
|
+
# 'Create one or more PKCS12 keys'
|
25
25
|
# @param create_p12_keys_request
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [KmsV2KeysAsymPost201Response]
|
@@ -30,8 +30,8 @@ module CyberSource
|
|
30
30
|
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
|
-
# Create one or more
|
34
|
-
# 'Create one or more
|
33
|
+
# Create one or more PKCS12 keys
|
34
|
+
# 'Create one or more PKCS12 keys'
|
35
35
|
# @param create_p12_keys_request
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(KmsV2KeysAsymPost201Response, Fixnum, Hash)>] KmsV2KeysAsymPost201Response data, response status code and response headers
|
@@ -85,8 +85,8 @@ module CyberSource
|
|
85
85
|
end
|
86
86
|
return data, status_code, headers
|
87
87
|
end
|
88
|
-
# Delete one or more
|
89
|
-
# 'Delete one or more
|
88
|
+
# Delete one or more PKCS12 keys
|
89
|
+
# 'Delete one or more PKCS12 keys'
|
90
90
|
# @param delete_bulk_p12_keys_request
|
91
91
|
# @param [Hash] opts the optional parameters
|
92
92
|
# @return [KmsV2KeysAsymDeletesPost200Response]
|
@@ -95,8 +95,8 @@ module CyberSource
|
|
95
95
|
return data, status_code, headers
|
96
96
|
end
|
97
97
|
|
98
|
-
# Delete one or more
|
99
|
-
# 'Delete one or more
|
98
|
+
# Delete one or more PKCS12 keys
|
99
|
+
# 'Delete one or more PKCS12 keys'
|
100
100
|
# @param delete_bulk_p12_keys_request
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @return [Array<(KmsV2KeysAsymDeletesPost200Response, Fixnum, Hash)>] KmsV2KeysAsymDeletesPost200Response data, response status code and response headers
|
@@ -150,7 +150,7 @@ module CyberSource
|
|
150
150
|
end
|
151
151
|
return data, status_code, headers
|
152
152
|
end
|
153
|
-
# Retrieves
|
153
|
+
# Retrieves PKCS12 key details
|
154
154
|
# Retrieves keys details by providing the key id.
|
155
155
|
# @param key_id Key ID.
|
156
156
|
# @param [Hash] opts the optional parameters
|
@@ -160,7 +160,7 @@ module CyberSource
|
|
160
160
|
return data, status_code, headers
|
161
161
|
end
|
162
162
|
|
163
|
-
# Retrieves
|
163
|
+
# Retrieves PKCS12 key details
|
164
164
|
# Retrieves keys details by providing the key id.
|
165
165
|
# @param key_id Key ID.
|
166
166
|
# @param [Hash] opts the optional parameters
|
@@ -1,206 +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(['*/*;charset=utf-8'])
|
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'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(['*/*;charset=utf-8'])
|
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
|
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(['*/*;charset=utf-8'])
|
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'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(['*/*;charset=utf-8'])
|
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
|
@@ -20,19 +20,23 @@ module CyberSource
|
|
20
20
|
# The status of the submitted transaction. Possible values: - INVALID_REQUEST
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
-
# The reason of the status. Possible values: - MISSING_FIELD
|
23
|
+
# The reason of the status. Possible values: - MISSING_FIELD
|
24
24
|
attr_accessor :reason
|
25
25
|
|
26
26
|
# The detail message related to the status and reason listed above.
|
27
27
|
attr_accessor :message
|
28
28
|
|
29
|
+
# HTTP status code of the submitted request. Possible values: - 500
|
30
|
+
attr_accessor :status_code
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'submit_time_utc' => :'submitTimeUtc',
|
33
36
|
:'status' => :'status',
|
34
37
|
:'reason' => :'reason',
|
35
|
-
:'message' => :'message'
|
38
|
+
:'message' => :'message',
|
39
|
+
:'status_code' => :'statusCode'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -42,7 +46,8 @@ module CyberSource
|
|
42
46
|
:'submit_time_utc' => :'String',
|
43
47
|
:'status' => :'String',
|
44
48
|
:'reason' => :'String',
|
45
|
-
:'message' => :'String'
|
49
|
+
:'message' => :'String',
|
50
|
+
:'status_code' => :'String'
|
46
51
|
}
|
47
52
|
end
|
48
53
|
|
@@ -69,6 +74,10 @@ module CyberSource
|
|
69
74
|
if attributes.has_key?(:'message')
|
70
75
|
self.message = attributes[:'message']
|
71
76
|
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'statusCode')
|
79
|
+
self.status_code = attributes[:'statusCode']
|
80
|
+
end
|
72
81
|
end
|
73
82
|
|
74
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -92,7 +101,8 @@ module CyberSource
|
|
92
101
|
submit_time_utc == o.submit_time_utc &&
|
93
102
|
status == o.status &&
|
94
103
|
reason == o.reason &&
|
95
|
-
message == o.message
|
104
|
+
message == o.message &&
|
105
|
+
status_code == o.status_code
|
96
106
|
end
|
97
107
|
|
98
108
|
# @see the `==` method
|
@@ -104,7 +114,7 @@ module CyberSource
|
|
104
114
|
# Calculates hash code according to all attributes.
|
105
115
|
# @return [Fixnum] Hash code
|
106
116
|
def hash
|
107
|
-
[submit_time_utc, status, reason, message].hash
|
117
|
+
[submit_time_utc, status, reason, message, status_code].hash
|
108
118
|
end
|
109
119
|
|
110
120
|
# Builds the object from hash
|