@plentymarkets/shop-api / cartGetters
Variable: cartGetters ​
const
cartGetters:object
Defined in: getters/cartGetters.ts:302
Type declaration ​
getBasketAmountNet() ​
getBasketAmountNet: (
cart
) =>number
Parameters ​
cart ​
Returns ​
number
getBasketItemOrderParamBasketItemId() ​
getBasketItemOrderParamBasketItemId: (
item
) =>number
Parameters ​
item ​
Returns ​
number
getBasketItemOrderParamName() ​
getBasketItemOrderParamName: (
item
) =>string
Parameters ​
item ​
Returns ​
string
getBasketItemOrderParamPrice() ​
getBasketItemOrderParamPrice: (
item
) =>number
Parameters ​
item ​
Returns ​
number
getBasketItemOrderParamPropertyId() ​
getBasketItemOrderParamPropertyId: (
item
) =>string
Parameters ​
item ​
Returns ​
string
getBasketItemOrderParams() ​
getBasketItemOrderParams: (
item
) =>BasketItemOrderParam
[]
Parameters ​
item ​
Returns ​
getBasketItemOrderParamType() ​
getBasketItemOrderParamType: (
item
) =>string
Parameters ​
item ​
Returns ​
string
getBasketItemOrderParamValue() ​
getBasketItemOrderParamValue: (
item
) =>string
Parameters ​
item ​
Returns ​
string
getCartItemPrice() ​
getCartItemPrice: (
item
) =>number
Parameters ​
item ​
Returns ​
number
getCouponCode() ​
getCouponCode: (
cart
) =>string
Parameters ​
cart ​
Returns ​
string
getCouponDiscount() ​
getCouponDiscount: (
cart
) =>number
Parameters ​
cart ​
Returns ​
number
getCoupons() ​
getCoupons: (
cart
) =>AgnosticCoupon
[]
Parameters ​
cart ​
Returns ​
AgnosticCoupon
[]
getCurrency() ​
getCurrency: (
cart
) =>string
Parameters ​
cart ​
Returns ​
string
getCustomerInvoiceAddressId() ​
getCustomerInvoiceAddressId: (
cart
) =>null
|number
Parameters ​
cart ​
Returns ​
null
| number
getCustomerShippingAddressId() ​
getCustomerShippingAddressId: (
cart
) =>null
|number
Parameters ​
cart ​
Returns ​
null
| number
getDiscounts() ​
getDiscounts: (
cart
) =>AgnosticDiscount
[]
Parameters ​
cart ​
Returns ​
AgnosticDiscount
[]
getFormattedPrice() ​
getFormattedPrice: (
price
) =>string
Parameters ​
price ​
number
Returns ​
string
getItemAttributes() ​
getItemAttributes: (
item
) =>AgnosticAttribute
[]
Parameters ​
item ​
Returns ​
AgnosticAttribute
[]
getItemId() ​
getItemId: (
item
) =>number
Parameters ​
item ​
Returns ​
number
getItemImage() ​
getItemImage: (
item
) =>string
Parameters ​
item ​
Returns ​
string
getItemName() ​
getItemName: (
item
) =>string
Parameters ​
item ​
Returns ​
string
getItemPrice() ​
getItemPrice: (
item
) =>null
|number
Parameters ​
item ​
Returns ​
null
| number
getItemQty() ​
getItemQty: (
item
) =>number
Parameters ​
item ​
Returns ​
number
getItems() ​
getItems: (
cart
) =>CartItem
[]
Parameters ​
cart ​
Returns ​
CartItem
[]
getItemSku() ​
getItemSku: (
item
) =>string
Parameters ​
item ​
Returns ​
string
getItemSumNet() ​
getItemSumNet: (
cart
) =>number
Parameters ​
cart ​
Returns ​
number
getMaxDeliveryDays() ​
getMaxDeliveryDays: (
cart
,shippingMethodId
) =>null
|number
Parameters ​
cart ​
shippingMethodId ​
number
Returns ​
null
| number
getOrderPropertiesAdditionalCostsWithVat() ​
getOrderPropertiesAdditionalCostsWithVat: (
cart
) =>BasketItemOrderParam
[]
Parameters ​
cart ​
Returns ​
getOrderPropertiesWithoutVat() ​
getOrderPropertiesWithoutVat: (
cart
) =>BasketItemOrderParam
[]
Parameters ​
cart ​
Returns ​
getProductPath() ​
getProductPath: (
item
) =>string
Parameters ​
item ​
Returns ​
string
getPropertyFromCartItem() ​
getPropertyFromCartItem: (
item
,propertyId
) =>null
|ProductProperty
Parameters ​
item ​
propertyId ​
number
Returns ​
null
| ProductProperty
getShippingAmount() ​
getShippingAmount: (
total
) =>number
Parameters ​
total ​
Returns ​
number
getShippingAmountNet() ​
getShippingAmountNet: (
cart
) =>number
Parameters ​
cart ​
Returns ​
number
getShippingCountryId() ​
getShippingCountryId: (
cart?
) =>number
Parameters ​
cart? ​
Returns ​
number
getShippingPrice() ​
getShippingPrice: (
cart
) =>number
Parameters ​
cart ​
Returns ​
number
getShopCountryId() ​
getShopCountryId: (
cart?
) =>number
Parameters ​
cart? ​
Returns ​
number
getSubTotal() ​
getSubTotal: (
total
) =>number
Parameters ​
total ​
AgnosticTotals
Returns ​
number
getToBePayed() ​
getToBePayed: (
total
) =>number
Parameters ​
total ​
Returns ​
number
getTotal() ​
getTotal: (
total
) =>number
Parameters ​
total ​
AgnosticTotals
Returns ​
number
getTotalItems() ​
getTotalItems: (
cart
) =>number
Parameters ​
cart ​
Returns ​
number
getTotals() ​
getTotals: (
cart
) =>AgnosticTotals
Parameters ​
cart ​
Returns ​
AgnosticTotals
getTotalVatAmount() ​
getTotalVatAmount: (
totalVat
) =>number
Parameters ​
totalVat ​
Returns ​
number
getTotalVatValue() ​
getTotalVatValue: (
totalVat
) =>number
Parameters ​
totalVat ​
Returns ​
number
getVariation() ​
getVariation: (
item
) =>null
|Product
Parameters ​
item ​
Returns ​
null
| Product
getVariationBundleComponents() ​
getVariationBundleComponents: (
item
) =>null
|ProductBundleComponent
[]
Parameters ​
item ​
Returns ​
null
| ProductBundleComponent
[]
getVariationId() ​
getVariationId: (
item
) =>number
Parameters ​
item ​
Returns ​
number
getVatAmount() ​
getVatAmount: (
total
) =>number
Parameters ​
total ​
Returns ​
number
getVatValue() ​
getVatValue: (
total
) =>number
Parameters ​
total ​
Returns ​
number