stack

Home > @infiniteobjects/shopify-service > ShippingTimes

ShippingTimes class

Utility class for variant shipping times

Signature:

export declare class ShippingTimes 

Constructors

Constructor Modifiers Description
(constructor)(variantId)   Constructs a new instance of the ShippingTimes class

Methods

Method Modifiers Description
getLaunchDate()   Gets the launch date from the variant metafield
getLaunchDatePassed()   Has the launch date passed?
getProcessingTime()   Gets the processing time derived by variant’s Distinct Unit (e.g. 5-7 days)
getShippingDisplayTime()   Returns the launch date as a string if it hasn’t passed yet, otherwise returns the processing time string
getShopMetafields()   Gets the metafields of a shop
getTimeRemainingTilLaunch()   Gets the time remaining until the launch date