Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }