Skip to main content

Interface: UseProductBundlesReturn

Defined in: composables/vue/useProductBundles.ts:48

Properties

addBundleToCart

addBundleToCart: (bundleId, existingCartId?) => Promise<{ cart?: Cart; error?: string; success: boolean; }>

Defined in: composables/vue/useProductBundles.ts:55

Parameters

bundleId

string

existingCartId?

string

Returns

Promise<{ cart?: Cart; error?: string; success: boolean; }>


adding

adding: Ref<boolean>

Defined in: composables/vue/useProductBundles.ts:51


bundles

bundles: Ref<Bundle[]>

Defined in: composables/vue/useProductBundles.ts:49


calcDiscountPercent

calcDiscountPercent: (original, discounted) => number

Defined in: composables/vue/useProductBundles.ts:56

Parameters

original

number

discounted

number

Returns

number


cartId

cartId: Ref<string>

Defined in: composables/vue/useProductBundles.ts:53


error

error: Ref<string | null>

Defined in: composables/vue/useProductBundles.ts:52


fetchBundles

fetchBundles: (productId) => Promise<void>

Defined in: composables/vue/useProductBundles.ts:54

Parameters

productId

number

Returns

Promise<void>


loading

loading: Ref<boolean>

Defined in: composables/vue/useProductBundles.ts:50