• 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

63.64
/src/main/java/com/stripe/model/CreditNoteLineItemCollection.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.CreditNoteLineItemCollectionListParams;
11
import java.util.Map;
12

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

23
  /**
24
   * When retrieving a credit note, you’ll get a <strong>lines</strong> property containing the
25
   * first handful of those items. There is also a URL where you can retrieve the full (paginated)
26
   * list of line items.
27
   */
28
  public CreditNoteLineItemCollection 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, CreditNoteLineItemCollection.class);
×
34
  }
35

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

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