cybersource_rest_client 0.0.41 → 0.0.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +206 -206
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +20 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +22 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +2 -8
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_chargeback_details_get200_response_chargeback_details.rb +14 -4
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +49 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +44 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +35 -3
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_device_information.rb → riskv1authenticationresults_device_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +61 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +13 -3
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +1 -7
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +213 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +14 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank.rb +183 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank_account.rb +194 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_customer.rb +184 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +1 -1
- data/lib/cybersource_rest_client/models/validate_request.rb +13 -4
- data/lib/cybersource_rest_client.rb +7 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48949ab90958e855648c761c0ed6dfb15886a166cc9b6d31064205b530e9a70b
|
4
|
+
data.tar.gz: 325f9c45c36a2d4f7ecf19481f0fdfc742c00fa73ddb346bf11e9bfb083c33e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bafd1ca0787adfa1f55fc549aab843bc85f91a83ece725188c7b42e8523544b03977192b0086cd61c4bf691d3512fcc770cf99079e29efb34e020179422b4cca
|
7
|
+
data.tar.gz: bab45489ebd54b02516416117d590eca719737ed2f6e1412c293c475420ab0877f25c2426e22d7778fe5c3d466b450b547d6f5c68db1534187a74cd8a777c2b5
|
@@ -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(['
|
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(['
|
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
|
@@ -42,6 +42,8 @@ module CyberSource
|
|
42
42
|
|
43
43
|
attr_accessor :payment_information
|
44
44
|
|
45
|
+
attr_accessor :payment_insights_information
|
46
|
+
|
45
47
|
attr_accessor :order_information
|
46
48
|
|
47
49
|
attr_accessor :point_of_sale_information
|
@@ -71,6 +73,7 @@ module CyberSource
|
|
71
73
|
:'issuer_information' => :'issuerInformation',
|
72
74
|
:'payment_account_information' => :'paymentAccountInformation',
|
73
75
|
:'payment_information' => :'paymentInformation',
|
76
|
+
:'payment_insights_information' => :'paymentInsightsInformation',
|
74
77
|
:'order_information' => :'orderInformation',
|
75
78
|
:'point_of_sale_information' => :'pointOfSaleInformation',
|
76
79
|
:'installment_information' => :'installmentInformation',
|
@@ -96,6 +99,7 @@ module CyberSource
|
|
96
99
|
:'issuer_information' => :'PtsV2PaymentsPost201ResponseIssuerInformation',
|
97
100
|
:'payment_account_information' => :'PtsV2PaymentsPost201ResponsePaymentAccountInformation',
|
98
101
|
:'payment_information' => :'PtsV2PaymentsPost201ResponsePaymentInformation',
|
102
|
+
:'payment_insights_information' => :'PtsV2PaymentsPost201ResponsePaymentInsightsInformation',
|
99
103
|
:'order_information' => :'PtsV2PaymentsPost201ResponseOrderInformation',
|
100
104
|
:'point_of_sale_information' => :'PtsV2PaymentsPost201ResponsePointOfSaleInformation',
|
101
105
|
:'installment_information' => :'PtsV2PaymentsPost201ResponseInstallmentInformation',
|
@@ -162,6 +166,10 @@ module CyberSource
|
|
162
166
|
self.payment_information = attributes[:'paymentInformation']
|
163
167
|
end
|
164
168
|
|
169
|
+
if attributes.has_key?(:'paymentInsightsInformation')
|
170
|
+
self.payment_insights_information = attributes[:'paymentInsightsInformation']
|
171
|
+
end
|
172
|
+
|
165
173
|
if attributes.has_key?(:'orderInformation')
|
166
174
|
self.order_information = attributes[:'orderInformation']
|
167
175
|
end
|
@@ -233,6 +241,7 @@ module CyberSource
|
|
233
241
|
issuer_information == o.issuer_information &&
|
234
242
|
payment_account_information == o.payment_account_information &&
|
235
243
|
payment_information == o.payment_information &&
|
244
|
+
payment_insights_information == o.payment_insights_information &&
|
236
245
|
order_information == o.order_information &&
|
237
246
|
point_of_sale_information == o.point_of_sale_information &&
|
238
247
|
installment_information == o.installment_information &&
|
@@ -251,7 +260,7 @@ module CyberSource
|
|
251
260
|
# Calculates hash code according to all attributes.
|
252
261
|
# @return [Fixnum] Hash code
|
253
262
|
def hash
|
254
|
-
[_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_account_information, payment_information, order_information, point_of_sale_information, installment_information, token_information, buyer_information, risk_information, consumer_authentication_information].hash
|
263
|
+
[_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_account_information, payment_information, payment_insights_information, order_information, point_of_sale_information, installment_information, token_information, buyer_information, risk_information, consumer_authentication_information].hash
|
255
264
|
end
|
256
265
|
|
257
266
|
# Builds the object from hash
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
# The Base64 encoded JSON Payload of CB specific Authorization Values returned in the challenge Flow
|
33
33
|
attr_accessor :authorization_payload
|
34
34
|
|
35
|
-
# Payer authentication transaction identifier
|
35
|
+
# Payer authentication transaction identifier is used to link the check enrollment and validate authentication messages. For Rupay, this field should be passed as request only for Resend OTP use case.
|
36
36
|
attr_accessor :authentication_transaction_id
|
37
37
|
|
38
38
|
# Text provided by the ACS/Issuer to Cardholder during a Frictionless or Decoupled transaction.The Issuer can provide information to Cardholder. For example, “Additional authentication is needed for this transaction, please contact (Issuer Name) at xxx-xxx-xxxx.”. The Issuing Bank can optionally support this value.
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb
CHANGED
@@ -26,13 +26,17 @@ module CyberSource
|
|
26
26
|
# Additional authorization code that must be printed on the receipt when returned by the processor. This value is generated by the processor and is returned only for a successful transaction. This reply field is supported only for these processors: - FDC Nashville Global - SIX
|
27
27
|
attr_accessor :response_code
|
28
28
|
|
29
|
+
# issuerInformation.responseRaw is the raw processor auth response returned to merchant in CYBS auth response if auth request includes \"processingInformation.isReturnAuthRecordEnabled=true\". If supported by the gateway code, it is available to merchants who auth through CYBS and run their own settlement processing.
|
30
|
+
attr_accessor :response_raw
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'country' => :'country',
|
33
36
|
:'discretionary_data' => :'discretionaryData',
|
34
37
|
:'country_specific_discretionary_data' => :'countrySpecificDiscretionaryData',
|
35
|
-
:'response_code' => :'responseCode'
|
38
|
+
:'response_code' => :'responseCode',
|
39
|
+
:'response_raw' => :'responseRaw'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -42,7 +46,8 @@ module CyberSource
|
|
42
46
|
:'country' => :'String',
|
43
47
|
:'discretionary_data' => :'String',
|
44
48
|
:'country_specific_discretionary_data' => :'String',
|
45
|
-
:'response_code' => :'String'
|
49
|
+
:'response_code' => :'String',
|
50
|
+
:'response_raw' => :'String'
|
46
51
|
}
|
47
52
|
end
|
48
53
|
|
@@ -69,6 +74,10 @@ module CyberSource
|
|
69
74
|
if attributes.has_key?(:'responseCode')
|
70
75
|
self.response_code = attributes[:'responseCode']
|
71
76
|
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'responseRaw')
|
79
|
+
self.response_raw = attributes[:'responseRaw']
|
80
|
+
end
|
72
81
|
end
|
73
82
|
|
74
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -108,6 +117,12 @@ module CyberSource
|
|
108
117
|
@response_code = response_code
|
109
118
|
end
|
110
119
|
|
120
|
+
# Custom attribute writer method with validation
|
121
|
+
# @param [Object] response_raw Value to be assigned
|
122
|
+
def response_raw=(response_raw)
|
123
|
+
@response_raw = response_raw
|
124
|
+
end
|
125
|
+
|
111
126
|
# Checks equality by comparing each attribute.
|
112
127
|
# @param [Object] Object to be compared
|
113
128
|
def ==(o)
|
@@ -116,7 +131,8 @@ module CyberSource
|
|
116
131
|
country == o.country &&
|
117
132
|
discretionary_data == o.discretionary_data &&
|
118
133
|
country_specific_discretionary_data == o.country_specific_discretionary_data &&
|
119
|
-
response_code == o.response_code
|
134
|
+
response_code == o.response_code &&
|
135
|
+
response_raw == o.response_raw
|
120
136
|
end
|
121
137
|
|
122
138
|
# @see the `==` method
|
@@ -128,7 +144,7 @@ module CyberSource
|
|
128
144
|
# Calculates hash code according to all attributes.
|
129
145
|
# @return [Fixnum] Hash code
|
130
146
|
def hash
|
131
|
-
[country, discretionary_data, country_specific_discretionary_data, response_code].hash
|
147
|
+
[country, discretionary_data, country_specific_discretionary_data, response_code, response_raw].hash
|
132
148
|
end
|
133
149
|
|
134
150
|
# Builds the object from hash
|