Skip to main content

Interface: PurchaseAuthorizationConfiguratorProps

Defined in: components/PurchaseAuthorizationConfigurator.tsx:15

Properties

afterContactCreate?

optional afterContactCreate?: (contact) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:38

Fires after a contact is registered. If not provided, refreshes contacts list.

Parameters

contact

Contact

Returns

void


afterPurchaseAuthorizationCreate?

optional afterPurchaseAuthorizationCreate?: (pac) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:44

Fires after a PAC is created. If not provided, refreshes contacts list.

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


afterPurchaseAuthorizationDelete?

optional afterPurchaseAuthorizationDelete?: (deleted) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:56

Fires after a PAC is deleted. If not provided, refreshes contacts list.

Parameters

deleted

boolean

Returns

void


afterPurchaseAuthorizationUpdate?

optional afterPurchaseAuthorizationUpdate?: (pac) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:50

Fires after a PAC is updated. If not provided, refreshes contacts list.

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


allowContactCreate?

optional allowContactCreate?: boolean

Defined in: components/PurchaseAuthorizationConfigurator.tsx:29

Adds a button "Add contact" above the contacts list and enables registering contacts

Default

true

beforeContactCreate?

optional beforeContactCreate?: (input) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:32

Fires before a contact is added to the company

Parameters

input

RegisterContactInput

Returns

void


className?

optional className?: string

Defined in: components/PurchaseAuthorizationConfigurator.tsx:62

Custom CSS class for the component


companyId?

optional companyId?: number

Defined in: components/PurchaseAuthorizationConfigurator.tsx:23

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


configuration?

optional configuration?: Record<string, any>

Defined in: components/PurchaseAuthorizationConfigurator.tsx:65

Configuration object from the application


graphqlClient?

optional graphqlClient?: GraphQLClient

Defined in: components/PurchaseAuthorizationConfigurator.tsx:17

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


labels?

optional labels?: Record<string, string>

Defined in: components/PurchaseAuthorizationConfigurator.tsx:59

Labels for the component


onContactCreate?

optional onContactCreate?: (input) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:35

Override: fires instead of the default UserService.registerContact() call

Parameters

input

RegisterContactInput

Returns

void


onPurchaseAuthorizationCreate?

optional onPurchaseAuthorizationCreate?: (pac) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:41

Override: fires instead of the default PurchaseAuthorizationConfigCreateInput() call

Parameters

pac

PurchaseAuthorizationConfigCreateInput

Returns

void


onPurchaseAuthorizationDelete?

optional onPurchaseAuthorizationDelete?: (pac) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:53

Override: fires instead of the default deletePurchaseAuthorizationConfig() call

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


onPurchaseAuthorizationUpdate?

optional onPurchaseAuthorizationUpdate?: (pac) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:47

Override: fires instead of the default updatePurchaseAuthorizationConfig() call

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


user?

optional user?: Contact | Customer

Defined in: components/PurchaseAuthorizationConfigurator.tsx:20

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