• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-java / #16380

30 Aug 2024 07:54PM UTC coverage: 12.882% (-0.004%) from 12.886%
#16380

push

github

web-flow
Merge from master after the changes to not pass api_mode from individual methods (#1857)

* Generate SDK for OpenAPI spec version 1230 (#1856)

* Bump version to 26.9.0

* No need for APIMode to be passed around from individual API methods (#1855)

* Generated code

* Update the code around raw request

* Update the v2 tests to use v2 path

16 of 23 new or added lines in 7 files covered. (69.57%)

706 existing lines in 213 files now uncovered.

18468 of 143365 relevant lines covered (12.88%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/stripe/service/QuotePreviewInvoiceService.java
1
// File generated from our OpenAPI spec
2
package com.stripe.service;
3

4
import com.google.gson.reflect.TypeToken;
5
import com.stripe.exception.StripeException;
6
import com.stripe.model.QuotePreviewInvoice;
7
import com.stripe.model.StripeCollection;
8
import com.stripe.net.ApiRequest;
9
import com.stripe.net.ApiRequestParams;
10
import com.stripe.net.ApiResource;
11
import com.stripe.net.ApiService;
12
import com.stripe.net.BaseAddress;
13
import com.stripe.net.RequestOptions;
14
import com.stripe.net.StripeResponseGetter;
15
import com.stripe.param.QuotePreviewInvoiceListParams;
16

17
public final class QuotePreviewInvoiceService extends ApiService {
18
  public QuotePreviewInvoiceService(StripeResponseGetter responseGetter) {
19
    super(responseGetter);
×
20
  }
×
21

22
  /** Preview the invoices that would be generated by accepting the quote. */
23
  public StripeCollection<QuotePreviewInvoice> list(
24
      String quote, QuotePreviewInvoiceListParams params) throws StripeException {
25
    return list(quote, params, (RequestOptions) null);
×
26
  }
27
  /** Preview the invoices that would be generated by accepting the quote. */
28
  public StripeCollection<QuotePreviewInvoice> list(String quote, RequestOptions options)
29
      throws StripeException {
30
    return list(quote, (QuotePreviewInvoiceListParams) null, options);
×
31
  }
32
  /** Preview the invoices that would be generated by accepting the quote. */
33
  public StripeCollection<QuotePreviewInvoice> list(String quote) throws StripeException {
34
    return list(quote, (QuotePreviewInvoiceListParams) null, (RequestOptions) null);
×
35
  }
36
  /** Preview the invoices that would be generated by accepting the quote. */
37
  public StripeCollection<QuotePreviewInvoice> list(
38
      String quote, QuotePreviewInvoiceListParams params, RequestOptions options)
39
      throws StripeException {
40
    String path = String.format("/v1/quotes/%s/preview_invoices", ApiResource.urlEncodeId(quote));
×
41
    ApiRequest request =
×
42
        new ApiRequest(
43
            BaseAddress.API,
44
            ApiResource.RequestMethod.GET,
45
            path,
46
            ApiRequestParams.paramsToMap(params),
×
47
            options);
UNCOV
48
    return this.request(
×
49
        request, new TypeToken<StripeCollection<QuotePreviewInvoice>>() {}.getType());
×
50
  }
51
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc