package com.swoosh.microblog.data.model

data class MembersResponse(
    val members: List<GhostMember>,
    val meta: Meta?
)

data class GhostMember(
    val id: String,
    val email: String?,
    val name: String?,
    val status: String?,       // "free" or "paid"
    val avatar_image: String?,
    val email_count: Int?,
    val email_opened_count: Int?,
    val email_open_rate: Double?,
    val last_seen_at: String?,
    val created_at: String?,
    val updated_at: String?,
    val labels: List<MemberLabel>?,
    val newsletters: List<MemberNewsletter>?,
    val subscriptions: List<MemberSubscription>?,
    val note: String?,
    val geolocation: String?
)

data class MemberLabel(val id: String?, val name: String, val slug: String?)
data class MemberNewsletter(val id: String, val name: String?, val slug: String?)
data class MemberSubscription(
    val id: String?, val status: String?, val start_date: String?,
    val current_period_end: String?, val cancel_at_period_end: Boolean?,
    val price: SubscriptionPrice?, val tier: SubscriptionTier?
)
data class SubscriptionPrice(val amount: Int?, val currency: String?, val interval: String?)
data class SubscriptionTier(val id: String?, val name: String?)
