@vendasta/store
Version:
Components and data for Store
33 lines (32 loc) • 848 B
TypeScript
import { Currency, LineItem, RevenueComponent } from '@vendasta/sales-orders';
import { Edition } from '@vendasta/marketplace-apps';
export interface UILineItem {
lineItem: LineItem;
name: string;
iconUrl: string;
isMultiActivatable?: boolean;
bannerUrl?: string;
parentIconUrl?: string;
parentName?: string;
editionName?: string;
editions?: Edition[];
storeAmount?: number;
storeLineItem?: LineItem;
discountPercentage?: number;
billingId?: string;
}
export interface SummaryItem {
currency: Currency;
currencyCode: string;
revenueComponents: RevenueComponent[];
}
export interface TaxOption {
label: string;
percentage?: number;
percentageMultiplier: number;
}
export interface DurationTotal {
total: number;
currencyCode: string;
startingPrice?: boolean;
}