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
@@ -1,89 +1,89 @@
|
|
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 UserManagementSearchApi
|
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
|
-
# Search User Information
|
24
|
-
# This endpoint is to get all the user information depending on the filter criteria passed in request body.
|
25
|
-
# @param search_request
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [UmsV1UsersGet200Response]
|
28
|
-
def search_users(search_request, opts = {})
|
29
|
-
data, status_code, headers = search_users_with_http_info(search_request, opts)
|
30
|
-
return data, status_code, headers
|
31
|
-
end
|
32
|
-
|
33
|
-
# Search User Information
|
34
|
-
# This endpoint is to get all the user information depending on the filter criteria passed in request body.
|
35
|
-
# @param search_request
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(UmsV1UsersGet200Response, Fixnum, Hash)>] UmsV1UsersGet200Response data, response status code and response headers
|
38
|
-
def search_users_with_http_info(search_request, opts = {})
|
39
|
-
|
40
|
-
if @api_client.config.debugging
|
41
|
-
begin
|
42
|
-
raise
|
43
|
-
@api_client.config.logger.debug 'Calling API: UserManagementSearchApi.search_users ...'
|
44
|
-
rescue
|
45
|
-
puts 'Cannot write to log'
|
46
|
-
end
|
47
|
-
end
|
48
|
-
# verify the required parameter 'search_request' is set
|
49
|
-
if @api_client.config.client_side_validation && search_request.nil?
|
50
|
-
fail ArgumentError, "Missing the required parameter 'search_request' when calling UserManagementSearchApi.search_users"
|
51
|
-
end
|
52
|
-
# resource path
|
53
|
-
local_var_path = 'ums/v1/users/search'
|
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'])
|
64
|
-
|
65
|
-
# form parameters
|
66
|
-
form_params = {}
|
67
|
-
|
68
|
-
# http body (model)
|
69
|
-
post_body = @api_client.object_to_http_body(search_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 => 'UmsV1UsersGet200Response')
|
78
|
-
if @api_client.config.debugging
|
79
|
-
begin
|
80
|
-
raise
|
81
|
-
@api_client.config.logger.debug "API called: UserManagementSearchApi#search_users\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
|
-
end
|
89
|
-
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 UserManagementSearchApi
|
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
|
+
# Search User Information
|
24
|
+
# This endpoint is to get all the user information depending on the filter criteria passed in request body.
|
25
|
+
# @param search_request
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [UmsV1UsersGet200Response]
|
28
|
+
def search_users(search_request, opts = {})
|
29
|
+
data, status_code, headers = search_users_with_http_info(search_request, opts)
|
30
|
+
return data, status_code, headers
|
31
|
+
end
|
32
|
+
|
33
|
+
# Search User Information
|
34
|
+
# This endpoint is to get all the user information depending on the filter criteria passed in request body.
|
35
|
+
# @param search_request
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(UmsV1UsersGet200Response, Fixnum, Hash)>] UmsV1UsersGet200Response data, response status code and response headers
|
38
|
+
def search_users_with_http_info(search_request, opts = {})
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: UserManagementSearchApi.search_users ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
# verify the required parameter 'search_request' is set
|
49
|
+
if @api_client.config.client_side_validation && search_request.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'search_request' when calling UserManagementSearchApi.search_users"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = 'ums/v1/users/search'
|
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'])
|
64
|
+
|
65
|
+
# form parameters
|
66
|
+
form_params = {}
|
67
|
+
|
68
|
+
# http body (model)
|
69
|
+
post_body = @api_client.object_to_http_body(search_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 => 'UmsV1UsersGet200Response')
|
78
|
+
if @api_client.config.debugging
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: UserManagementSearchApi#search_users\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
|
+
end
|
89
|
+
end
|
@@ -1,154 +1,154 @@
|
|
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 VerificationApi
|
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
|
-
# Validate export compliance
|
24
|
-
# This call checks customer data against specified watch lists to ensure export compliance.
|
25
|
-
# @param validate_export_compliance_request
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [RiskV1ExportComplianceInquiriesPost201Response]
|
28
|
-
def validate_export_compliance(validate_export_compliance_request, opts = {})
|
29
|
-
data, status_code, headers = validate_export_compliance_with_http_info(validate_export_compliance_request, opts)
|
30
|
-
return data, status_code, headers
|
31
|
-
end
|
32
|
-
|
33
|
-
# Validate export compliance
|
34
|
-
# This call checks customer data against specified watch lists to ensure export compliance.
|
35
|
-
# @param validate_export_compliance_request
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(RiskV1ExportComplianceInquiriesPost201Response, Fixnum, Hash)>] RiskV1ExportComplianceInquiriesPost201Response data, response status code and response headers
|
38
|
-
def validate_export_compliance_with_http_info(validate_export_compliance_request, opts = {})
|
39
|
-
|
40
|
-
if @api_client.config.debugging
|
41
|
-
begin
|
42
|
-
raise
|
43
|
-
@api_client.config.logger.debug 'Calling API: VerificationApi.validate_export_compliance ...'
|
44
|
-
rescue
|
45
|
-
puts 'Cannot write to log'
|
46
|
-
end
|
47
|
-
end
|
48
|
-
# verify the required parameter 'validate_export_compliance_request' is set
|
49
|
-
if @api_client.config.client_side_validation && validate_export_compliance_request.nil?
|
50
|
-
fail ArgumentError, "Missing the required parameter 'validate_export_compliance_request' when calling VerificationApi.validate_export_compliance"
|
51
|
-
end
|
52
|
-
# resource path
|
53
|
-
local_var_path = 'risk/v1/export-compliance-inquiries'
|
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(validate_export_compliance_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 => 'RiskV1ExportComplianceInquiriesPost201Response')
|
78
|
-
if @api_client.config.debugging
|
79
|
-
begin
|
80
|
-
raise
|
81
|
-
@api_client.config.logger.debug "API called: VerificationApi#validate_export_compliance\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
|
-
# Verify customer address
|
89
|
-
# This call verifies that the customer address submitted is valid.
|
90
|
-
# @param verify_customer_address_request
|
91
|
-
# @param [Hash] opts the optional parameters
|
92
|
-
# @return [RiskV1AddressVerificationsPost201Response]
|
93
|
-
def verify_customer_address(verify_customer_address_request, opts = {})
|
94
|
-
data, status_code, headers = verify_customer_address_with_http_info(verify_customer_address_request, opts)
|
95
|
-
return data, status_code, headers
|
96
|
-
end
|
97
|
-
|
98
|
-
# Verify customer address
|
99
|
-
# This call verifies that the customer address submitted is valid.
|
100
|
-
# @param verify_customer_address_request
|
101
|
-
# @param [Hash] opts the optional parameters
|
102
|
-
# @return [Array<(RiskV1AddressVerificationsPost201Response, Fixnum, Hash)>] RiskV1AddressVerificationsPost201Response data, response status code and response headers
|
103
|
-
def verify_customer_address_with_http_info(verify_customer_address_request, opts = {})
|
104
|
-
|
105
|
-
if @api_client.config.debugging
|
106
|
-
begin
|
107
|
-
raise
|
108
|
-
@api_client.config.logger.debug 'Calling API: VerificationApi.verify_customer_address ...'
|
109
|
-
rescue
|
110
|
-
puts 'Cannot write to log'
|
111
|
-
end
|
112
|
-
end
|
113
|
-
# verify the required parameter 'verify_customer_address_request' is set
|
114
|
-
if @api_client.config.client_side_validation && verify_customer_address_request.nil?
|
115
|
-
fail ArgumentError, "Missing the required parameter 'verify_customer_address_request' when calling VerificationApi.verify_customer_address"
|
116
|
-
end
|
117
|
-
# resource path
|
118
|
-
local_var_path = 'risk/v1/address-verifications'
|
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(verify_customer_address_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 => 'RiskV1AddressVerificationsPost201Response')
|
143
|
-
if @api_client.config.debugging
|
144
|
-
begin
|
145
|
-
raise
|
146
|
-
@api_client.config.logger.debug "API called: VerificationApi#verify_customer_address\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
|
-
end
|
154
|
-
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 VerificationApi
|
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
|
+
# Validate export compliance
|
24
|
+
# This call checks customer data against specified watch lists to ensure export compliance.
|
25
|
+
# @param validate_export_compliance_request
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [RiskV1ExportComplianceInquiriesPost201Response]
|
28
|
+
def validate_export_compliance(validate_export_compliance_request, opts = {})
|
29
|
+
data, status_code, headers = validate_export_compliance_with_http_info(validate_export_compliance_request, opts)
|
30
|
+
return data, status_code, headers
|
31
|
+
end
|
32
|
+
|
33
|
+
# Validate export compliance
|
34
|
+
# This call checks customer data against specified watch lists to ensure export compliance.
|
35
|
+
# @param validate_export_compliance_request
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(RiskV1ExportComplianceInquiriesPost201Response, Fixnum, Hash)>] RiskV1ExportComplianceInquiriesPost201Response data, response status code and response headers
|
38
|
+
def validate_export_compliance_with_http_info(validate_export_compliance_request, opts = {})
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: VerificationApi.validate_export_compliance ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
# verify the required parameter 'validate_export_compliance_request' is set
|
49
|
+
if @api_client.config.client_side_validation && validate_export_compliance_request.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'validate_export_compliance_request' when calling VerificationApi.validate_export_compliance"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = 'risk/v1/export-compliance-inquiries'
|
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(validate_export_compliance_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 => 'RiskV1ExportComplianceInquiriesPost201Response')
|
78
|
+
if @api_client.config.debugging
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: VerificationApi#validate_export_compliance\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
|
+
# Verify customer address
|
89
|
+
# This call verifies that the customer address submitted is valid.
|
90
|
+
# @param verify_customer_address_request
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [RiskV1AddressVerificationsPost201Response]
|
93
|
+
def verify_customer_address(verify_customer_address_request, opts = {})
|
94
|
+
data, status_code, headers = verify_customer_address_with_http_info(verify_customer_address_request, opts)
|
95
|
+
return data, status_code, headers
|
96
|
+
end
|
97
|
+
|
98
|
+
# Verify customer address
|
99
|
+
# This call verifies that the customer address submitted is valid.
|
100
|
+
# @param verify_customer_address_request
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [Array<(RiskV1AddressVerificationsPost201Response, Fixnum, Hash)>] RiskV1AddressVerificationsPost201Response data, response status code and response headers
|
103
|
+
def verify_customer_address_with_http_info(verify_customer_address_request, opts = {})
|
104
|
+
|
105
|
+
if @api_client.config.debugging
|
106
|
+
begin
|
107
|
+
raise
|
108
|
+
@api_client.config.logger.debug 'Calling API: VerificationApi.verify_customer_address ...'
|
109
|
+
rescue
|
110
|
+
puts 'Cannot write to log'
|
111
|
+
end
|
112
|
+
end
|
113
|
+
# verify the required parameter 'verify_customer_address_request' is set
|
114
|
+
if @api_client.config.client_side_validation && verify_customer_address_request.nil?
|
115
|
+
fail ArgumentError, "Missing the required parameter 'verify_customer_address_request' when calling VerificationApi.verify_customer_address"
|
116
|
+
end
|
117
|
+
# resource path
|
118
|
+
local_var_path = 'risk/v1/address-verifications'
|
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(verify_customer_address_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 => 'RiskV1AddressVerificationsPost201Response')
|
143
|
+
if @api_client.config.debugging
|
144
|
+
begin
|
145
|
+
raise
|
146
|
+
@api_client.config.logger.debug "API called: VerificationApi#verify_customer_address\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
|
+
end
|
154
|
+
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
|