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

stripe / stripe-java / #16599

29 Oct 2024 11:04PM UTC coverage: 12.519% (-0.1%) from 12.62%
#16599

push

github

web-flow
Merge pull request #1914 from stripe/latest-codegen-beta

Update generated code for beta

40 of 1580 new or added lines in 51 files covered. (2.53%)

19 existing lines in 15 files now uncovered.

18843 of 150513 relevant lines covered (12.52%)

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

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.model.HasId;
6
import com.stripe.model.StripeObject;
7
import java.time.Instant;
8
import java.util.List;
9
import java.util.Map;
10
import lombok.EqualsAndHashCode;
11
import lombok.Getter;
12
import lombok.Setter;
13

14
@Getter
15
@Setter
16
@EqualsAndHashCode(callSuper = false)
NEW
17
public class EventDestination extends StripeObject implements HasId {
×
18
  /** Amazon EventBridge configuration. */
19
  @SerializedName("amazon_eventbridge")
20
  AmazonEventbridge amazonEventbridge;
21

22
  /** Time at which the object was created. */
23
  @SerializedName("created")
24
  Instant created;
25

26
  /** An optional description of what the event destination is used for. */
27
  @SerializedName("description")
28
  String description;
29

30
  /** The list of events to enable for this endpoint. */
31
  @SerializedName("enabled_events")
32
  List<String> enabledEvents;
33

34
  /**
35
   * Payload type of events being subscribed to.
36
   *
37
   * <p>One of {@code snapshot}, or {@code thin}.
38
   */
39
  @SerializedName("event_payload")
40
  String eventPayload;
41

42
  /** Where events should be routed from. */
43
  @SerializedName("events_from")
44
  List<String> eventsFrom;
45

46
  /** Unique identifier for the object. */
47
  @Getter(onMethod_ = {@Override})
48
  @SerializedName("id")
49
  String id;
50

51
  /**
52
   * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
53
   * object exists in test mode.
54
   */
55
  @SerializedName("livemode")
56
  Boolean livemode;
57

58
  /** Metadata. */
59
  @SerializedName("metadata")
60
  Map<String, String> metadata;
61

62
  /** Event destination name. */
63
  @SerializedName("name")
64
  String name;
65

66
  /**
67
   * String representing the object's type. Objects of the same type share the same value of the
68
   * object field.
69
   *
70
   * <p>Equal to {@code v2.core.event_destination}.
71
   */
72
  @SerializedName("object")
73
  String object;
74

75
  /** If using the snapshot event payload, the API version events are rendered as. */
76
  @SerializedName("snapshot_api_version")
77
  String snapshotApiVersion;
78

79
  /**
80
   * Status. It can be set to either enabled or disabled.
81
   *
82
   * <p>One of {@code disabled}, or {@code enabled}.
83
   */
84
  @SerializedName("status")
85
  String status;
86

87
  /** Additional information about event destination status. */
88
  @SerializedName("status_details")
89
  StatusDetails statusDetails;
90

91
  /**
92
   * Event destination type.
93
   *
94
   * <p>One of {@code amazon_eventbridge}, or {@code webhook_endpoint}.
95
   */
96
  @SerializedName("type")
97
  String type;
98

99
  /** Time at which the object was last updated. */
100
  @SerializedName("updated")
101
  Instant updated;
102

103
  /** Webhook endpoint configuration. */
104
  @SerializedName("webhook_endpoint")
105
  WebhookEndpoint webhookEndpoint;
106

107
  /**
108
   * For more details about AmazonEventbridge, please refer to the <a
109
   * href="https://docs.stripe.com/api">API Reference.</a>
110
   */
111
  @Getter
112
  @Setter
113
  @EqualsAndHashCode(callSuper = false)
NEW
114
  public static class AmazonEventbridge extends StripeObject {
×
115
    /** The AWS account ID. */
116
    @SerializedName("aws_account_id")
117
    String awsAccountId;
118

119
    /** The ARN of the AWS event source. */
120
    @SerializedName("aws_event_source_arn")
121
    String awsEventSourceArn;
122

123
    /**
124
     * The state of the AWS event source.
125
     *
126
     * <p>One of {@code active}, {@code deleted}, {@code pending}, or {@code unknown}.
127
     */
128
    @SerializedName("aws_event_source_status")
129
    String awsEventSourceStatus;
130
  }
131

132
  /**
133
   * For more details about StatusDetails, please refer to the <a
134
   * href="https://docs.stripe.com/api">API Reference.</a>
135
   */
136
  @Getter
137
  @Setter
138
  @EqualsAndHashCode(callSuper = false)
NEW
139
  public static class StatusDetails extends StripeObject {
×
140
    /** Details about why the event destination has been disabled. */
141
    @SerializedName("disabled")
142
    Disabled disabled;
143

144
    /**
145
     * For more details about Disabled, please refer to the <a
146
     * href="https://docs.stripe.com/api">API Reference.</a>
147
     */
148
    @Getter
149
    @Setter
150
    @EqualsAndHashCode(callSuper = false)
NEW
151
    public static class Disabled extends StripeObject {
×
152
      /**
153
       * Reason event destination has been disabled.
154
       *
155
       * <p>One of {@code no_aws_event_source_exists}, or {@code user}.
156
       */
157
      @SerializedName("reason")
158
      String reason;
159
    }
160
  }
161

162
  /**
163
   * For more details about WebhookEndpoint, please refer to the <a
164
   * href="https://docs.stripe.com/api">API Reference.</a>
165
   */
166
  @Getter
167
  @Setter
168
  @EqualsAndHashCode(callSuper = false)
NEW
169
  public static class WebhookEndpoint extends StripeObject {
×
170
    /** The signing secret of the webhook endpoint, only includable on creation. */
171
    @SerializedName("signing_secret")
172
    String signingSecret;
173

174
    /** The URL of the webhook endpoint, includable. */
175
    @SerializedName("url")
176
    String url;
177
  }
178
}
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

© 2025 Coveralls, Inc