HookPayload represents the data sent to webhook endpoints.
| 48 | |
| 49 | // HookPayload represents the data sent to webhook endpoints. |
| 50 | type HookPayload struct { |
| 51 | TransactionID string `json:"transaction_id"` |
| 52 | HookType HookType `json:"hook_type"` |
| 53 | Timestamp time.Time `json:"timestamp"` |
| 54 | Data json.RawMessage `json:"data,omitempty"` // Changed to omitempty to handle nil data |
| 55 | } |
| 56 | |
| 57 | // HookResponse represents the expected response from webhook endpoints. |
| 58 | type HookResponse struct { |
nothing calls this directly
no outgoing calls
no test coverage detected