/**
 * 通用接口返回结构
 */
export interface ApiResponse<T> {
  code?: string | number
  msg?: string
  data?: T
}

/**
 * 获取税费信息请求参数
 */
export interface PushRecordIdRequest {
  pushRecordId: string
}

/**
 * 税费详情返回结构
 */
export interface InvoiceTaxDetailResponse {
  detailItems?: InvoiceTaxDetailItem[]
  totalAmount?: string
  totalLateFee?: string
  totalAmountDisplay?: string
  [property: string]: any
}

/**
 * 单项税费明细条目
 */
export interface InvoiceTaxDetailItem {
  amount?: string
  categoryCode?: string
  categoryName?: string
  endDate?: string
  originAmount?: string
  punishAmount?: string
  startDate?: string
  taxCode?: string
  taxName?: string
  validPeriod?: string
  [property: string]: any
}

/**
 * 最终接口返回包装
 */
export type InvoiceTaxDetailApiResponse = ApiResponse<InvoiceTaxDetailResponse>
