<commit_before>﻿using System;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;

namespace net.authorize.sample
{
    public class DebitBankAccount
    {
        public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, decimal Amount)
        {
            Console.WriteLine("Debit Bank Account Transaction");

            ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX;

            // define the merchant information (authentication / transaction id)
            ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
            {
                name = ApiLoginID,
                ItemElementName = ItemChoiceType.transactionKey,
                Item = ApiTransactionKey
            };

            var bankAccount = new bankAccountType
            {
                accountType     = bankAccountTypeEnum.checking,
                routingNumber   = "121042882",
                accountNumber   = "1234567890",
                nameOnAccount   = "<NAME>",
                echeckType      = echeckTypeEnum.WEB,   // change based on how you take the payment (web, telephone, etc)
                bankName        = "Wells Fargo Bank NA",
                // checkNumber     = "101"                 // needed if echeckType is "ARC" or "BOC"
            };

            // standard api call to retrieve response<commit_msg>Update DebitBankAccount.cs<commit_after>﻿using System;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;

namespace net.authorize.sample
{
    public class DebitBankAccount
    {
        public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, decimal Amount)
        {
            Console.WriteLine("Debit Bank Account Transaction");

            ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX;

            // define the merchant information (authentication / transaction id)
            ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
            {
                name = ApiLoginID,
                ItemElementName = ItemChoiceType.transactionKey,
                Item = ApiTransactionKey
            };

            var bankAccount = new bankAccountType
            {
                accountType     = bankAccountTypeEnum.checking,
                routingNumber   = "125000105",
                accountNumber   = "1234567890",
                nameOnAccount   = "<NAME>",
                echeckType      = echeckTypeEnum.WEB,   // change based on how you take the payment (web, telephone, etc)
                bankName        = "Wells Fargo Bank NA",
                // checkNumber     = "101"                 // needed if echeckType is "ARC" or "BOC"
            };

            // standard api call to retrieve response
{'fraction_non_alphanumeric': 0.07211988760536997, 'fraction_numerical': 0.014361536059943803, 'mean_word_length': 2.138099902056807, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6945748', 'n_tokens_mistral': 833, 'n_tokens_neox': 780, 'n_words': 194}