import { ScryfallObject } from "../Object";
import { IsoDate, Uuid } from "../../internal";

/**
 * Rulings made on a card by the rules manager.
 *
 * @see {@link https://scryfall.com/docs/api/rulings}
 */
export type ScryfallRuling = ScryfallObject.Object<ScryfallObject.ObjectType.Ruling> & {
  /**
   * The Oracle ID of the card this ruling is associated with.
   */
  oracle_id: Uuid;
  /**
   * A computer-readable string indicating which company produced this ruling, either `wotc` or `scryfall`
   */
  source: "wotc" | "scryfall";
  /**
   * The date when the ruling or note was published
   */
  published_at: IsoDate;
  /**
   * The text of the ruling
   */
  comment: string;
};
