cybersource_rest_client 0.0.40 → 0.0.44
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/AuthenticationSDK/logging/sensitive_logging.rb +7 -4
- data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +223 -219
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +116 -112
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +116 -112
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/customer_api.rb +368 -360
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +530 -518
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +530 -518
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +92 -88
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +92 -88
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +15 -3
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +116 -112
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +152 -148
- data/lib/cybersource_rest_client/api/invoices_api.rb +447 -431
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +5 -1
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +5 -1
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +219 -219
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +133 -129
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +10 -2
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +10 -2
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +5 -1
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +15 -3
- data/lib/cybersource_rest_client/api/reports_api.rb +10 -2
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +116 -112
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +116 -112
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +5 -1
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +206 -198
- data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +5 -1
- data/lib/cybersource_rest_client/api/taxes_api.rb +160 -160
- data/lib/cybersource_rest_client/api/tokenization_api.rb +89 -89
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +15 -3
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/user_management_api.rb +5 -1
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +89 -89
- data/lib/cybersource_rest_client/api/verification_api.rb +154 -154
- 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_account_information_card.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/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
- 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.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +15 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +0 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +52 -4
- 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_order_information_amount_details.rb +1 -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/models/void_capture_request.rb +13 -4
- data/lib/cybersource_rest_client/models/void_credit_request.rb +13 -4
- data/lib/cybersource_rest_client/models/void_payment_request.rb +13 -4
- data/lib/cybersource_rest_client/models/void_refund_request.rb +13 -4
- data/lib/cybersource_rest_client.rb +11 -1
- metadata +14 -4
@@ -92,7 +92,11 @@ module CyberSource
|
|
92
92
|
form_params = {}
|
93
93
|
|
94
94
|
# http body (model)
|
95
|
-
|
95
|
+
if 'GET' == 'POST'
|
96
|
+
post_body = '{}'
|
97
|
+
else
|
98
|
+
post_body = nil
|
99
|
+
end
|
96
100
|
auth_names = []
|
97
101
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
98
102
|
:header_params => header_params,
|
@@ -74,7 +74,11 @@ module CyberSource
|
|
74
74
|
form_params = {}
|
75
75
|
|
76
76
|
# http body (model)
|
77
|
-
|
77
|
+
if 'GET' == 'POST'
|
78
|
+
post_body = '{}'
|
79
|
+
else
|
80
|
+
post_body = nil
|
81
|
+
end
|
78
82
|
auth_names = []
|
79
83
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
80
84
|
:header_params => header_params,
|
@@ -1,219 +1,219 @@
|
|
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 PayerAuthenticationApi
|
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
|
-
# Check Payer Auth Enrollment
|
24
|
-
# This call verifies that the card is enrolled in a card authentication program.
|
25
|
-
# @param check_payer_auth_enrollment_request
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [RiskV1AuthenticationsPost201Response]
|
28
|
-
def check_payer_auth_enrollment(check_payer_auth_enrollment_request, opts = {})
|
29
|
-
data, status_code, headers = check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_request, opts)
|
30
|
-
return data, status_code, headers
|
31
|
-
end
|
32
|
-
|
33
|
-
# Check Payer Auth Enrollment
|
34
|
-
# This call verifies that the card is enrolled in a card authentication program.
|
35
|
-
# @param check_payer_auth_enrollment_request
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(RiskV1AuthenticationsPost201Response, Fixnum, Hash)>] RiskV1AuthenticationsPost201Response data, response status code and response headers
|
38
|
-
def check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_request, opts = {})
|
39
|
-
|
40
|
-
if @api_client.config.debugging
|
41
|
-
begin
|
42
|
-
raise
|
43
|
-
@api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.check_payer_auth_enrollment ...'
|
44
|
-
rescue
|
45
|
-
puts 'Cannot write to log'
|
46
|
-
end
|
47
|
-
end
|
48
|
-
# verify the required parameter 'check_payer_auth_enrollment_request' is set
|
49
|
-
if @api_client.config.client_side_validation && check_payer_auth_enrollment_request.nil?
|
50
|
-
fail ArgumentError, "Missing the required parameter 'check_payer_auth_enrollment_request' when calling PayerAuthenticationApi.check_payer_auth_enrollment"
|
51
|
-
end
|
52
|
-
# resource path
|
53
|
-
local_var_path = 'risk/v1/authentications'
|
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/hal+json;charset=utf-8'])
|
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 = @api_client.object_to_http_body(check_payer_auth_enrollment_request)
|
70
|
-
auth_names = []
|
71
|
-
data, status_code, headers = @api_client.call_api(:POST, 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
|
-
:return_type => 'RiskV1AuthenticationsPost201Response')
|
78
|
-
if @api_client.config.debugging
|
79
|
-
begin
|
80
|
-
raise
|
81
|
-
@api_client.config.logger.debug "API called: PayerAuthenticationApi#check_payer_auth_enrollment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
-
rescue
|
83
|
-
puts 'Cannot write to log'
|
84
|
-
end
|
85
|
-
end
|
86
|
-
return data, status_code, headers
|
87
|
-
end
|
88
|
-
# Setup Payer Auth
|
89
|
-
# A new service for Merchants to get reference_id for Digital Wallets to use in place of BIN number in Cardinal. Set up file while authenticating with Cardinal. This service should be called by Merchant when payment instrument chosen or changes. This service has to be called before enrollment check.
|
90
|
-
# @param payer_auth_setup_request
|
91
|
-
# @param [Hash] opts the optional parameters
|
92
|
-
# @return [RiskV1AuthenticationSetupsPost201Response]
|
93
|
-
def payer_auth_setup(payer_auth_setup_request, opts = {})
|
94
|
-
data, status_code, headers = payer_auth_setup_with_http_info(payer_auth_setup_request, opts)
|
95
|
-
return data, status_code, headers
|
96
|
-
end
|
97
|
-
|
98
|
-
# Setup Payer Auth
|
99
|
-
# A new service for Merchants to get reference_id for Digital Wallets to use in place of BIN number in Cardinal. Set up file while authenticating with Cardinal. This service should be called by Merchant when payment instrument chosen or changes. This service has to be called before enrollment check.
|
100
|
-
# @param payer_auth_setup_request
|
101
|
-
# @param [Hash] opts the optional parameters
|
102
|
-
# @return [Array<(RiskV1AuthenticationSetupsPost201Response, Fixnum, Hash)>] RiskV1AuthenticationSetupsPost201Response data, response status code and response headers
|
103
|
-
def payer_auth_setup_with_http_info(payer_auth_setup_request, opts = {})
|
104
|
-
|
105
|
-
if @api_client.config.debugging
|
106
|
-
begin
|
107
|
-
raise
|
108
|
-
@api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.payer_auth_setup ...'
|
109
|
-
rescue
|
110
|
-
puts 'Cannot write to log'
|
111
|
-
end
|
112
|
-
end
|
113
|
-
# verify the required parameter 'payer_auth_setup_request' is set
|
114
|
-
if @api_client.config.client_side_validation && payer_auth_setup_request.nil?
|
115
|
-
fail ArgumentError, "Missing the required parameter 'payer_auth_setup_request' when calling PayerAuthenticationApi.payer_auth_setup"
|
116
|
-
end
|
117
|
-
# resource path
|
118
|
-
local_var_path = 'risk/v1/authentication-setups'
|
119
|
-
|
120
|
-
# query parameters
|
121
|
-
query_params = {}
|
122
|
-
|
123
|
-
# header parameters
|
124
|
-
header_params = {}
|
125
|
-
# HTTP header 'Accept' (if needed)
|
126
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
127
|
-
# HTTP header 'Content-Type'
|
128
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
129
|
-
|
130
|
-
# form parameters
|
131
|
-
form_params = {}
|
132
|
-
|
133
|
-
# http body (model)
|
134
|
-
post_body = @api_client.object_to_http_body(payer_auth_setup_request)
|
135
|
-
auth_names = []
|
136
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
137
|
-
:header_params => header_params,
|
138
|
-
:query_params => query_params,
|
139
|
-
:form_params => form_params,
|
140
|
-
:body => post_body,
|
141
|
-
:auth_names => auth_names,
|
142
|
-
:return_type => 'RiskV1AuthenticationSetupsPost201Response')
|
143
|
-
if @api_client.config.debugging
|
144
|
-
begin
|
145
|
-
raise
|
146
|
-
@api_client.config.logger.debug "API called: PayerAuthenticationApi#payer_auth_setup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
-
rescue
|
148
|
-
puts 'Cannot write to log'
|
149
|
-
end
|
150
|
-
end
|
151
|
-
return data, status_code, headers
|
152
|
-
end
|
153
|
-
# Validate Authentication Results
|
154
|
-
# This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
|
155
|
-
# @param validate_request
|
156
|
-
# @param [Hash] opts the optional parameters
|
157
|
-
# @return [RiskV1AuthenticationResultsPost201Response]
|
158
|
-
def validate_authentication_results(validate_request, opts = {})
|
159
|
-
data, status_code, headers = validate_authentication_results_with_http_info(validate_request, opts)
|
160
|
-
return data, status_code, headers
|
161
|
-
end
|
162
|
-
|
163
|
-
# Validate Authentication Results
|
164
|
-
# This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
|
165
|
-
# @param validate_request
|
166
|
-
# @param [Hash] opts the optional parameters
|
167
|
-
# @return [Array<(RiskV1AuthenticationResultsPost201Response, Fixnum, Hash)>] RiskV1AuthenticationResultsPost201Response data, response status code and response headers
|
168
|
-
def validate_authentication_results_with_http_info(validate_request, opts = {})
|
169
|
-
|
170
|
-
if @api_client.config.debugging
|
171
|
-
begin
|
172
|
-
raise
|
173
|
-
@api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.validate_authentication_results ...'
|
174
|
-
rescue
|
175
|
-
puts 'Cannot write to log'
|
176
|
-
end
|
177
|
-
end
|
178
|
-
# verify the required parameter 'validate_request' is set
|
179
|
-
if @api_client.config.client_side_validation && validate_request.nil?
|
180
|
-
fail ArgumentError, "Missing the required parameter 'validate_request' when calling PayerAuthenticationApi.validate_authentication_results"
|
181
|
-
end
|
182
|
-
# resource path
|
183
|
-
local_var_path = 'risk/v1/authentication-results'
|
184
|
-
|
185
|
-
# query parameters
|
186
|
-
query_params = {}
|
187
|
-
|
188
|
-
# header parameters
|
189
|
-
header_params = {}
|
190
|
-
# HTTP header 'Accept' (if needed)
|
191
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
192
|
-
# HTTP header 'Content-Type'
|
193
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
194
|
-
|
195
|
-
# form parameters
|
196
|
-
form_params = {}
|
197
|
-
|
198
|
-
# http body (model)
|
199
|
-
post_body = @api_client.object_to_http_body(validate_request)
|
200
|
-
auth_names = []
|
201
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
202
|
-
:header_params => header_params,
|
203
|
-
:query_params => query_params,
|
204
|
-
:form_params => form_params,
|
205
|
-
:body => post_body,
|
206
|
-
:auth_names => auth_names,
|
207
|
-
:return_type => 'RiskV1AuthenticationResultsPost201Response')
|
208
|
-
if @api_client.config.debugging
|
209
|
-
begin
|
210
|
-
raise
|
211
|
-
@api_client.config.logger.debug "API called: PayerAuthenticationApi#validate_authentication_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
212
|
-
rescue
|
213
|
-
puts 'Cannot write to log'
|
214
|
-
end
|
215
|
-
end
|
216
|
-
return data, status_code, headers
|
217
|
-
end
|
218
|
-
end
|
219
|
-
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 PayerAuthenticationApi
|
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
|
+
# Check Payer Auth Enrollment
|
24
|
+
# This call verifies that the card is enrolled in a card authentication program.
|
25
|
+
# @param check_payer_auth_enrollment_request
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [RiskV1AuthenticationsPost201Response]
|
28
|
+
def check_payer_auth_enrollment(check_payer_auth_enrollment_request, opts = {})
|
29
|
+
data, status_code, headers = check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_request, opts)
|
30
|
+
return data, status_code, headers
|
31
|
+
end
|
32
|
+
|
33
|
+
# Check Payer Auth Enrollment
|
34
|
+
# This call verifies that the card is enrolled in a card authentication program.
|
35
|
+
# @param check_payer_auth_enrollment_request
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(RiskV1AuthenticationsPost201Response, Fixnum, Hash)>] RiskV1AuthenticationsPost201Response data, response status code and response headers
|
38
|
+
def check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_request, opts = {})
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.check_payer_auth_enrollment ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
# verify the required parameter 'check_payer_auth_enrollment_request' is set
|
49
|
+
if @api_client.config.client_side_validation && check_payer_auth_enrollment_request.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'check_payer_auth_enrollment_request' when calling PayerAuthenticationApi.check_payer_auth_enrollment"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = 'risk/v1/authentications'
|
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/hal+json;charset=utf-8'])
|
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 = @api_client.object_to_http_body(check_payer_auth_enrollment_request)
|
70
|
+
auth_names = []
|
71
|
+
data, status_code, headers = @api_client.call_api(:POST, 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
|
+
:return_type => 'RiskV1AuthenticationsPost201Response')
|
78
|
+
if @api_client.config.debugging
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: PayerAuthenticationApi#check_payer_auth_enrollment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
rescue
|
83
|
+
puts 'Cannot write to log'
|
84
|
+
end
|
85
|
+
end
|
86
|
+
return data, status_code, headers
|
87
|
+
end
|
88
|
+
# Setup Payer Auth
|
89
|
+
# A new service for Merchants to get reference_id for Digital Wallets to use in place of BIN number in Cardinal. Set up file while authenticating with Cardinal. This service should be called by Merchant when payment instrument chosen or changes. This service has to be called before enrollment check.
|
90
|
+
# @param payer_auth_setup_request
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [RiskV1AuthenticationSetupsPost201Response]
|
93
|
+
def payer_auth_setup(payer_auth_setup_request, opts = {})
|
94
|
+
data, status_code, headers = payer_auth_setup_with_http_info(payer_auth_setup_request, opts)
|
95
|
+
return data, status_code, headers
|
96
|
+
end
|
97
|
+
|
98
|
+
# Setup Payer Auth
|
99
|
+
# A new service for Merchants to get reference_id for Digital Wallets to use in place of BIN number in Cardinal. Set up file while authenticating with Cardinal. This service should be called by Merchant when payment instrument chosen or changes. This service has to be called before enrollment check.
|
100
|
+
# @param payer_auth_setup_request
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [Array<(RiskV1AuthenticationSetupsPost201Response, Fixnum, Hash)>] RiskV1AuthenticationSetupsPost201Response data, response status code and response headers
|
103
|
+
def payer_auth_setup_with_http_info(payer_auth_setup_request, opts = {})
|
104
|
+
|
105
|
+
if @api_client.config.debugging
|
106
|
+
begin
|
107
|
+
raise
|
108
|
+
@api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.payer_auth_setup ...'
|
109
|
+
rescue
|
110
|
+
puts 'Cannot write to log'
|
111
|
+
end
|
112
|
+
end
|
113
|
+
# verify the required parameter 'payer_auth_setup_request' is set
|
114
|
+
if @api_client.config.client_side_validation && payer_auth_setup_request.nil?
|
115
|
+
fail ArgumentError, "Missing the required parameter 'payer_auth_setup_request' when calling PayerAuthenticationApi.payer_auth_setup"
|
116
|
+
end
|
117
|
+
# resource path
|
118
|
+
local_var_path = 'risk/v1/authentication-setups'
|
119
|
+
|
120
|
+
# query parameters
|
121
|
+
query_params = {}
|
122
|
+
|
123
|
+
# header parameters
|
124
|
+
header_params = {}
|
125
|
+
# HTTP header 'Accept' (if needed)
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
127
|
+
# HTTP header 'Content-Type'
|
128
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
129
|
+
|
130
|
+
# form parameters
|
131
|
+
form_params = {}
|
132
|
+
|
133
|
+
# http body (model)
|
134
|
+
post_body = @api_client.object_to_http_body(payer_auth_setup_request)
|
135
|
+
auth_names = []
|
136
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
137
|
+
:header_params => header_params,
|
138
|
+
:query_params => query_params,
|
139
|
+
:form_params => form_params,
|
140
|
+
:body => post_body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'RiskV1AuthenticationSetupsPost201Response')
|
143
|
+
if @api_client.config.debugging
|
144
|
+
begin
|
145
|
+
raise
|
146
|
+
@api_client.config.logger.debug "API called: PayerAuthenticationApi#payer_auth_setup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
rescue
|
148
|
+
puts 'Cannot write to log'
|
149
|
+
end
|
150
|
+
end
|
151
|
+
return data, status_code, headers
|
152
|
+
end
|
153
|
+
# Validate Authentication Results
|
154
|
+
# This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
|
155
|
+
# @param validate_request
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @return [RiskV1AuthenticationResultsPost201Response]
|
158
|
+
def validate_authentication_results(validate_request, opts = {})
|
159
|
+
data, status_code, headers = validate_authentication_results_with_http_info(validate_request, opts)
|
160
|
+
return data, status_code, headers
|
161
|
+
end
|
162
|
+
|
163
|
+
# Validate Authentication Results
|
164
|
+
# This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
|
165
|
+
# @param validate_request
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @return [Array<(RiskV1AuthenticationResultsPost201Response, Fixnum, Hash)>] RiskV1AuthenticationResultsPost201Response data, response status code and response headers
|
168
|
+
def validate_authentication_results_with_http_info(validate_request, opts = {})
|
169
|
+
|
170
|
+
if @api_client.config.debugging
|
171
|
+
begin
|
172
|
+
raise
|
173
|
+
@api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.validate_authentication_results ...'
|
174
|
+
rescue
|
175
|
+
puts 'Cannot write to log'
|
176
|
+
end
|
177
|
+
end
|
178
|
+
# verify the required parameter 'validate_request' is set
|
179
|
+
if @api_client.config.client_side_validation && validate_request.nil?
|
180
|
+
fail ArgumentError, "Missing the required parameter 'validate_request' when calling PayerAuthenticationApi.validate_authentication_results"
|
181
|
+
end
|
182
|
+
# resource path
|
183
|
+
local_var_path = 'risk/v1/authentication-results'
|
184
|
+
|
185
|
+
# query parameters
|
186
|
+
query_params = {}
|
187
|
+
|
188
|
+
# header parameters
|
189
|
+
header_params = {}
|
190
|
+
# HTTP header 'Accept' (if needed)
|
191
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
192
|
+
# HTTP header 'Content-Type'
|
193
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
194
|
+
|
195
|
+
# form parameters
|
196
|
+
form_params = {}
|
197
|
+
|
198
|
+
# http body (model)
|
199
|
+
post_body = @api_client.object_to_http_body(validate_request)
|
200
|
+
auth_names = []
|
201
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
202
|
+
:header_params => header_params,
|
203
|
+
:query_params => query_params,
|
204
|
+
:form_params => form_params,
|
205
|
+
:body => post_body,
|
206
|
+
:auth_names => auth_names,
|
207
|
+
:return_type => 'RiskV1AuthenticationResultsPost201Response')
|
208
|
+
if @api_client.config.debugging
|
209
|
+
begin
|
210
|
+
raise
|
211
|
+
@api_client.config.logger.debug "API called: PayerAuthenticationApi#validate_authentication_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
212
|
+
rescue
|
213
|
+
puts 'Cannot write to log'
|
214
|
+
end
|
215
|
+
end
|
216
|
+
return data, status_code, headers
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|