• 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/QuoteLineService.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.QuoteLine;
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.QuoteLineListParams;
16

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

22
  /**
23
   * Retrieves a paginated list of lines for a quote. These lines describe changes that will be used
24
   * to create new subscription schedules or update existing subscription schedules when the quote
25
   * is accepted.
26
   */
27
  public StripeCollection<QuoteLine> list(String quote, QuoteLineListParams params)
28
      throws StripeException {
29
    return list(quote, params, (RequestOptions) null);
×
30
  }
31
  /**
32
   * Retrieves a paginated list of lines for a quote. These lines describe changes that will be used
33
   * to create new subscription schedules or update existing subscription schedules when the quote
34
   * is accepted.
35
   */
36
  public StripeCollection<QuoteLine> list(String quote, RequestOptions options)
37
      throws StripeException {
38
    return list(quote, (QuoteLineListParams) null, options);
×
39
  }
40
  /**
41
   * Retrieves a paginated list of lines for a quote. These lines describe changes that will be used
42
   * to create new subscription schedules or update existing subscription schedules when the quote
43
   * is accepted.
44
   */
45
  public StripeCollection<QuoteLine> list(String quote) throws StripeException {
46
    return list(quote, (QuoteLineListParams) null, (RequestOptions) null);
×
47
  }
48
  /**
49
   * Retrieves a paginated list of lines for a quote. These lines describe changes that will be used
50
   * to create new subscription schedules or update existing subscription schedules when the quote
51
   * is accepted.
52
   */
53
  public StripeCollection<QuoteLine> list(
54
      String quote, QuoteLineListParams params, RequestOptions options) throws StripeException {
55
    String path = String.format("/v1/quotes/%s/lines", ApiResource.urlEncodeId(quote));
×
56
    ApiRequest request =
×
57
        new ApiRequest(
58
            BaseAddress.API,
59
            ApiResource.RequestMethod.GET,
60
            path,
61
            ApiRequestParams.paramsToMap(params),
×
62
            options);
UNCOV
63
    return this.request(request, new TypeToken<StripeCollection<QuoteLine>>() {}.getType());
×
64
  }
65
}
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