ApprovalRuleAttributes
Attributes for creating and updating an approval rule. The ApprovalRuleAttributes input type in Bunny's GraphQL API, with its fields and an example.
{
"name": "",
"active": true,
"fromDate": "2022-06-01",
"toDate": "2022-06-01",
"approverIds": [
"456123"
],
"approverId": "456123",
"requireUnanimousApproval": true,
"totalQuoteAmount": 123,
"totalQuoteAmountEnabled": true,
"netPaymentDays": 123,
"netPaymentDaysEnabled": true,
"overallQuoteDiscount": 123,
"overallQuoteDiscountEnabled": true,
"anyDiscountEnabled": true,
"anyDiscount": 123,
"productIdEnabled": true,
"productId": "456123",
"planIdEnabled": true,
"planId": "456123",
"billingPeriodEnabled": true,
"billingPeriod": "BillingPeriod",
"isRampEnabled": true
}
| Name | Type | Description |
|---|---|---|
| name | String | Name of the approval rule |
| active | Boolean | Rule will be applied when active |
| fromDate | ISO8601Date | First date the rule will apply |
| toDate | ISO8601Date | Late date the rule will apply |
| approverIds | List (ID) | Approvers for this rule (all must approve when the rule triggers) |
| approverId | ID | Single approver id |
| requireUnanimousApproval | Boolean | Require all approvers to approve for this rule |
| totalQuoteAmount | Int | |
| totalQuoteAmountEnabled | Boolean | |
| netPaymentDays | Int | |
| netPaymentDaysEnabled | Boolean | |
| overallQuoteDiscount | Int | |
| overallQuoteDiscountEnabled | Boolean | |
| anyDiscountEnabled | Boolean | |
| anyDiscount | Int | |
| productIdEnabled | Boolean | |
| productId | ID | |
| planIdEnabled | Boolean | |
| planId | ID | |
| billingPeriodEnabled | Boolean | |
| billingPeriod | BillingPeriod | |
| isRampEnabled | Boolean |