• 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/BalanceService.java
1
// File generated from our OpenAPI spec
2
package com.stripe.service;
3

4
import com.stripe.exception.StripeException;
5
import com.stripe.model.Balance;
6
import com.stripe.net.ApiRequest;
7
import com.stripe.net.ApiRequestParams;
8
import com.stripe.net.ApiResource;
9
import com.stripe.net.ApiService;
10
import com.stripe.net.BaseAddress;
11
import com.stripe.net.RequestOptions;
12
import com.stripe.net.StripeResponseGetter;
13
import com.stripe.param.BalanceRetrieveParams;
14

15
public final class BalanceService extends ApiService {
16
  public BalanceService(StripeResponseGetter responseGetter) {
17
    super(responseGetter);
×
18
  }
×
19

20
  /**
21
   * Retrieves the current account balance, based on the authentication that was used to make the
22
   * request. For a sample request, see <a
23
   * href="https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances">Accounting
24
   * for negative balances</a>.
25
   */
26
  public Balance retrieve(BalanceRetrieveParams params) throws StripeException {
27
    return retrieve(params, (RequestOptions) null);
×
28
  }
29
  /**
30
   * Retrieves the current account balance, based on the authentication that was used to make the
31
   * request. For a sample request, see <a
32
   * href="https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances">Accounting
33
   * for negative balances</a>.
34
   */
35
  public Balance retrieve(RequestOptions options) throws StripeException {
36
    return retrieve((BalanceRetrieveParams) null, options);
×
37
  }
38
  /**
39
   * Retrieves the current account balance, based on the authentication that was used to make the
40
   * request. For a sample request, see <a
41
   * href="https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances">Accounting
42
   * for negative balances</a>.
43
   */
44
  public Balance retrieve() throws StripeException {
45
    return retrieve((BalanceRetrieveParams) null, (RequestOptions) null);
×
46
  }
47
  /**
48
   * Retrieves the current account balance, based on the authentication that was used to make the
49
   * request. For a sample request, see <a
50
   * href="https://stripe.com/docs/connect/account-balances#accounting-for-negative-balances">Accounting
51
   * for negative balances</a>.
52
   */
53
  public Balance retrieve(BalanceRetrieveParams params, RequestOptions options)
54
      throws StripeException {
55
    String path = "/v1/balance";
×
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, Balance.class);
×
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