• 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

9.09
/src/main/java/com/stripe/model/InvoiceLineItemCollection.java
1
// File generated from our OpenAPI spec
2
package com.stripe.model;
3

4
import com.stripe.exception.StripeException;
5
import com.stripe.net.ApiRequest;
6
import com.stripe.net.ApiRequestParams;
7
import com.stripe.net.ApiResource;
8
import com.stripe.net.BaseAddress;
9
import com.stripe.net.RequestOptions;
10
import com.stripe.param.InvoiceLineItemCollectionListParams;
11
import java.util.Map;
12

13
public class InvoiceLineItemCollection extends StripeCollection<InvoiceLineItem> {
1✔
14
  /**
15
   * When retrieving an invoice, you’ll get a <strong>lines</strong> property containing the total
16
   * count of line items and the first handful of those items. There is also a URL where you can
17
   * retrieve the full (paginated) list of line items.
18
   */
19
  public InvoiceLineItemCollection list(Map<String, Object> params) throws StripeException {
20
    return list(params, (RequestOptions) null);
×
21
  }
22

23
  /**
24
   * When retrieving an invoice, you’ll get a <strong>lines</strong> property containing the total
25
   * count of line items and the first handful of those items. There is also a URL where you can
26
   * retrieve the full (paginated) list of line items.
27
   */
28
  public InvoiceLineItemCollection list(Map<String, Object> params, RequestOptions options)
29
      throws StripeException {
30
    String path = this.getUrl();
×
31
    ApiRequest request =
×
32
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
UNCOV
33
    return getResponseGetter().request(request, InvoiceLineItemCollection.class);
×
34
  }
35

36
  /**
37
   * When retrieving an invoice, you’ll get a <strong>lines</strong> property containing the total
38
   * count of line items and the first handful of those items. There is also a URL where you can
39
   * retrieve the full (paginated) list of line items.
40
   */
41
  public InvoiceLineItemCollection list(InvoiceLineItemCollectionListParams params)
42
      throws StripeException {
43
    return list(params, (RequestOptions) null);
×
44
  }
45

46
  /**
47
   * When retrieving an invoice, you’ll get a <strong>lines</strong> property containing the total
48
   * count of line items and the first handful of those items. There is also a URL where you can
49
   * retrieve the full (paginated) list of line items.
50
   */
51
  public InvoiceLineItemCollection list(
52
      InvoiceLineItemCollectionListParams params, RequestOptions options) throws StripeException {
53
    String path = this.getUrl();
×
54
    ApiResource.checkNullTypedParams(path, params);
×
55
    ApiRequest request =
×
56
        new ApiRequest(
57
            BaseAddress.API,
58
            ApiResource.RequestMethod.GET,
59
            path,
60
            ApiRequestParams.paramsToMap(params),
×
61
            options);
UNCOV
62
    return getResponseGetter().request(request, InvoiceLineItemCollection.class);
×
63
  }
64
}
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