Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

608 B
Raw Blame
import { PayoutAccountDTO, PayoutDTO, PayoutReversalDTO } from "@mercurjs/types"

type PayoutSeller = { id: string; name: string | null; handle: string | null }

export type AdminPayout = PayoutDTO & {
  reversals?: PayoutReversalDTO[]
  order?: { id: string; display_id: number } | null
  seller?: PayoutSeller | null
  account?: {
    id: string
    status: string
    seller?: PayoutSeller | null
  } | null
}

export type AdminPayoutAccount = PayoutAccountDTO & {
  seller?: { id: string; name: string; handle: string } | null
  onboarding?: { id: string; data: Record<string, unknown> | null } | null
}