@plentymarkets/shop-api / wishlistGetters
Variable: wishlistGetters ​
const
wishlistGetters:object
Type declaration ​
getFormattedPrice() ​
getFormattedPrice: (
price
) =>string
Parameters ​
• price: number
Returns ​
string
getId() ​
getId: (
product
) =>string
Parameters ​
• product: Product
Returns ​
string
getItemAttributes() ​
getItemAttributes: (
item
,filters
?) =>Record
<string
,AgnosticAttribute
|string
>
Parameters ​
• item: Product
• filters?: string
[]
Returns ​
Record
<string
, AgnosticAttribute
| string
>
getItemImage() ​
getItemImage: () =>
string
Returns ​
string
getItemName() ​
getItemName: (
item
) =>string
Parameters ​
• item: Product
Returns ​
string
getItemPrice() ​
getItemPrice: (
item
) =>number
|null
Parameters ​
• item: Product
Returns ​
number
| null
getItemQty() ​
getItemQty: (
item
) =>number
Parameters ​
• item: Product
Returns ​
number
getItems() ​
getItems: (
wishlist
) =>WishlistItem
[]
Parameters ​
• wishlist
• wishlist.items: Product
[]
Returns ​
getItemSku() ​
getItemSku: (
item
) =>string
Parameters ​
• item: Product
Returns ​
string
getRegularItemPrice() ​
getRegularItemPrice: (
item
) =>number
Parameters ​
• item: Product
Returns ​
number
getShippingPrice() ​
getShippingPrice: (
wishlist
) =>number
Parameters ​
• wishlist
• wishlist.items: Product
[]
Returns ​
number
getSpecialItemPrice() ​
getSpecialItemPrice: (
item
) =>number
Parameters ​
• item: Product
Returns ​
number
getTotalItems() ​
getTotalItems: (
wishlist
) =>number
Parameters ​
• wishlist
• wishlist.items: Product
[]
Returns ​
number
getTotals() ​
getTotals: (
wishlist
) =>AgnosticTotals
Parameters ​
• wishlist
• wishlist.items: Product
[]
Returns ​
AgnosticTotals