FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
types
/
functions
Edit File: price.d.ts
import { Coupon } from '../types'; type recurringPriceDetails = { recurring_interval_count?: number; recurring_interval?: 'week' | 'month' | 'year' | 'never'; recurring_period_count: number; }; export declare const convertAmount: (amount: number, currency: string) => number; export declare const getHumanDiscount: (coupon: Coupon) => string; export declare const getFormattedDiscount: (coupon: Coupon) => string; export declare const getFormattedPrice: ({ amount, currency }: { amount: number; currency: string; }) => string; export declare const getCurrencySymbol: (code?: string) => string; export declare const translateInterval: (amount: number, interval: string, prefix?: string, fallback?: string, showSingle?: boolean) => string; export declare const translateAbbreviatedInterval: (amount: number, interval: string, fallback?: string, showSingle?: boolean) => string; interface IntervalOptions { showOnce?: boolean; abbreviate?: boolean; labels?: { interval?: string; period?: string; once?: string; }; } export declare const intervalString: (price: recurringPriceDetails, options?: IntervalOptions) => string; export declare const intervalCountString: (price: { recurring_interval_count?: number; recurring_interval?: 'week' | 'month' | 'year' | 'never'; recurring_period_count: number; }, prefix: any, fallback?: string, abbreviate?: boolean) => string; export declare const periodCountString: (price: recurringPriceDetails, abbreviate?: boolean) => string; export declare const translateRemainingPayments: (payments: any) => string; export declare const productNameWithPrice: (price: any) => string; export declare const getHumanDiscountRedeemableStatus: (status: any) => string; export {};
Save
Back