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

stripe / stripe-java / #14673

16 Aug 2023 11:12PM UTC coverage: 14.689% (+3.7%) from 11.034%
#14673

push

github-actions

web-flow
Merge pull request #1633 from stripe/merge-upstream

12954 of 12954 new or added lines in 361 files covered. (100.0%)

15225 of 103649 relevant lines covered (14.69%)

0.15 hits per line

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

0.0
/src/main/java/com/stripe/service/QuotepreviewInvoicesService.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.Invoice;
7
import com.stripe.model.StripeCollection;
8
import com.stripe.net.ApiMode;
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.QuotepreviewInvoicesListParams;
16

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

22
  /** Preview the invoices that would be generated by accepting the quote. */
23
  public StripeCollection<Invoice> list(String quote, QuotepreviewInvoicesListParams params)
24
      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<Invoice> list(String quote, RequestOptions options)
29
      throws StripeException {
30
    return list(quote, (QuotepreviewInvoicesListParams) null, options);
×
31
  }
32
  /** Preview the invoices that would be generated by accepting the quote. */
33
  public StripeCollection<Invoice> list(String quote) throws StripeException {
34
    return list(quote, (QuotepreviewInvoicesListParams) null, (RequestOptions) null);
×
35
  }
36
  /** Preview the invoices that would be generated by accepting the quote. */
37
  public StripeCollection<Invoice> list(
38
      String quote, QuotepreviewInvoicesListParams params, RequestOptions options)
39
      throws StripeException {
40
    String path = String.format("/v1/quotes/%s/preview_invoices", ApiResource.urlEncodeId(quote));
×
41
    return getResponseGetter()
×
42
        .request(
×
43
            BaseAddress.API,
44
            ApiResource.RequestMethod.GET,
45
            path,
46
            ApiRequestParams.paramsToMap(params),
×
47
            new TypeToken<StripeCollection<Invoice>>() {}.getType(),
×
48
            options,
49
            ApiMode.V1);
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

© 2025 Coveralls, Inc