• 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/SourceTransactionService.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.SourceTransaction;
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.SourceTransactionListParams;
16

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

22
  /** List source transactions for a given source. */
23
  public StripeCollection<SourceTransaction> list(String source, SourceTransactionListParams params)
24
      throws StripeException {
25
    return list(source, params, (RequestOptions) null);
×
26
  }
27
  /** List source transactions for a given source. */
28
  public StripeCollection<SourceTransaction> list(String source, RequestOptions options)
29
      throws StripeException {
30
    return list(source, (SourceTransactionListParams) null, options);
×
31
  }
32
  /** List source transactions for a given source. */
33
  public StripeCollection<SourceTransaction> list(String source) throws StripeException {
34
    return list(source, (SourceTransactionListParams) null, (RequestOptions) null);
×
35
  }
36
  /** List source transactions for a given source. */
37
  public StripeCollection<SourceTransaction> list(
38
      String source, SourceTransactionListParams params, RequestOptions options)
39
      throws StripeException {
40
    String path =
×
41
        String.format("/v1/sources/%s/source_transactions", ApiResource.urlEncodeId(source));
×
42
    ApiRequest request =
×
43
        new ApiRequest(
44
            BaseAddress.API,
45
            ApiResource.RequestMethod.GET,
46
            path,
47
            ApiRequestParams.paramsToMap(params),
×
48
            options);
UNCOV
49
    return this.request(request, new TypeToken<StripeCollection<SourceTransaction>>() {}.getType());
×
50
  }
51
}
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