Class: CyberSource::BankAccountValidationApi
- Inherits:
-
Object
- Object
- CyberSource::BankAccountValidationApi
- Defined in:
- lib/cybersource_rest_client/api/bank_account_validation_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#bank_account_validation_request(account_validations_request, opts = {}) ⇒ InlineResponse20014
Visa Bank Account Validation Service The Visa Bank Account Validation Service is a new standalone product designed to validate customer’s routing and bank account number combination for ACH transactions.
-
#bank_account_validation_request_with_http_info(account_validations_request, opts = {}) ⇒ Array<(InlineResponse20014, Fixnum, Hash)>
Visa Bank Account Validation Service The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions.
-
#initialize(api_client = ApiClient.default, config) ⇒ BankAccountValidationApi
constructor
A new instance of BankAccountValidationApi.
Constructor Details
#initialize(api_client = ApiClient.default, config) ⇒ BankAccountValidationApi
Returns a new instance of BankAccountValidationApi.
18 19 20 21 |
# File 'lib/cybersource_rest_client/api/bank_account_validation_api.rb', line 18 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.
16 17 18 |
# File 'lib/cybersource_rest_client/api/bank_account_validation_api.rb', line 16 def api_client @api_client end |
Instance Method Details
#bank_account_validation_request(account_validations_request, opts = {}) ⇒ InlineResponse20014
Visa Bank Account Validation Service The Visa Bank Account Validation Service is a new standalone product designed to validate customer’s routing and bank account number combination for ACH transactions. Merchant’s can use this standalone product to validate their customer’s account prior to processing an ACH transaction against the customer’s account to comply with Nacha’s account validation mandate for Web-debit transactions.
DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested (“Beta Product”) solely for the purpose of evaluating the functionality or marketability of the Beta Product (a “Beta Evaluation”). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer’s participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period (“Beta Product Form”). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer’s use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided “AS IS” and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR © FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
30 31 32 33 |
# File 'lib/cybersource_rest_client/api/bank_account_validation_api.rb', line 30 def bank_account_validation_request(account_validations_request, opts = {}) data, status_code, headers = bank_account_validation_request_with_http_info(account_validations_request, opts) return data, status_code, headers end |
#bank_account_validation_request_with_http_info(account_validations_request, opts = {}) ⇒ Array<(InlineResponse20014, Fixnum, Hash)>
Visa Bank Account Validation Service The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions.
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 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/cybersource_rest_client/api/bank_account_validation_api.rb', line 40 def bank_account_validation_request_with_http_info(account_validations_request, opts = {}) if @api_client.config.debugging begin raise @api_client.config.logger.debug 'Calling API: BankAccountValidationApi.bank_account_validation_request ...' rescue puts 'Cannot write to log' end end # verify the required parameter 'account_validations_request' is set if @api_client.config.client_side_validation && account_validations_request.nil? fail ArgumentError, "Missing the required parameter 'account_validations_request' when calling BankAccountValidationApi.bank_account_validation_request" end # resource path local_var_path = 'bavs/v1/account-validations' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/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(account_validations_request) sdk_tracker = SdkTracker.new post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AccountValidationsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) inbound_mle_status = "mandatory" if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["bank_account_validation_request","bank_account_validation_request_with_http_info"]) begin post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) rescue raise end end 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 => 'InlineResponse20014') if @api_client.config.debugging begin raise @api_client.config.logger.debug "API called: BankAccountValidationApi#bank_account_validation_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" rescue puts 'Cannot write to log' end end return data, status_code, headers end |