-
Notifications
You must be signed in to change notification settings - Fork 30
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
00498ad
commit d54ef63
Showing
9 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
api-specs/api/examples/ApprovalFlow/ApprovalFlowSetCustomFieldAction.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,5 @@ | ||
{ | ||
"action": "setCustomField", | ||
"name": "ExampleStringTypeField", | ||
"value": "TextString" | ||
} |
10 changes: 10 additions & 0 deletions
10
api-specs/api/examples/ApprovalFlow/ApprovalFlowSetCustomTypeAction.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,10 @@ | ||
{ | ||
"action": "setCustomType", | ||
"type": { | ||
"id": "{{type-id}}", | ||
"typeId": "type" | ||
}, | ||
"fields": { | ||
"exampleStringTypeField": "TextString" | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
api-specs/api/types/approval-flow/ApprovalFlowSetCustomFieldAction.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,18 @@ | ||
#%RAML 1.0 DataType | ||
(package): ApprovalFlow | ||
(docs-uri): https://docs.commercetools.com/api/projects/approvalflows#set-custom-field | ||
type: ApprovalFlowUpdateAction | ||
displayName: ApprovalFlowSetCustomFieldAction | ||
discriminatorValue: setCustomField | ||
example: !include ../../examples/ApprovalFlow/ApprovalFlowSetCustomFieldAction.json | ||
properties: | ||
name: | ||
type: string | ||
description: | | ||
Name of the [Custom Field](ctp:api:type:CustomFields). | ||
value?: | ||
type: CustomFieldValue | ||
description: | | ||
If `value` is absent or `null`, this field will be removed if it exists. | ||
Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error. | ||
If `value` is provided, it is set for the field defined by `name`. |
17 changes: 17 additions & 0 deletions
17
api-specs/api/types/approval-flow/ApprovalFlowSetCustomTypeAction.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): ApprovalFlow | ||
(docs-uri): https://docs.commercetools.com/api/projects/approvalflows#set-custom-type | ||
type: ApprovalFlowUpdateAction | ||
displayName: ApprovalFlowSetCustomTypeAction | ||
discriminatorValue: setCustomType | ||
example: !include ../../examples/ApprovalFlow/ApprovalFlowSetCustomTypeAction.json | ||
properties: | ||
type?: | ||
type: TypeResourceIdentifier | ||
description: | | ||
Defines the [Type](ctp:api:type:Type) that extends the ApprovalFlow with [Custom Fields](ctp:api:type:CustomFields). | ||
If absent, any existing Type and Custom Fields are removed from the ApprovalFlow. | ||
fields?: | ||
type: FieldContainer | ||
description: | | ||
Sets the [Custom Fields](ctp:api:type:CustomFields) fields for the ApprovalFlow. |
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