pub struct Event {
pub id: EventId,
pub account: Option<String>,
pub api_version: Option<String>,
pub created: Timestamp,
pub data: NotificationEventData,
pub livemode: bool,
pub pending_webhooks: i64,
pub request: Option<NotificationEventRequest>,
pub type_: EventType,
}Expand description
The resource representing a Stripe “NotificationEvent”.
For more details see https://stripe.com/docs/api/events/object
Fields§
§id: EventIdUnique identifier for the object.
account: Option<String>The connected account that originates the event.
api_version: Option<String>The Stripe API version used to render data.
This property is populated only for events on or after October 31, 2014.
created: TimestampTime at which the object was created.
Measured in seconds since the Unix epoch.
data: NotificationEventData§livemode: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
pending_webhooks: i64Number of webhooks that haven’t been successfully delivered (for example, to return a 20x response) to the URLs you specify.
request: Option<NotificationEventRequest>Information on the API request that triggers the event.
type_: EventTypeDescription of the event (for example, invoice.created or charge.refunded).
Implementations§
source§impl Event
impl Event
sourcepub fn list(client: &Client, params: &ListEvents<'_>) -> Response<List<Event>>
pub fn list(client: &Client, params: &ListEvents<'_>) -> Response<List<Event>>
List events, going back up to 30 days.
Each event data is rendered according to Stripe API version at its creation time, specified in event object api_version attribute (not according to your current Stripe API version or Stripe-Version header).