import type { AdminObservedProductItem } from './platform-config/fulfillment-bindings'

export interface AdminFulfillmentLookupOrder {
  provider: string
  platform: string
  shopId: string
  shopName: string
  platformOrderId: string
  buyerName: string
  totalAmount: string
  totalAmountFen: number
  paidAt: string | null
  enriched: boolean
  enrichReason: string
  errorMessage: string
}

export interface AdminFulfillmentLookupItem extends AdminObservedProductItem {
  lineId: string
  itemTitle: string
  quantity: number
}

export interface AdminFulfillmentLookupResult {
  order: AdminFulfillmentLookupOrder
  items: AdminFulfillmentLookupItem[]
}
