-
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
b73499a
commit 3ee2d90
Showing
24 changed files
with
215 additions
and
5 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
api-specs/api/examples/Customer/CustomerAddCustomerGroupAssignmentAction.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,9 @@ | ||
{ | ||
"action": "addCustomerGroupAssignment", | ||
"customerGroupAssignment": { | ||
"customerGroup": { | ||
"id": "{{customer-group-id}}", | ||
"typeId": "customer-group" | ||
} | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"customerGroup": { | ||
"typeId": "customer-group", | ||
"id": "customer-group-1" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
api-specs/api/examples/Customer/CustomerRemoveCustomerGroupAssignmentAction.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,7 @@ | ||
{ | ||
"action": "removeCustomerGroupAssignment", | ||
"customerGroup": { | ||
"id": "{{customer-group-id}}", | ||
"typeId": "customer-group" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
api-specs/api/examples/Customer/CustomerSetCustomerGroupAssignmentsAction.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,17 @@ | ||
{ | ||
"action": "setCustomerGroupAssignments", | ||
"customerGroupAssignments": [ | ||
{ | ||
"customerGroup": { | ||
"id": "{{customer-group-id-1}}", | ||
"typeId": "customer-group" | ||
} | ||
}, | ||
{ | ||
"customerGroup": { | ||
"id": "{{customer-group-id-2}}", | ||
"typeId": "customer-group" | ||
} | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#%RAML 1.0 DataType | ||
(package): Customer | ||
type: object | ||
(beta): true | ||
displayName: CustomerGroupAssignment | ||
example: !include ../../examples/Customer/CustomerGroupAssignment.json | ||
description: | | ||
Represents an individual Customer Group assignment as a [Reference](ctp:api:type:Reference) to a [CustomerGroup](ctp:api:type:CustomerGroup). | ||
properties: | ||
customerGroup: | ||
type: CustomerGroupReference | ||
description: | | ||
Reference to a Customer Group. |
10 changes: 10 additions & 0 deletions
10
api-specs/api/types/customer/CustomerGroupAssignmentDraft.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,10 @@ | ||
#%RAML 1.0 DataType | ||
(package): Customer | ||
displayName: CustomerGroupAssignmentDraft | ||
type: object | ||
(beta): true | ||
properties: | ||
customerGroup: | ||
type: CustomerGroupResourceIdentifier | ||
description: | | ||
ResourceIdentifier of a Customer Group. |
14 changes: 14 additions & 0 deletions
14
api-specs/api/types/customer/updates/CustomerAddCustomerGroupAssignmentAction.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): Customer | ||
type: CustomerUpdateAction | ||
(beta): true | ||
displayName: CustomerAddCustomerGroupAssignmentAction | ||
discriminatorValue: addCustomerGroupAssignment | ||
example: !include ../../../examples/Customer/CustomerAddCustomerGroupAssignmentAction.json | ||
description: | | ||
Adds a single Customer Group to the Customer's list of `customerGroupAssignments`. Adding a Customer Group generates the [CustomerGroupAssignmentAdded](ctp:api:type:CustomerGroupAssignmentAddedMessage) Message. | ||
properties: | ||
customerGroupAssignment: | ||
type: CustomerGroupAssignmentDraft | ||
description: | | ||
Customer Group to assign to the Customer. |
14 changes: 14 additions & 0 deletions
14
api-specs/api/types/customer/updates/CustomerRemoveCustomerGroupAssignmentAction.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): Customer | ||
type: CustomerUpdateAction | ||
(beta): true | ||
displayName: CustomerRemoveCustomerGroupAssignmentAction | ||
discriminatorValue: removeCustomerGroupAssignment | ||
example: !include ../../../examples/Customer/CustomerRemoveCustomerGroupAssignmentAction.json | ||
description: | | ||
Unassigns a Customer Group from a Customer. Unassigning a Customer Group generates the [CustomerGroupAssignmentRemoved](ctp:api:type:CustomerGroupAssignmentRemovedMessage) Message. | ||
properties: | ||
customerGroup: | ||
type: CustomerGroupResourceIdentifier | ||
description: | | ||
Customer Group to unassign from the Customer. |
14 changes: 14 additions & 0 deletions
14
api-specs/api/types/customer/updates/CustomerSetCustomerGroupAssignmentsAction.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): Customer | ||
type: CustomerUpdateAction | ||
(beta): true | ||
displayName: CustomerSetCustomerGroupAssignmentsAction | ||
discriminatorValue: setCustomerGroupAssignments | ||
example: !include ../../../examples/Customer/CustomerSetCustomerGroupAssignmentsAction.json | ||
description: | | ||
Assigns multiple Customer Groups to a Customer. Assigning Customer Groups generates the [CustomerGroupAssignmentsSetMessage](ctp:api:type:CustomerGroupAssignmentsSetMessage) Message. | ||
properties: | ||
customerGroupAssignments: | ||
type: CustomerGroupAssignmentDraft[] | ||
description: | | ||
Customer Groups to assign to the Customer. |
13 changes: 13 additions & 0 deletions
13
api-specs/api/types/message/CustomerGroupAssignmentAddedMessage.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,13 @@ | ||
#%RAML 1.0 DataType | ||
(package): Message | ||
type: Message | ||
(beta): true | ||
displayName: CustomerGroupAssignmentAddedMessage | ||
discriminatorValue: CustomerGroupAssignmentAdded | ||
description: | | ||
Generated after a successful [Add CustomerGroupAssignment](ctp:api:type:CustomerAddCustomerGroupAssignmentAction) update action. | ||
properties: | ||
customerGroupAssignment: | ||
type: CustomerGroupAssignment | ||
description: | | ||
[CustomerGroupAssignment](ctp:api:type:CustomerGroupAssignment) that was added during the [Add CustomerGroupAssignment](ctp:api:type:CustomerAddCustomerGroupAssignmentAction) update action. |
13 changes: 13 additions & 0 deletions
13
api-specs/api/types/message/CustomerGroupAssignmentRemovedMessage.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,13 @@ | ||
#%RAML 1.0 DataType | ||
(package): Message | ||
type: Message | ||
(beta): true | ||
displayName: CustomerGroupAssignmentRemovedMessage | ||
discriminatorValue: CustomerGroupAssignmentRemoved | ||
description: | | ||
Generated after a successful [Remove CustomerGroupAssignment](ctp:api:type:CustomerRemoveCustomerGroupAssignmentAction) update action. | ||
properties: | ||
customerGroupAssignment: | ||
type: CustomerGroupReference | ||
description: | | ||
[CustomerGroupAssignment](ctp:api:type:CustomerGroupAssignment) that was removed during the [Remove CustomerGroupAssignment](ctp:api:type:CustomerRemoveCustomerGroupAssignmentAction) update action. |
13 changes: 13 additions & 0 deletions
13
api-specs/api/types/message/CustomerGroupAssignmentsSetMessage.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,13 @@ | ||
#%RAML 1.0 DataType | ||
(package): Message | ||
type: Message | ||
(beta): true | ||
displayName: CustomerGroupAssignmentsSetMessage | ||
discriminatorValue: CustomerGroupAssignmentsSet | ||
description: | | ||
Generated after a successful [Set CustomerGroupAssignments](ctp:api:type:CustomerSetCustomerGroupAssignmentsAction) update action. | ||
properties: | ||
customerGroupAssignments?: | ||
type: CustomerGroupAssignment[] | ||
description: | | ||
List of [CustomerGroupAssignments](ctp:api:type:CustomerGroupAssignment) that were set during the [Set CustomerGroupAssignments](ctp:api:type:CustomerSetCustomerGroupAssignmentsAction) update action. |
13 changes: 13 additions & 0 deletions
13
api-specs/api/types/message/payload/CustomerGroupAssignmentAddedMessagePayload.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,13 @@ | ||
#%RAML 1.0 DataType | ||
(package): Message | ||
type: MessagePayload | ||
(beta): true | ||
displayName: CustomerGroupAssignmentAddedMessagePayload | ||
discriminatorValue: CustomerGroupAssignmentAdded | ||
description: | | ||
Generated after a successful [Add CustomerGroupAssignment](ctp:api:type:CustomerAddCustomerGroupAssignmentAction) update action. | ||
properties: | ||
customerGroupAssignment: | ||
type: CustomerGroupAssignment | ||
description: | | ||
[CustomerGroupAssignment](ctp:api:type:CustomerGroupAssignment) that was added during the [Add CustomerGroupAssignment](ctp:api:type:CustomerAddCustomerGroupAssignmentAction) update action. |
13 changes: 13 additions & 0 deletions
13
api-specs/api/types/message/payload/CustomerGroupAssignmentRemovedMessagePayload.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,13 @@ | ||
#%RAML 1.0 DataType | ||
(package): Message | ||
type: MessagePayload | ||
(beta): true | ||
displayName: CustomerGroupAssignmentRemovedMessagePayload | ||
discriminatorValue: CustomerGroupAssignmentRemoved | ||
description: | | ||
Generated after a successful [Remove CustomerGroupAssignment](ctp:api:type:CustomerRemoveCustomerGroupAssignmentAction) update action. | ||
properties: | ||
customerGroupAssignment: | ||
type: CustomerGroupReference | ||
description: | | ||
[CustomerGroupAssignment](ctp:api:type:CustomerGroupAssignment) that was removed during the [Remove CustomerGroupAssignment](ctp:api:type:CustomerRemoveCustomerGroupAssignmentAction) update action. |
13 changes: 13 additions & 0 deletions
13
api-specs/api/types/message/payload/CustomerGroupAssignmentsSetMessagePayload.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,13 @@ | ||
#%RAML 1.0 DataType | ||
(package): Message | ||
type: MessagePayload | ||
(beta): true | ||
displayName: CustomerGroupAssignmentsSetMessagePayload | ||
discriminatorValue: CustomerGroupAssignmentsSet | ||
description: | | ||
Generated after a successful [Set CustomerGroupAssignments](ctp:api:type:CustomerSetCustomerGroupAssignmentsAction) update action. | ||
properties: | ||
customerGroupAssignments?: | ||
type: CustomerGroupAssignment[] | ||
description: | | ||
List of [CustomerGroupAssignments](ctp:api:type:CustomerGroupAssignment) that were set during the [Set CustomerGroupAssignments](ctp:api:type:CustomerSetCustomerGroupAssignmentsAction) 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
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