csharp 关闭报价请求

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp 关闭报价请求相关的知识,希望对你有一定的参考价值。

        public CloseQuoteResponse CloseQuote(IOrganizationService service, EntityReference quote, int statuscode)
        {
            // Close the quote
            Entity quoteClose = new Entity("quoteclose");
            quoteClose.Attributes.Add("quoteid", new EntityReference("quote", quote.Id));
            quoteClose.Attributes.Add("subject", "Quote rejected.");

            CloseQuoteRequest closeQuoteRequest = new CloseQuoteRequest()
            {
                RequestName = "CloseQuote",
                QuoteClose = quoteClose,                
                Status = new OptionSetValue(statuscode)
            };

            return (CloseQuoteResponse)service.Execute(closeQuoteRequest);
        }

以上是关于csharp 关闭报价请求的主要内容,如果未能解决你的问题,请参考以下文章

php [请求报价] YITH WooCommerce请求报价和WooCommerce订阅

寻找盘中股票报价提要[关闭]

明白了:bash/sh处理未关闭的报价

最大化给定股票报价的利润[关闭]

有没有办法从机票网站上提取实时报价? [关闭]

免费 JSON 格式的股票报价 API(实时或历史)[关闭]