packages feed

hercules-ci-api-0.8.1.0: src/Hercules/API/Organizations/Organization.hs

{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DerivingStrategies #-}

module Hercules.API.Organizations.Organization where

import Hercules.API.BillingStatus qualified as BillingStatus
import Hercules.API.Prelude

data Organization = Organization
  { id :: Id Organization,
    displayName :: Text,
    billingStatus :: BillingStatus.BillingStatus,
    trialStartedOn :: Maybe UTCTime,
    subscriptionStartedOn :: Maybe UTCTime,
    subscriptionCancelledOn :: Maybe UTCTime,
    subscriptionCancelUrl :: Maybe Text,
    subscriptionUpdateUrl :: Maybe Text
  }
  deriving (Generic, Show, Eq)
  deriving anyclass (NFData, ToJSON, FromJSON, ToSchema)