Class: CyberSource::PayerAuthenticationApi
- Inherits:
-
Object
- Object
- CyberSource::PayerAuthenticationApi
- Defined in:
- lib/cybersource_rest_client/api/payer_authentication_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#check_payer_auth_enrollment(check_payer_auth_enrollment_request, opts = {}) ⇒ RiskV1AuthenticationsPost201Response
Check payer auth enrollment This call verifies that the card is enrolled in a card authentication program.
-
#check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_request, opts = {}) ⇒ Array<(RiskV1AuthenticationsPost201Response, Fixnum, Hash)>
Check payer auth enrollment This call verifies that the card is enrolled in a card authentication program.
-
#initialize(api_client = ApiClient.default, config) ⇒ PayerAuthenticationApi
constructor
A new instance of PayerAuthenticationApi.
-
#validate_authentication_results(request, opts = {}) ⇒ RiskV1AuthenticationResultsPost201Response
Validate authentication results This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
-
#validate_authentication_results_with_http_info(request, opts = {}) ⇒ Array<(RiskV1AuthenticationResultsPost201Response, Fixnum, Hash)>
Validate authentication results This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
Constructor Details
#initialize(api_client = ApiClient.default, config) ⇒ PayerAuthenticationApi
Returns a new instance of PayerAuthenticationApi.
19 20 21 22 |
# File 'lib/cybersource_rest_client/api/payer_authentication_api.rb', line 19 def initialize(api_client = ApiClient.default, config) @api_client = api_client @api_client.set_configuration(config) end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/cybersource_rest_client/api/payer_authentication_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#check_payer_auth_enrollment(check_payer_auth_enrollment_request, opts = {}) ⇒ RiskV1AuthenticationsPost201Response
Check payer auth enrollment This call verifies that the card is enrolled in a card authentication program.
28 29 30 31 |
# File 'lib/cybersource_rest_client/api/payer_authentication_api.rb', line 28 def check_payer_auth_enrollment(check_payer_auth_enrollment_request, opts = {}) data, status_code, headers = check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_request, opts) return data, status_code, headers end |
#check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_request, opts = {}) ⇒ Array<(RiskV1AuthenticationsPost201Response, Fixnum, Hash)>
Check payer auth enrollment This call verifies that the card is enrolled in a card authentication program.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/cybersource_rest_client/api/payer_authentication_api.rb', line 38 def check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_request, opts = {}) if @api_client.config.debugging begin raise @api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.check_payer_auth_enrollment ...' rescue puts 'Cannot write to log' end end # verify the required parameter 'check_payer_auth_enrollment_request' is set if @api_client.config.client_side_validation && check_payer_auth_enrollment_request.nil? fail ArgumentError, "Missing the required parameter 'check_payer_auth_enrollment_request' when calling PayerAuthenticationApi.check_payer_auth_enrollment" end # resource path local_var_path = 'risk/v1/authentications' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(check_payer_auth_enrollment_request) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RiskV1AuthenticationsPost201Response') if @api_client.config.debugging begin raise @api_client.config.logger.debug "API called: PayerAuthenticationApi#check_payer_auth_enrollment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" rescue puts 'Cannot write to log' end end return data, status_code, headers end |
#validate_authentication_results(request, opts = {}) ⇒ RiskV1AuthenticationResultsPost201Response
Validate authentication results This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
93 94 95 96 |
# File 'lib/cybersource_rest_client/api/payer_authentication_api.rb', line 93 def validate_authentication_results(request, opts = {}) data, status_code, headers = validate_authentication_results_with_http_info(request, opts) return data, status_code, headers end |
#validate_authentication_results_with_http_info(request, opts = {}) ⇒ Array<(RiskV1AuthenticationResultsPost201Response, Fixnum, Hash)>
Validate authentication results This call retrieves and validates the authentication results from issuer and allows the merchant to proceed with processing the payment.
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/cybersource_rest_client/api/payer_authentication_api.rb', line 103 def validate_authentication_results_with_http_info(request, opts = {}) if @api_client.config.debugging begin raise @api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.validate_authentication_results ...' rescue puts 'Cannot write to log' end end # verify the required parameter 'request' is set if @api_client.config.client_side_validation && request.nil? fail ArgumentError, "Missing the required parameter 'request' when calling PayerAuthenticationApi.validate_authentication_results" end # resource path local_var_path = 'risk/v1/authentication-results' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RiskV1AuthenticationResultsPost201Response') if @api_client.config.debugging begin raise @api_client.config.logger.debug "API called: PayerAuthenticationApi#validate_authentication_results\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" rescue puts 'Cannot write to log' end end return data, status_code, headers end |