public static void execute() { AuthHeader authHeader = new AuthHeader(); HeaderUtil.loadHeader(authHeader); AccountServiceClient client = new AccountServiceClient("AccountService", "https://api.baidu.com/sem/nms/v2/AccountService"); AccountInfoType account = getAccountInfo(client, authHeader); }
public static AccountInfoType getAccountInfo(AccountServiceClient client, AuthHeader authHeader) { AccountInfoType response = null; ResHeader resHeader = client.getAccountInfo(authHeader, out response); Console.WriteLine("AccountService.getAccountInfo(): "); ObjectDumper.WriteResponse(resHeader, response); return(response); }
public static void getAccountInfo() { AccountServiceClient service = new AccountServiceClient(); AuthHeader authHeader = new AuthHeader(); HeaderUtil.loadHeader(authHeader); AccountInfoType accountInfo = null; ResHeader resHeader = service.getAccountInfo(authHeader, out accountInfo); Console.WriteLine("AccountService.getAccountInfo(): "); ObjectDumper.WriteResponse(resHeader, accountInfo); }
internal AccountInfoType HydrateCheckData(HpsCheck check) { var accountInfo = new AccountInfoType(); accountInfo.AccountNumber = check.AccountNumber; accountInfo.CheckNumber = check.CheckNumber; accountInfo.MICRData = check.MicrNumber; accountInfo.RoutingNumber = check.RoutingNumber; if (check.AccountType.HasValue) { accountInfo.AccountType = check.AccountType.Value; accountInfo.AccountTypeSpecified = true; } return(accountInfo); }