• 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/model/InvoicePaymentCollection.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.InvoicePaymentCollectionListParams;
11
import com.stripe.param.InvoicePaymentCollectionRetrieveParams;
12
import java.util.Map;
13

14
public class InvoicePaymentCollection extends StripeCollection<InvoicePayment> {
×
15
  /**
16
   * When retrieving an invoice, there is an includable payments property containing the first
17
   * handful of those items. There is also a URL where you can retrieve the full (paginated) list of
18
   * payments.
19
   */
20
  public InvoicePaymentCollection list(Map<String, Object> params) throws StripeException {
21
    return list(params, (RequestOptions) null);
×
22
  }
23

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

37
  /**
38
   * When retrieving an invoice, there is an includable payments property containing the first
39
   * handful of those items. There is also a URL where you can retrieve the full (paginated) list of
40
   * payments.
41
   */
42
  public InvoicePaymentCollection list(InvoicePaymentCollectionListParams params)
43
      throws StripeException {
44
    return list(params, (RequestOptions) null);
×
45
  }
46

47
  /**
48
   * When retrieving an invoice, there is an includable payments property containing the first
49
   * handful of those items. There is also a URL where you can retrieve the full (paginated) list of
50
   * payments.
51
   */
52
  public InvoicePaymentCollection list(
53
      InvoicePaymentCollectionListParams params, RequestOptions options) throws StripeException {
54
    String path = this.getUrl();
×
55
    ApiResource.checkNullTypedParams(path, params);
×
56
    ApiRequest request =
×
57
        new ApiRequest(
58
            BaseAddress.API,
59
            ApiResource.RequestMethod.GET,
60
            path,
61
            ApiRequestParams.paramsToMap(params),
×
62
            options);
UNCOV
63
    return getResponseGetter().request(request, InvoicePaymentCollection.class);
×
64
  }
65

66
  /** Retrieves the invoice payment with the given ID. */
67
  public InvoicePayment retrieve(String id) throws StripeException {
68
    return retrieve(id, (Map<String, Object>) null, (RequestOptions) null);
×
69
  }
70

71
  /** Retrieves the invoice payment with the given ID. */
72
  public InvoicePayment retrieve(String id, RequestOptions options) throws StripeException {
73
    return retrieve(id, (Map<String, Object>) null, options);
×
74
  }
75

76
  /** Retrieves the invoice payment with the given ID. */
77
  public InvoicePayment retrieve(String id, Map<String, Object> params, RequestOptions options)
78
      throws StripeException {
79
    String path = String.format("%s/%s", this.getUrl(), ApiResource.urlEncodeId(id));
×
80
    ApiRequest request =
×
81
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
UNCOV
82
    return getResponseGetter().request(request, InvoicePayment.class);
×
83
  }
84

85
  /** Retrieves the invoice payment with the given ID. */
86
  public InvoicePayment retrieve(
87
      String id, InvoicePaymentCollectionRetrieveParams params, RequestOptions options)
88
      throws StripeException {
89
    String path = String.format("%s/%s", this.getUrl(), ApiResource.urlEncodeId(id));
×
90
    ApiResource.checkNullTypedParams(path, params);
×
91
    ApiRequest request =
×
92
        new ApiRequest(
93
            BaseAddress.API,
94
            ApiResource.RequestMethod.GET,
95
            path,
96
            ApiRequestParams.paramsToMap(params),
×
97
            options);
UNCOV
98
    return getResponseGetter().request(request, InvoicePayment.class);
×
99
  }
100
}
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