cybersource_rest_client 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- 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_payment_account_information_card.rb +20 -4
- 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_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_tokenized_card.rb +1 -1
- 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 +21 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +17 -1
- 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/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/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
- 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_order_information_amount_details.rb +1 -1
- 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 +4 -0
- metadata +7 -3
@@ -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
|
@@ -29,6 +29,9 @@ module CyberSource
|
|
29
29
|
# Bank Identification Number (BIN). This is the initial four to six numbers on a credit card account number. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response.
|
30
30
|
attr_accessor :prefix
|
31
31
|
|
32
|
+
# #### Visa Platform Connect This API field will contain the SHA 256 hashed value of PAN.
|
33
|
+
attr_accessor :hashed_number
|
34
|
+
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
36
|
def self.attribute_map
|
34
37
|
{
|
@@ -36,7 +39,8 @@ module CyberSource
|
|
36
39
|
:'expiration_month' => :'expirationMonth',
|
37
40
|
:'expiration_year' => :'expirationYear',
|
38
41
|
:'type' => :'type',
|
39
|
-
:'prefix' => :'prefix'
|
42
|
+
:'prefix' => :'prefix',
|
43
|
+
:'hashed_number' => :'hashedNumber'
|
40
44
|
}
|
41
45
|
end
|
42
46
|
|
@@ -47,7 +51,8 @@ module CyberSource
|
|
47
51
|
:'expiration_month' => :'String',
|
48
52
|
:'expiration_year' => :'String',
|
49
53
|
:'type' => :'String',
|
50
|
-
:'prefix' => :'String'
|
54
|
+
:'prefix' => :'String',
|
55
|
+
:'hashed_number' => :'String'
|
51
56
|
}
|
52
57
|
end
|
53
58
|
|
@@ -78,6 +83,10 @@ module CyberSource
|
|
78
83
|
if attributes.has_key?(:'prefix')
|
79
84
|
self.prefix = attributes[:'prefix']
|
80
85
|
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'hashedNumber')
|
88
|
+
self.hashed_number = attributes[:'hashedNumber']
|
89
|
+
end
|
81
90
|
end
|
82
91
|
|
83
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -111,6 +120,12 @@ module CyberSource
|
|
111
120
|
@prefix = prefix
|
112
121
|
end
|
113
122
|
|
123
|
+
# Custom attribute writer method with validation
|
124
|
+
# @param [Object] hashed_number Value to be assigned
|
125
|
+
def hashed_number=(hashed_number)
|
126
|
+
@hashed_number = hashed_number
|
127
|
+
end
|
128
|
+
|
114
129
|
# Checks equality by comparing each attribute.
|
115
130
|
# @param [Object] Object to be compared
|
116
131
|
def ==(o)
|
@@ -120,7 +135,8 @@ module CyberSource
|
|
120
135
|
expiration_month == o.expiration_month &&
|
121
136
|
expiration_year == o.expiration_year &&
|
122
137
|
type == o.type &&
|
123
|
-
prefix == o.prefix
|
138
|
+
prefix == o.prefix &&
|
139
|
+
hashed_number == o.hashed_number
|
124
140
|
end
|
125
141
|
|
126
142
|
# @see the `==` method
|
@@ -132,7 +148,7 @@ module CyberSource
|
|
132
148
|
# Calculates hash code according to all attributes.
|
133
149
|
# @return [Fixnum] Hash code
|
134
150
|
def hash
|
135
|
-
[suffix, expiration_month, expiration_year, type, prefix].hash
|
151
|
+
[suffix, expiration_month, expiration_year, type, prefix, hashed_number].hash
|
136
152
|
end
|
137
153
|
|
138
154
|
# Builds the object from hash
|
@@ -20,11 +20,15 @@ module CyberSource
|
|
20
20
|
# Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR7 - Position: 96-99 - Field: Response Data-Merchant Advice Code For processor-specific information, see the `auth_merchant_advice_code_raw` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
21
21
|
attr_accessor :code_raw
|
22
22
|
|
23
|
+
# #### Visa Platform Connect The field contains will contain the Account Name Request Result for zero amount Authorization request. Valid values are: 00 = Name Match Performed 01 = Name Match not Performed 02 = Name Match not supported
|
24
|
+
attr_accessor :name_match
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'code' => :'code',
|
27
|
-
:'code_raw' => :'codeRaw'
|
30
|
+
:'code_raw' => :'codeRaw',
|
31
|
+
:'name_match' => :'nameMatch'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ module CyberSource
|
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
34
38
|
:'code' => :'String',
|
35
|
-
:'code_raw' => :'String'
|
39
|
+
:'code_raw' => :'String',
|
40
|
+
:'name_match' => :'String'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -51,6 +56,10 @@ module CyberSource
|
|
51
56
|
if attributes.has_key?(:'codeRaw')
|
52
57
|
self.code_raw = attributes[:'codeRaw']
|
53
58
|
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'nameMatch')
|
61
|
+
self.name_match = attributes[:'nameMatch']
|
62
|
+
end
|
54
63
|
end
|
55
64
|
|
56
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -78,13 +87,20 @@ module CyberSource
|
|
78
87
|
@code_raw = code_raw
|
79
88
|
end
|
80
89
|
|
90
|
+
# Custom attribute writer method with validation
|
91
|
+
# @param [Object] name_match Value to be assigned
|
92
|
+
def name_match=(name_match)
|
93
|
+
@name_match = name_match
|
94
|
+
end
|
95
|
+
|
81
96
|
# Checks equality by comparing each attribute.
|
82
97
|
# @param [Object] Object to be compared
|
83
98
|
def ==(o)
|
84
99
|
return true if self.equal?(o)
|
85
100
|
self.class == o.class &&
|
86
101
|
code == o.code &&
|
87
|
-
code_raw == o.code_raw
|
102
|
+
code_raw == o.code_raw &&
|
103
|
+
name_match == o.name_match
|
88
104
|
end
|
89
105
|
|
90
106
|
# @see the `==` method
|
@@ -96,7 +112,7 @@ module CyberSource
|
|
96
112
|
# Calculates hash code according to all attributes.
|
97
113
|
# @return [Fixnum] Hash code
|
98
114
|
def hash
|
99
|
-
[code, code_raw].hash
|
115
|
+
[code, code_raw, name_match].hash
|
100
116
|
end
|
101
117
|
|
102
118
|
# Builds the object from hash
|