• 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

90.91
/src/main/java/com/stripe/model/v2/EventDataClassLookup.java
1
// File generated from our OpenAPI spec
2
package com.stripe.model.v2;
3

4
import com.stripe.model.StripeObject;
5
import java.util.HashMap;
6
import java.util.Map;
7

8
/**
9
 * Event data class look up used in event deserialization. The key to look up is `object` string of
10
 * the model.
11
 *
12
 * <p>For internal use by Stripe SDK only.
13
 */
NEW
14
public final class EventDataClassLookup {
×
15
  public static final Map<String, Class<? extends StripeObject>> classLookup = new HashMap<>();
1✔
16
  public static final Map<String, Class<? extends Event>> eventClassLookup = new HashMap<>();
1✔
17

18
  static {
19
    classLookup.put("billing.meter", com.stripe.model.billing.Meter.class);
1✔
20

21
    classLookup.put("billing.meter_event", com.stripe.model.v2.billing.MeterEvent.class);
1✔
22
    classLookup.put(
1✔
23
        "billing.meter_event_adjustment", com.stripe.model.v2.billing.MeterEventAdjustment.class);
24
    classLookup.put(
1✔
25
        "billing.meter_event_session", com.stripe.model.v2.billing.MeterEventSession.class);
26

27
    classLookup.put("v2.core.event", com.stripe.model.v2.Event.class);
1✔
28

29
    eventClassLookup.put(
1✔
30
        "v1.billing.meter.error_report_triggered",
31
        com.stripe.events.V1BillingMeterErrorReportTriggeredEvent.class);
32
    eventClassLookup.put(
1✔
33
        "v1.billing.meter.no_meter_found", com.stripe.events.V1BillingMeterNoMeterFoundEvent.class);
34
  }
1✔
35
}
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