@vendasta/store
Version:
Components and data for Store
30 lines (29 loc) • 1.05 kB
TypeScript
import { TaxOption, UILineItem } from '../../order-form/order-item-list/interface';
import * as i0 from "@angular/core";
interface OrderTotals {
total: number;
subtotal: number;
taxes: OrderTax[];
currency: string;
}
interface OrderTax {
tax: number;
percentage: string;
}
export declare class OrderSummarizedTotalsComponent {
set orderItems(orderItems: UILineItem[]);
set taxOptions(taxOptions: TaxOption[]);
private _orderItems;
private _taxOptions;
private orderTotals$$;
orderTotals$: import("rxjs").Observable<OrderTotals>;
constructor();
private calculateOrderTotals;
private calculateTotal;
private calculateSubtotal;
private calculateTaxes;
private convertTotalsToDollars;
static ɵfac: i0.ɵɵFactoryDeclaration<OrderSummarizedTotalsComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<OrderSummarizedTotalsComponent, "app-order-summarized-totals", never, { "orderItems": "orderItems"; "taxOptions": "taxOptions"; }, {}, never, never>;
}
export {};