• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-java / #16493

03 Oct 2024 07:15PM UTC coverage: 12.942% (+0.08%) from 12.864%
#16493

push

github

web-flow
Merge Stripe-java v27.0.0 to beta branch (#1888)

409 of 1651 new or added lines in 88 files covered. (24.77%)

31 existing lines in 7 files now uncovered.

18773 of 145050 relevant lines covered (12.94%)

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

4
import com.stripe.exception.StripeException;
5
import com.stripe.model.v2.billing.MeterEventSession;
6
import com.stripe.net.ApiRequest;
7
import com.stripe.net.ApiResource;
8
import com.stripe.net.ApiService;
9
import com.stripe.net.BaseAddress;
10
import com.stripe.net.RequestOptions;
11
import com.stripe.net.StripeResponseGetter;
12

13
public final class MeterEventSessionService extends ApiService {
14
  public MeterEventSessionService(StripeResponseGetter responseGetter) {
NEW
15
    super(responseGetter);
×
NEW
16
  }
×
17

18
  /**
19
   * Creates a meter event session to send usage on the high-throughput meter event stream.
20
   * Authentication tokens are only valid for 15 minutes, so you will need to create a new meter
21
   * event session when your token expires.
22
   */
23
  public MeterEventSession create() throws StripeException {
NEW
24
    return create((RequestOptions) null);
×
25
  }
26
  /**
27
   * Creates a meter event session to send usage on the high-throughput meter event stream.
28
   * Authentication tokens are only valid for 15 minutes, so you will need to create a new meter
29
   * event session when your token expires.
30
   */
31
  public MeterEventSession create(RequestOptions options) throws StripeException {
NEW
32
    String path = "/v2/billing/meter_event_session";
×
NEW
33
    ApiRequest request =
×
34
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, null, options);
NEW
35
    return this.request(request, MeterEventSession.class);
×
36
  }
37
}
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