-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated API from documentation release
- Loading branch information
1 parent
c5211df
commit c163df6
Showing
16 changed files
with
125 additions
and
5 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
api-specs/api/examples/BusinessUnit/BusinessUnitChangeApprovalRuleModeAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"action": "changeApprovalRuleMode", | ||
"approvalRuleMode": "Explicit" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
api-specs/api/types/business-unit/BusinessUnitApprovalRuleMode.raml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#%RAML 1.0 DataType | ||
(package): BusinessUnit | ||
displayName: BusinessUnitApprovalRuleMode | ||
type: string | ||
description: | | ||
Determines whether a Business Unit can inherit [Approval Rules](/projects/approval-rules) from a parent. Only Business Units of type `Division` can use `ExplicitAndFromParent`. | ||
enum: | ||
- Explicit | ||
- ExplicitAndFromParent | ||
(enumDescriptions): | ||
Explicit: | | ||
Approval Rules of a Business Unit must be explicitly assigned. The Business Unit cannot inherit Approval Rules from a parent. | ||
ExplicitAndFromParent: | | ||
Approval Rules of a Business Unit are inherited from a parent and can also be explicitly assigned. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
api-specs/api/types/business-unit/updates/BusinessUnitChangeApprovalRuleModeAction.raml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#%RAML 1.0 DataType | ||
(package): BusinessUnit | ||
type: BusinessUnitUpdateAction | ||
displayName: BusinessUnitChangeApprovalRuleModeAction | ||
discriminatorValue: changeApprovalRuleMode | ||
example: !include ../../../examples/BusinessUnit/BusinessUnitChangeApprovalRuleModeAction.json | ||
description: | | ||
Updates [Approval Rules](/projects/approval-rules) inheritance behavior between Business Units. | ||
Only Business Units of type `Division` can be changed to `ExplicitAndFromParent`. | ||
This update action generates a [BusinessUnitApprovalRuleModeChanged](ctp:api:type:BusinessUnitApprovalRuleModeChangedMessage) Message. | ||
properties: | ||
approvalRuleMode: | ||
type: BusinessUnitApprovalRuleMode | ||
description: | | ||
The new value for `approvalRuleMode`. |
16 changes: 16 additions & 0 deletions
16
api-specs/api/types/message/BusinessUnitApprovalRuleModeChangedMessage.raml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#%RAML 1.0 DataType | ||
(package): Message | ||
type: Message | ||
displayName: BusinessUnitApprovalRuleModeChangedMessage | ||
discriminatorValue: BusinessUnitApprovalRuleModeChanged | ||
description: | | ||
Generated after a successful [Change Approval Rule Mode](ctp:api:type:BusinessUnitChangeApprovalRuleModeAction) update action. | ||
properties: | ||
approvalRuleMode: | ||
type: BusinessUnitApprovalRuleMode | ||
description: | | ||
[BusinessUnitApprovalRuleMode](ctp:api:type:BusinessUnitApprovalRuleMode) of the Business Unit after the [Change Approval Rule Mode](ctp:api:type:BusinessUnitChangeApprovalRuleModeAction) update action. | ||
oldApprovalRuleMode?: | ||
type: BusinessUnitApprovalRuleMode | ||
description: | | ||
[BusinessUnitApprovalRuleMode](ctp:api:type:BusinessUnitApprovalRuleMode) of the Business Unit before the [Change Approval Rule Mode](ctp:api:type:BusinessUnitChangeApprovalRuleModeAction) update action. |
16 changes: 16 additions & 0 deletions
16
api-specs/api/types/message/payload/BusinessUnitApprovalRuleModeChangedMessagePayload.raml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#%RAML 1.0 DataType | ||
(package): Message | ||
type: MessagePayload | ||
displayName: BusinessUnitApprovalRuleModeChangedMessagePayload | ||
discriminatorValue: BusinessUnitApprovalRuleModeChanged | ||
description: | | ||
Generated after a successful [Change Approval Rule Mode](ctp:api:type:BusinessUnitChangeApprovalRuleModeAction) update action. | ||
properties: | ||
approvalRuleMode: | ||
type: BusinessUnitApprovalRuleMode | ||
description: | | ||
[BusinessUnitApprovalRuleMode](ctp:api:type:BusinessUnitApprovalRuleMode) of the Business Unit after the [Change Approval Rule Mode](ctp:api:type:BusinessUnitChangeApprovalRuleModeAction) update action. | ||
oldApprovalRuleMode?: | ||
type: BusinessUnitApprovalRuleMode | ||
description: | | ||
[BusinessUnitApprovalRuleMode](ctp:api:type:BusinessUnitApprovalRuleMode) of the Business Unit before the [Change Approval Rule Mode](ctp:api:type:BusinessUnitChangeApprovalRuleModeAction) update action. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters