Module: offer

Functions

getBestOfferFromList

getBestOfferFromList(offers): any

Parameters

Name Type
offers FoOfferInventoryWithPrices[]

Returns

any


getBestOfferFromSupplier

getBestOfferFromSupplier(offers, supplierName): boolean | FoOfferInventoryWithPrices

Parameters

Name Type
offers FoOfferInventoryWithPrices[]
supplierName String

Returns

boolean | FoOfferInventoryWithPrices


getBestOfferPriceFromOfferInventory

getBestOfferPriceFromOfferInventory(offerInventory): any

Parameters

Name Type
offerInventory FoOfferInventoryWithPrices

Returns

any


getDeliveryDates

getDeliveryDates(offer): any

Parameters

Name Type
offer FoBestOfferPrice

Returns

any


getFirstPriceFromOfferPrice

getFirstPriceFromOfferPrice(offerPrice, currency, format): any

Parameters

Name Type
offerPrice OfferPrice
currency string
format boolean

Returns

any


getFirstPriceWithQuantityFromOfferPrice

getFirstPriceWithQuantityFromOfferPrice(offerPrice, quantity, currency, format): any

Parameters

Name Type
offerPrice OfferPrice
quantity number
currency string
format boolean

Returns

any


getFormatedPrice

getFormatedPrice(price, currency): any

Parameters

Name Type
price number
currency string

Returns

any


getOfferCurrency

getOfferCurrency(offer): string

Parameters

Name Type
offer FoBestOfferPrice

Returns

string


getOfferCustomFields

getOfferCustomFields(offer): FoCustomFieldValue[]

Parameters

Name Type
offer FoBestOfferPrice

Returns

FoCustomFieldValue[]


getOfferItemPerPack

getOfferItemPerPack(offer): number

Parameters

Name Type
offer OfferPrice

Returns

number


getOfferLeadTimeToShip

getOfferLeadTimeToShip(offer): number

Parameters

Name Type
offer FoBestOfferPrice | FoOfferInventoryWithPrices

Returns

number


getOfferPackingType

getOfferPackingType(offer): string

Parameters

Name Type
offer FoBestOfferPrice

Returns

string


getOfferPriceNbPriceRanges

getOfferPriceNbPriceRanges(offerPrice): number

Parameters

Name Type
offerPrice OfferPrice

Returns

number


getOfferPricePriceRanges

getOfferPricePriceRanges(offerPrice): PriceRange[]

Parameters

Name Type
offerPrice OfferPrice

Returns

PriceRange[]


getOfferPrices

getOfferPrices(offer): OfferPrice[]

Parameters

Name Type
offer FoOfferInventoryWithPrices

Returns

OfferPrice[]


getOfferProductVariantId

getOfferProductVariantId(offer): string

Parameters

Name Type
offer FoBestOfferPrice

Returns

string


getOfferStock

getOfferStock(offer): number

Parameters

Name Type
offer FoBestOfferPrice | FoOfferInventoryWithPrices

Returns

number


getOfferSupplierId

getOfferSupplierId(offer): string

Parameters

Name Type
offer FoBestOfferPrice

Returns

string


getOfferSupplierName

getOfferSupplierName(offer): string

Parameters

Name Type
offer FoBestOfferPrice

Returns

string


getOfferminOrderQuantity

getOfferminOrderQuantity(offer): number

Parameters

Name Type
offer FoBestOfferPrice | FoOfferInventoryWithPrices

Returns

number


getOffersSupplierList

getOffersSupplierList(offers): any

Parameters

Name Type
offers FoBestOfferPrice[]

Returns

any


getOffersToDisplay

getOffersToDisplay(offers): FoBestOfferPrice[]

Parameters

Name Type
offers any

Returns

FoBestOfferPrice[]


getProductVariantMpn

getProductVariantMpn(offer): string

Parameters

Name Type
offer FoBestOfferPrice

Returns

string


getProductsVariantsFromOffers

getProductsVariantsFromOffers(offers): FoProductVariant[]

Parameters

Name Type
offers FoBestOfferPrice[]

Returns

FoProductVariant[]


getQuantityPerItem

getQuantityPerItem(offer): string

Parameters

Name Type
offer FoBestOfferPrice

Returns

string

group3

getNumberOffers

getNumberOffers(offersToDisplay): number

Function getNumberOffers

export const getNumberOffers = (offersToDisplay: any): number => (offersToDisplay ? offersToDisplay.length : 0);

Parameters

Name Type Description
offersToDisplay any send the application

Returns

number

currency the currency of the application


getOfferId

getOfferId(offer): string

Function getOfferId

Get the

export const getOfferId = (offer: OfferPrice): string => offer.id;

Parameters

Name Type Description
offer OfferPrice send the application

Returns

string

offerId the Id of the offer