package dto

// GenericDeleteResponse is a common success payload for DELETE endpoints.
type GenericDeleteResponse struct {
	Data GenericDeleteResponseData `json:"data"`
}

type GenericDeleteResponseData struct {
	Type       string                  `json:"type" example:"delete_result"`
	Attributes GenericDeleteAttributes `json:"attributes"`
}

type GenericDeleteAttributes struct {
	Deleted bool `json:"deleted" example:"true"`
}

func NewGenericDeleteResponse(resourceType string) GenericDeleteResponse {
	return GenericDeleteResponse{
		Data: GenericDeleteResponseData{
			Type: resourceType,
			Attributes: GenericDeleteAttributes{
				Deleted: true,
			},
		},
	}
}
