# `PolarExpress.Events.RefundCreated`
[🔗](https://github.com/jeffhuen/polar_express/blob/main/lib/polar_express/events/refund_created.ex#L2)

Webhook event for `refund.created`.

Sent when a refund is created regardless of status.

**Discord & Slack support:** Full

The `data` field contains a `PolarExpress.Schemas.Refund` struct.

# `t`

```elixir
@type t() :: %PolarExpress.Events.RefundCreated{
  data: PolarExpress.Schemas.Refund.t(),
  timestamp: String.t(),
  type: String.t()
}
```

* `type` - Always `"refund.created"`.
* `data` - The event payload. See `PolarExpress.Schemas.Refund`.
* `timestamp` - ISO 8601 timestamp of when the event occurred.

# `event_type`

```elixir
@spec event_type() :: String.t()
```

Returns the event type string.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
