Skip to main content

Interface: PurchaseAuthorizationRequestsProps

Defined in: components/PurchaseAuthorizationRequests.tsx:19

Properties

afterAcceptRequest?

optional afterAcceptRequest?: (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?

optional afterDeleteRequest?: (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?

optional className?: string

Defined in: components/PurchaseAuthorizationRequests.tsx:90

Additional CSS class for the root element


columnConfig?

optional columnConfig?: Record<string, string>

Defined in: components/PurchaseAuthorizationRequests.tsx:36

Label mapping for columns


columns?

optional columns?: string[]

Defined in: components/PurchaseAuthorizationRequests.tsx:33

Columns to display, in order. Keys: 'date' | 'quantity' | 'total' | 'requestedBy' | 'action'. Defaults to all five.


companyId?

optional companyId?: number

Defined in: components/PurchaseAuthorizationRequests.tsx:27

The companyId of the current selected company. Resolved from PropellerProvider when omitted.


configuration?

optional configuration?: Record<string, any>

Defined in: components/PurchaseAuthorizationRequests.tsx:96

App configuration passthrough. Used for imageSearchFiltersGrid, imageVariantFiltersSmall when fetching cart detail.


currency?

optional currency?: string

Defined in: components/PurchaseAuthorizationRequests.tsx:81

Currency symbol for prices. Resolved from PropellerProvider when omitted; defaults to '€'.


flat?

optional flat?: boolean

Defined in: components/PurchaseAuthorizationRequests.tsx:45

Drop the results container's card chrome (background/border/shadow). Defaults to false.


formatDate?

optional formatDate?: (dateString) => string

Defined in: components/PurchaseAuthorizationRequests.tsx:75

Format date

Parameters

dateString

string

Returns

string


formatPrice?

optional formatPrice?: (price) => string

Defined in: components/PurchaseAuthorizationRequests.tsx:78

Format price

Parameters

price

number

Returns

string


graphqlClient?

optional graphqlClient?: GraphQLClient

Defined in: components/PurchaseAuthorizationRequests.tsx:21

GraphQL client for the Propeller SDK. Resolved from PropellerProvider when omitted.


hideHeader?

optional hideHeader?: boolean

Defined in: components/PurchaseAuthorizationRequests.tsx:42

Hide the column header row. Defaults to false.


hideTitle?

optional hideTitle?: boolean

Defined in: components/PurchaseAuthorizationRequests.tsx:48

Hide the component's own title. Defaults to false.


labels?

optional labels?: Record<string, string>

Defined in: components/PurchaseAuthorizationRequests.tsx:84

Labels for the component


language?

optional language?: string

Defined in: components/PurchaseAuthorizationRequests.tsx:87

Language used to resolve localized product names in the items table. Defaults to 'NL'.


limit?

optional limit?: number

Defined in: components/PurchaseAuthorizationRequests.tsx:30

Limit the number of requests shown (e.g. 3 = last 3 modified). undefined = show all


onAcceptRequest?

optional onAcceptRequest?: (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?

optional onDeleteRequest?: (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?

optional onError?: (err) => void

Defined in: components/PurchaseAuthorizationRequests.tsx:99

Called when an SDK operation fails; receives the normalized error

Parameters

err

Error

Returns

void


showActions?

optional showActions?: boolean

Defined in: components/PurchaseAuthorizationRequests.tsx:39

Show the actions column and its buttons. Defaults to true.


user?

optional user?: Contact | Customer

Defined in: components/PurchaseAuthorizationRequests.tsx:24

The logged-in user. Resolved from PropellerProvider when omitted.