• 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/MeterEventService.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.MeterEvent;
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.v2.billing.MeterEventCreateParams;
14

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

20
  /**
21
   * Creates a meter event. Events are validated synchronously, but are processed asynchronously.
22
   * Supports up to 1,000 events per second in livemode. For higher rate-limits, please use meter
23
   * event streams instead.
24
   */
25
  public MeterEvent create(MeterEventCreateParams params) throws StripeException {
NEW
26
    return create(params, (RequestOptions) null);
×
27
  }
28
  /**
29
   * Creates a meter event. Events are validated synchronously, but are processed asynchronously.
30
   * Supports up to 1,000 events per second in livemode. For higher rate-limits, please use meter
31
   * event streams instead.
32
   */
33
  public MeterEvent create(MeterEventCreateParams params, RequestOptions options)
34
      throws StripeException {
NEW
35
    String path = "/v2/billing/meter_events";
×
NEW
36
    ApiRequest request =
×
37
        new ApiRequest(
38
            BaseAddress.API,
39
            ApiResource.RequestMethod.POST,
40
            path,
NEW
41
            ApiRequestParams.paramsToMap(params),
×
42
            options);
NEW
43
    return this.request(request, MeterEvent.class);
×
44
  }
45
}
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