Skip to main content

Interface: PurchaseAuthorizationRequestsProps

Defined in: components/PurchaseAuthorizationRequests.tsx:18

Properties

afterAcceptRequest?

optional afterAcceptRequest?: (cart) => void

Defined in: components/PurchaseAuthorizationRequests.tsx:38

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:50

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:68

Additional CSS class for the root element


companyId?

optional companyId?: number

Defined in: components/PurchaseAuthorizationRequests.tsx:26

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


configuration?

optional configuration?: Record<string, any>

Defined in: components/PurchaseAuthorizationRequests.tsx:74

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


currency?

optional currency?: string

Defined in: components/PurchaseAuthorizationRequests.tsx:59

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


formatDate?

optional formatDate?: (dateString) => string

Defined in: components/PurchaseAuthorizationRequests.tsx:53

Format date

Parameters

dateString

string

Returns

string


formatPrice?

optional formatPrice?: (price) => string

Defined in: components/PurchaseAuthorizationRequests.tsx:56

Format price

Parameters

price

number

Returns

string


graphqlClient?

optional graphqlClient?: GraphQLClient

Defined in: components/PurchaseAuthorizationRequests.tsx:20

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


labels?

optional labels?: Record<string, string>

Defined in: components/PurchaseAuthorizationRequests.tsx:62

Labels for the component


language?

optional language?: string

Defined in: components/PurchaseAuthorizationRequests.tsx:65

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


onAcceptRequest?

optional onAcceptRequest?: (cartId) => void

Defined in: components/PurchaseAuthorizationRequests.tsx:32

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:44

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:77

Called when an SDK operation fails; receives the normalized error

Parameters

err

Error

Returns

void


user?

optional user?: Contact | Customer

Defined in: components/PurchaseAuthorizationRequests.tsx:23

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