stack

Home > @infiniteobjects/data-types > ShippingTimes > getShippingDisplayTime

ShippingTimes.getShippingDisplayTime() method

Returns the launch date as a string if it hasn’t passed yet, otherwise returns the processing time string

Signature:

static getShippingDisplayTime(sku: string, processingTimes?: ProcessingTimesByDistinctUnit, launchDate?: Date): string;

Parameters

Parameter Type Description
sku string  
processingTimes ProcessingTimesByDistinctUnit (Optional)
launchDate Date (Optional)

Returns:

string