Interface: CartSummaryProps
Defined in: components/CartSummary.tsx:17
Properties
afterRequestAuthorization?
optionalafterRequestAuthorization?: (cart) =>void
Defined in: components/CartSummary.tsx:67
Fires after authorization request is sent; receives the updated cart
Parameters
cart
Cart
Returns
void
cart
cart:
Cart
Defined in: components/CartSummary.tsx:19
The shopping cart used to populate the cart summary data
companyId?
optionalcompanyId?:number
Defined in: components/CartSummary.tsx:63
Active company ID — used to look up the user's PAC for this company
currency?
optionalcurrency?:string
Defined in: components/CartSummary.tsx:55
Currency symbol for prices. Resolved from PropellerProvider when omitted; defaults to '€'.
formatPrice?
optionalformatPrice?: (price) =>string
Defined in: components/CartSummary.tsx:52
Custom price formatting function
Parameters
price
number
Returns
string
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/CartSummary.tsx:58
GraphQL client — required for the default requestPurchaseAuthorization handler
labels?
optionallabels?:Record<string,string>
Defined in: components/CartSummary.tsx:25
Labels for the component
onCheckoutButtonClick?
optionalonCheckoutButtonClick?: (cart) =>void
Defined in: components/CartSummary.tsx:49
Action handler when the checkout button is clicked
Parameters
cart
Cart
Returns
void
onError?
optionalonError?: (err) =>void
Defined in: components/CartSummary.tsx:70
Called when requestPurchaseAuthorization fails; receives the error
Parameters
err
Error
Returns
void
onRequestAuthorization?
optionalonRequestAuthorization?: (cart) =>void
Defined in: components/CartSummary.tsx:64
- Override the default CartService.requestPurchaseAuthorization() call. * Note: when this override is used, afterRequestAuthorization receives the original cart.
Parameters
cart
Cart
Returns
void
onRequestQuoteClick?
optionalonRequestQuoteClick?: (cart) =>void
Defined in: components/CartSummary.tsx:74
Callback fired when "Request a Quote" is clicked. Only shown for contacts when prop is provided.
Parameters
cart
Cart
Returns
void
showCheckoutButton?
optionalshowCheckoutButton?:boolean
Defined in: components/CartSummary.tsx:46
Display the checkout button. Defaults to true.
showDiscount?
optionalshowDiscount?:boolean
Defined in: components/CartSummary.tsx:31
Display the total discount of the shopping cart. Defaults to true.
showShippingCosts?
optionalshowShippingCosts?:boolean
Defined in: components/CartSummary.tsx:34
Display the shipping costs of the shopping cart. Defaults to true.
showSubtotal?
optionalshowSubtotal?:boolean
Defined in: components/CartSummary.tsx:28
Display the subtotal of the shopping cart. Defaults to true.
showTotalExclVat?
optionalshowTotalExclVat?:boolean
Defined in: components/CartSummary.tsx:40
Display the total of the shopping cart excluding VAT. Defaults to true.
showTotalVat?
optionalshowTotalVat?:boolean
Defined in: components/CartSummary.tsx:43
Display the total VAT of the shopping cart. Defaults to true.
showVATs?
optionalshowVATs?:boolean
Defined in: components/CartSummary.tsx:37
Display all VAT lines of the shopping cart. Defaults to true.
title?
optionaltitle?:string
Defined in: components/CartSummary.tsx:22
Cart summary block title
user?
optionaluser?:Contact|Customer
Defined in: components/CartSummary.tsx:61
Logged-in user — used to determine purchaser role and authorization limit