export interface ContractDetails { contract?: CustomerContract; rates?: ContractRateView[]; } export interface CustomerContract { id: string; payable_company_id: number; payment_method: PaymentMethod; internal_notes?: string; revision: number; revision_notes?: string; revision_start: string; revision_end?: string; updated_by: number; created_at: string; updated_at: string; } export interface PaymentMethod { type: "credit_card" | "invoice"; } export interface ContractRateView { rate?: Rate; product?: ProductView; start_at?: Date; end_at?: Date; created_at?: Date; updated_at?: Date; } export interface Rate { type: RateType; unit_price: UnitPrice; } export type RateType = "per_unit" | "percent_of_gmv"; export interface UnitPrice { value: number; expressed_in: string; currency?: string; } export interface ProductView { id?: string; sku?: string; sku_type?: SkuType; payable_company_id?: number; name?: string; unit?: string; status?: ProductStatus; } export type SkuTypeCategory = "processing" | "storage" | "transfer" | "marketplace-data-transaction"; export interface SkuType { category: SkuTypeCategory; } export type ProductStatus = "active" | "archived";