@open-tender/utils
Version:
A library of utils for use with Open Tender applications that utilize our cloud-based Order API.
10 lines (9 loc) • 741 B
TypeScript
import { CheckoutTender, CheckoutTenders, ConfirmationSections, CreditCard, Money, Order, OrderTender } from '@open-tender/types';
export declare const adjustTenders: (tenders: CheckoutTenders, isPaid: boolean, amountRemaining: number, updateForm: (form: {
tenders: any;
}) => void) => void;
export declare const updateTenders: (tenders: CheckoutTenders, total: Money) => CheckoutTenders | null;
export declare const makeCreditCardName: (creditCard: CreditCard) => string;
export declare const makeTenderName: (tender: OrderTender) => string;
export declare const makeCheckoutTenderName: (tender: CheckoutTender) => string | undefined;
export declare const makeConfirmationOrderType: (order: Order) => keyof ConfirmationSections | null;