interface ApprovalRule {
    approvers: ApproverHierarchy;
    businessUnit: BusinessUnitKeyReference;
    createdAt: string;
    createdBy?: CreatedBy;
    description?: string;
    id: string;
    key?: string;
    lastModifiedAt: string;
    lastModifiedBy?: LastModifiedBy;
    name: string;
    predicate: string;
    requesters: RuleRequester[];
    status: string;
    version: number;
}

Hierarchy (view full)

Properties

The hierarchy of approvers within the Approval Rule.

The Business Unit the Approval Rule belongs to.

createdAt: string

Date and time (UTC) the Approval Rule was initially created.

createdBy?: CreatedBy

IDs and references that created the ApprovalRule.

description?: string

Description of the Approval Rule.

id: string

Unique identifier of the Approval Rule.

key?: string

User-defined unique identifier of the Approval Rule. Must be unique within a Business Unit.

lastModifiedAt: string

Date and time (UTC) the Approval Rule was last updated.

lastModifiedBy?: LastModifiedBy

IDs and references that last modified the ApprovalRule.

name: string

Name of the Approval Rule.

predicate: string

The Order Predicate describing the Orders the Approval Rule should match against.

requesters: RuleRequester[]

The Associate Roles customers must hold for their Order to require approval.

status: string

Indicates whether the Approval Rule should be matched against Orders or not.

version: number

Current version of the Approval Rule.