@vendasta/store
Version:
Components and data for Store
34 lines (33 loc) • 913 B
TypeScript
export declare class Package {
solution_id: string;
partner_id: string;
market_id: string;
name: string;
icon: string;
status: string;
tagline: string;
header_image_url: string;
pricing: Pricing;
content: string;
products: string[];
hide_product_icons_and_names: boolean;
hide_product_details: boolean;
createdDate: Date;
updatedDate: Date;
static fromApi(data: any): Package;
readonly isPackageFree: boolean;
readonly shouldContactSales: boolean;
readonly formattedPricingList: string[];
readonly priceStrings: string[];
readonly formattedWholesalePrice: string;
static getCapitalizeFirstLetter(inputString: string): string;
static getCurrencySymbol(currency: string): string;
}
export interface Pricing {
currency: string;
prices: Price[];
}
export interface Price {
price: number;
frequency: string;
}