static void AccountValidationExample(Configuration configuration) { // See https://docs.transferzero.com/docs/additional-features/#bank-account-name-enquiry // for more information on how this feature can be used AccountValidationRequest accountValidationRequest = new AccountValidationRequest( bankAccount: "90400999999999", bankCode: "190100", country: AccountValidationRequest.CountryEnum.GH, currency: AccountValidationRequest.CurrencyEnum.GHS, method: AccountValidationRequest.MethodEnum.Bank ); AccountValidationApi accountValidationApi = new AccountValidationApi(configuration); try { var result = accountValidationApi.PostAccountValidations(accountValidationRequest); System.Console.WriteLine(result); } catch (ApiException e) { if (e.IsValidationError) { var result = e.ParseObject <AccountValidationResponse>(); System.Console.WriteLine(result); } else { throw e; } } }
public void Init() { instance = new AccountValidationApi(); }