• 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/QuoteComputedUpfrontLineItemsService.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.LineItem;
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.QuoteComputedUpfrontLineItemsListParams;
16

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

22
  /**
23
   * When retrieving a quote, there is an includable <a
24
   * href="https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items"><strong>computed.upfront.line_items</strong></a>
25
   * property containing the first handful of those items. There is also a URL where you can
26
   * retrieve the full (paginated) list of upfront line items.
27
   */
28
  public StripeCollection<LineItem> list(
29
      String quote, QuoteComputedUpfrontLineItemsListParams params) throws StripeException {
30
    return list(quote, params, (RequestOptions) null);
×
31
  }
32
  /**
33
   * When retrieving a quote, there is an includable <a
34
   * href="https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items"><strong>computed.upfront.line_items</strong></a>
35
   * property containing the first handful of those items. There is also a URL where you can
36
   * retrieve the full (paginated) list of upfront line items.
37
   */
38
  public StripeCollection<LineItem> list(String quote, RequestOptions options)
39
      throws StripeException {
40
    return list(quote, (QuoteComputedUpfrontLineItemsListParams) null, options);
×
41
  }
42
  /**
43
   * When retrieving a quote, there is an includable <a
44
   * href="https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items"><strong>computed.upfront.line_items</strong></a>
45
   * property containing the first handful of those items. There is also a URL where you can
46
   * retrieve the full (paginated) list of upfront line items.
47
   */
48
  public StripeCollection<LineItem> list(String quote) throws StripeException {
49
    return list(quote, (QuoteComputedUpfrontLineItemsListParams) null, (RequestOptions) null);
×
50
  }
51
  /**
52
   * When retrieving a quote, there is an includable <a
53
   * href="https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items"><strong>computed.upfront.line_items</strong></a>
54
   * property containing the first handful of those items. There is also a URL where you can
55
   * retrieve the full (paginated) list of upfront line items.
56
   */
57
  public StripeCollection<LineItem> list(
58
      String quote, QuoteComputedUpfrontLineItemsListParams params, RequestOptions options)
59
      throws StripeException {
60
    String path =
×
61
        String.format("/v1/quotes/%s/computed_upfront_line_items", ApiResource.urlEncodeId(quote));
×
62
    ApiRequest request =
×
63
        new ApiRequest(
64
            BaseAddress.API,
65
            ApiResource.RequestMethod.GET,
66
            path,
67
            ApiRequestParams.paramsToMap(params),
×
68
            options);
UNCOV
69
    return this.request(request, new TypeToken<StripeCollection<LineItem>>() {}.getType());
×
70
  }
71
}
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