• 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

42.86
/src/main/java/com/stripe/events/V1BillingMeterErrorReportTriggeredEvent.java
1
// File generated from our OpenAPI spec
2
package com.stripe.events;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.exception.StripeException;
6
import com.stripe.model.billing.Meter;
7
import com.stripe.model.v2.Event;
8
import java.time.Instant;
9
import java.util.List;
10
import lombok.Getter;
11
import lombok.Setter;
12

13
@Getter
14
public final class V1BillingMeterErrorReportTriggeredEvent extends Event {
1✔
15
  /** Data for the v1.billing.meter.error_report_triggered event. */
16
  @SerializedName("data")
17
  V1BillingMeterErrorReportTriggeredEvent.EventData data;
18

19
  @Getter
20
  @Setter
21
  public static final class EventData {
1✔
22
    /** Extra field included in the event's {@code data} when fetched from /v2/events. */
23
    @SerializedName("developer_message_summary")
24
    String developerMessageSummary;
25
    /** This contains information about why meter error happens. */
26
    @SerializedName("reason")
27
    Reason reason;
28
    /** The end of the window that is encapsulated by this summary. */
29
    @SerializedName("validation_end")
30
    Instant validationEnd;
31
    /** The start of the window that is encapsulated by this summary. */
32
    @SerializedName("validation_start")
33
    Instant validationStart;
34

NEW
35
    public static final class Reason {
×
36
      /** The total error count within this window. */
37
      @SerializedName("error_count")
38
      Integer errorCount;
39
      /** The error details. */
40
      @SerializedName("error_types")
41
      List<V1BillingMeterErrorReportTriggeredEvent.EventData.Reason.ErrorType> errorTypes;
42

NEW
43
      public static final class ErrorType {
×
44
        /**
45
         * Open Enum.
46
         *
47
         * <p>One of {@code archived_meter}, {@code meter_event_customer_not_found}, {@code
48
         * meter_event_dimension_count_too_high}, {@code meter_event_invalid_value}, {@code
49
         * meter_event_no_customer_defined}, {@code missing_dimension_payload_keys}, {@code
50
         * no_meter}, {@code timestamp_in_future}, or {@code timestamp_too_far_in_past}.
51
         */
52
        @SerializedName("code")
53
        String code;
54
        /** The number of errors of this type. */
55
        @SerializedName("error_count")
56
        Integer errorCount;
57
        /** A list of sample errors of this type. */
58
        @SerializedName("sample_errors")
59
        List<V1BillingMeterErrorReportTriggeredEvent.EventData.Reason.ErrorType.SampleError>
60
            sampleErrors;
61

NEW
62
        public static final class SampleError {
×
63
          /** The error message. */
64
          @SerializedName("error_message")
65
          String errorMessage;
66
          /** The request causes the error. */
67
          @SerializedName("request")
68
          Request request;
69

NEW
70
          public static final class Request {
×
71
            /** The request idempotency key. */
72
            @SerializedName("identifier")
73
            String identifier;
74
          }
75
        }
76
      }
77
    }
78
  }
79

80
  @SerializedName("related_object")
81

82
  /** Object containing the reference to API resource relevant to the event. */
83
  RelatedObject relatedObject;
84

85
  /** Retrieves the related object from the API. Make an API request on every call. */
86
  public Meter fetchRelatedObject() throws StripeException {
87
    return (Meter) super.fetchRelatedObject(this.relatedObject);
1✔
88
  }
89
}
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