import * as e from '../enums'; export interface LineItemAppKeyInterface { appId?: string; editionId?: string; packageId?: string; packageInstanceId?: string; } export interface BillingPeriodInterface { startDate?: Date; endDate?: Date; duration?: DurationInterface; } export interface CostInterface { customPrice?: number; } export interface CustomPriceMappingInterface { productId?: string; customPrice?: number; } export interface DurationInterface { value?: number; duration?: e.DurationPeriod; } export interface LineItemInterface { appKey?: LineItemAppKeyInterface; packageId?: string; currency?: e.Currency; initialRevenue?: RevenueInterface; currentRevenue?: RevenueInterface; quantity?: number; isTrial?: boolean; currencyCode?: string; cost?: CostInterface; customPrices?: CustomPriceMappingInterface[]; billingPeriod?: BillingPeriodInterface; autoBillable?: boolean; nonBillable?: boolean; taxRateIds?: string[]; retailSubscriptionGroupId?: string; billToRecipientId?: string; } export interface RevenueInterface { revenueComponents?: RevenueComponentInterface[]; } export interface RevenueComponentInterface { value?: number; period?: e.RevenuePeriod; isStartingRevenue?: boolean; }