Skip to main content

Interface: PurchaseAuthorizationConfiguratorProps

Defined in: components/PurchaseAuthorizationConfigurator.tsx:16

Properties

afterContactCreate?

optional afterContactCreate?: (contact) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:39

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

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

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

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

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

Fires before a contact is added to the company

Parameters

input

RegisterContactInput

Returns

void


className?

optional className?: string

Defined in: components/PurchaseAuthorizationConfigurator.tsx:63

Custom CSS class for the component


companyId?

optional companyId?: number

Defined in: components/PurchaseAuthorizationConfigurator.tsx:24

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


configuration?

optional configuration?: Record<string, any>

Defined in: components/PurchaseAuthorizationConfigurator.tsx:66

Configuration object from the application


graphqlClient?

optional graphqlClient?: GraphQLClient

Defined in: components/PurchaseAuthorizationConfigurator.tsx:18

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


labels?

optional labels?: Record<string, string>

Defined in: components/PurchaseAuthorizationConfigurator.tsx:60

Labels for the component


onContactCreate?

optional onContactCreate?: (input) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:36

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

Parameters

input

RegisterContactInput

Returns

void


onPurchaseAuthorizationCreate?

optional onPurchaseAuthorizationCreate?: (pac) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:42

Override: fires instead of the default PurchaseAuthorizationConfigCreateInput() call

Parameters

pac

PurchaseAuthorizationConfigCreateInput

Returns

void


onPurchaseAuthorizationDelete?

optional onPurchaseAuthorizationDelete?: (pac) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:54

Override: fires instead of the default deletePurchaseAuthorizationConfig() call

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


onPurchaseAuthorizationUpdate?

optional onPurchaseAuthorizationUpdate?: (pac) => void

Defined in: components/PurchaseAuthorizationConfigurator.tsx:48

Override: fires instead of the default updatePurchaseAuthorizationConfig() call

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


user?

optional user?: Contact | Customer

Defined in: components/PurchaseAuthorizationConfigurator.tsx:21

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