Interface: PurchaseAuthorizationRequestsProps
Defined in: components/PurchaseAuthorizationRequests.tsx:19
Properties
afterAcceptRequest?
optionalafterAcceptRequest?: (cart) =>void
Defined in: components/PurchaseAuthorizationRequests.tsx:60
Fires after a purchase authorization request has been accepted. Receives the full accepted Cart object (or the selectedCart if onAcceptRequest override was used).
Parameters
cart
Cart
Returns
void
afterDeleteRequest?
optionalafterDeleteRequest?: (cartId) =>void
Defined in: components/PurchaseAuthorizationRequests.tsx:72
Fires after a purchase authorization request has been deleted (cart removed). Receives the deleted cart's id.
Parameters
cartId
string
Returns
void
className?
optionalclassName?:string
Defined in: components/PurchaseAuthorizationRequests.tsx:90
Additional CSS class for the root element
columnConfig?
optionalcolumnConfig?:Record<string,string>
Defined in: components/PurchaseAuthorizationRequests.tsx:36
Label mapping for columns
columns?
optionalcolumns?:string[]
Defined in: components/PurchaseAuthorizationRequests.tsx:33
Columns to display, in order. Keys: 'date' | 'quantity' | 'total' | 'requestedBy' | 'action'. Defaults to all five.
companyId?
optionalcompanyId?:number
Defined in: components/PurchaseAuthorizationRequests.tsx:27
The companyId of the current selected company. Resolved from PropellerProvider when omitted.
configuration?
optionalconfiguration?:Record<string,any>
Defined in: components/PurchaseAuthorizationRequests.tsx:96
App configuration passthrough. Used for imageSearchFiltersGrid, imageVariantFiltersSmall when fetching cart detail.
currency?
optionalcurrency?:string
Defined in: components/PurchaseAuthorizationRequests.tsx:81
Currency symbol for prices. Resolved from PropellerProvider when omitted; defaults to '€'.
flat?
optionalflat?:boolean
Defined in: components/PurchaseAuthorizationRequests.tsx:45
Drop the results container's card chrome (background/border/shadow). Defaults to false.
formatDate?
optionalformatDate?: (dateString) =>string
Defined in: components/PurchaseAuthorizationRequests.tsx:75
Format date
Parameters
dateString
string
Returns
string
formatPrice?
optionalformatPrice?: (price) =>string
Defined in: components/PurchaseAuthorizationRequests.tsx:78
Format price
Parameters
price
number
Returns
string
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/PurchaseAuthorizationRequests.tsx:21
GraphQL client for the Propeller SDK. Resolved from PropellerProvider when omitted.
hideHeader?
optionalhideHeader?:boolean
Defined in: components/PurchaseAuthorizationRequests.tsx:42
Hide the column header row. Defaults to false.
hideTitle?
optionalhideTitle?:boolean
Defined in: components/PurchaseAuthorizationRequests.tsx:48
Hide the component's own title. Defaults to false.
labels?
optionallabels?:Record<string,string>
Defined in: components/PurchaseAuthorizationRequests.tsx:84
Labels for the component
language?
optionallanguage?:string
Defined in: components/PurchaseAuthorizationRequests.tsx:87
Language used to resolve localized product names in the items table. Defaults to 'NL'.
limit?
optionallimit?:number
Defined in: components/PurchaseAuthorizationRequests.tsx:30
Limit the number of requests shown (e.g. 3 = last 3 modified). undefined = show all
onAcceptRequest?
optionalonAcceptRequest?: (cartId) =>void
Defined in: components/PurchaseAuthorizationRequests.tsx:54
Override: fires instead of the default CartService.acceptPurchaseAuthorizationRequest() call. Receives the cartId string.
Parameters
cartId
string
Returns
void
onDeleteRequest?
optionalonDeleteRequest?: (cartId) =>void
Defined in: components/PurchaseAuthorizationRequests.tsx:66
Override: fires instead of the default CartService.deleteCart() call. Receives the cartId string.
Parameters
cartId
string
Returns
void
onError?
optionalonError?: (err) =>void
Defined in: components/PurchaseAuthorizationRequests.tsx:99
Called when an SDK operation fails; receives the normalized error
Parameters
err
Error
Returns
void
showActions?
optionalshowActions?:boolean
Defined in: components/PurchaseAuthorizationRequests.tsx:39
Show the actions column and its buttons. Defaults to true.
user?
optionaluser?:Contact|Customer
Defined in: components/PurchaseAuthorizationRequests.tsx:24
The logged-in user. Resolved from PropellerProvider when omitted.