public virtual Stream Pdf(string id, QuotePdfOptions options = null, RequestOptions requestOptions = null)
 {
     requestOptions = this.SetupRequestOptionsForPdfRequest(requestOptions);
     return(this.RequestStreaming(HttpMethod.Get, $"{this.InstanceUrl(id)}/pdf", options, requestOptions));
 }
 public virtual Task <Stream> PdfAsync(string id, QuotePdfOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     requestOptions = this.SetupRequestOptionsForPdfRequest(requestOptions);
     return(this.RequestStreamingAsync(HttpMethod.Get, $"{this.InstanceUrl(id)}/pdf", options, requestOptions, cancellationToken));
 }
        public QuoteServiceTest(
            StripeMockFixture stripeMockFixture,
            MockHttpClientFixture mockHttpClientFixture)
            : base(stripeMockFixture, mockHttpClientFixture)
        {
            this.service = new QuoteService(this.StripeClient);

            this.createOptions = new QuoteCreateOptions
            {
                Customer = "cus_123",
            };

            this.updateOptions = new QuoteUpdateOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.updateOptionsWithCurrentPeriodEnd = new QuoteUpdateOptions
            {
                SubscriptionData = new QuoteSubscriptionDataOptions
                {
                    EffectiveDate = QuoteSubscriptionDataEffectiveDate.CurrentPeriodEnd,
                },
            };

            this.updateOptionsWithDateTime = new QuoteUpdateOptions
            {
                SubscriptionData = new QuoteSubscriptionDataOptions
                {
                    EffectiveDate = System.DateTime.Now,
                },
            };

            this.listOptions = new QuoteListOptions
            {
                Limit = 1,
            };

            this.acceptOptions = new QuoteAcceptOptions
            {
            };

            this.cancelOptions = new QuoteCancelOptions
            {
            };

            this.finalizeOptions = new QuoteFinalizeOptions
            {
            };

            this.listLineItemsOptions = new QuoteListLineItemsOptions
            {
                Limit = 1,
            };

            this.listComputedUpfrontLineItemsOptions = new QuoteListComputedUpfrontLineItemsOptions
            {
                Limit = 1,
            };

            this.pdfOptions = new QuotePdfOptions
            {
            };
        }