Skip to main content

Interface: UsePurchaseAuthorizationRequestsOptions

Defined in: composables/react/usePurchaseAuthorization.ts:412

Options for usePurchaseAuthorizationRequests.

Properties

afterAcceptRequest?

optional afterAcceptRequest?: (cart) => void

Defined in: composables/react/usePurchaseAuthorization.ts:428

Fires after a request is accepted — receives the resulting cart.

Parameters

cart

Cart

Returns

void


afterDeleteRequest?

optional afterDeleteRequest?: (cartId) => void

Defined in: composables/react/usePurchaseAuthorization.ts:435

Called AFTER a successful delete. Receives the deleted cart's id.

Parameters

cartId

string

Returns

void


companyId

companyId: number

Defined in: composables/react/usePurchaseAuthorization.ts:418

Company whose pending authorization requests are listed.


configuration?

optional configuration?: object

Defined in: composables/react/usePurchaseAuthorization.ts:420

Portal configuration: language plus image search/variant filters.

imageSearchFiltersGrid?

optional imageSearchFiltersGrid?: MediaImageProductSearchInput

imageVariantFiltersSmall?

optional imageVariantFiltersSmall?: TransformationsInput

language?

optional language?: string


graphqlClient

graphqlClient: GraphQLClient

Defined in: composables/react/usePurchaseAuthorization.ts:414

GraphQL client the hook derives its Services bundle from.


onAcceptRequest?

optional onAcceptRequest?: (cartId) => void

Defined in: composables/react/usePurchaseAuthorization.ts:426

Override: fires instead of the default accept-request call.

Parameters

cartId

string

Returns

void


onDeleteRequest?

optional onDeleteRequest?: (cartId) => void

Defined in: composables/react/usePurchaseAuthorization.ts:433

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: composables/react/usePurchaseAuthorization.ts:437

Fires when any request operation throws.

Parameters

err

Error

Returns

void


user

user: Contact | Customer | null

Defined in: composables/react/usePurchaseAuthorization.ts:416

The signed-in user; the accepting contact and auth-manager check come from here.