import type {
  IShoppingPayment,
  IShopItem,
} from "../checkout-shopping-cart/webcomponent.type";
import type {
  IShipment,
  IUser,
  IGateway,
  IPayment,
} from "../checkout/webcomponent.type";

export type Component = {
  id?: string;
  style?: string;
  shipments?: IShipment[] | string;
  user: IUser | string;
  payment?: (IShoppingPayment & IPayment) | string;
  gateways?: IGateway[] | string;
  completed?: "yes" | "no";
};

export type Events = {
  saveUser: IUser;
  // saveShipment: { action: "saveShipment" };
  paymentCompleted: { total: number; method: string; completed: true };
};
