-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated api-reference from documentation release (#1840)
Co-authored-by: Auto Mation <[email protected]> Co-authored-by: Timon Rey Turak <[email protected]>
- Loading branch information
1 parent
3f558ea
commit 2a6133c
Showing
23 changed files
with
396 additions
and
12 deletions.
There are no files selected for viewing
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,169 @@ | ||
{ | ||
"limit": 20, | ||
"offset": 0, | ||
"count": 1, | ||
"total": 1, | ||
"results": [ | ||
{ | ||
"id": "0bd46ab0-ab12-4191-be2a-749e4f0453ef", | ||
"version": 2, | ||
"createdAt": "2023-06-12T14:43:46.096Z", | ||
"lastModifiedAt": "2023-06-12T14:43:46.202Z", | ||
"lastModifiedBy": { | ||
"clientId": "EH-PdRPKst38wygJuKChVlBS", | ||
"isPlatformClient": false | ||
}, | ||
"createdBy": { | ||
"clientId": "EH-PdRPKst38wygJuKChVlBS", | ||
"isPlatformClient": false | ||
}, | ||
"order": { | ||
"typeId": "order", | ||
"id": "f6c6cd95-0a09-4dd6-9253-1cd27c70b184" | ||
}, | ||
"businessUnit": { | ||
"typeId": "business-unit", | ||
"key": "bu-key" | ||
}, | ||
"rules": [ | ||
{ | ||
"id": "ff806a85-1457-4cef-929a-79aefe85f02d", | ||
"version": 1, | ||
"lastMessageSequenceNumber": 1, | ||
"createdAt": "2023-06-12T14:43:45.732Z", | ||
"lastModifiedAt": "2023-06-12T14:43:45.732Z", | ||
"lastModifiedBy": { | ||
"clientId": "EH-PdRPKst38wygJuKChVlBS", | ||
"isPlatformClient": false | ||
}, | ||
"createdBy": { | ||
"clientId": "EH-PdRPKst38wygJuKChVlBS", | ||
"isPlatformClient": false | ||
}, | ||
"key": "ar-key", | ||
"name": "name", | ||
"description": "description", | ||
"status": "Active", | ||
"predicate": "customer.email = \"[email protected]\"", | ||
"approvers": { | ||
"tiers": [ | ||
{ | ||
"and": [ | ||
{ | ||
"or": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver0" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"or": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver1" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"and": [ | ||
{ | ||
"or": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver2" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"requesters": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "requester" | ||
} | ||
} | ||
], | ||
"businessUnit": { | ||
"typeId": "business-unit", | ||
"key": "bu-key" | ||
} | ||
} | ||
], | ||
"status": "Pending", | ||
"approvals": [ | ||
{ | ||
"approver": { | ||
"customer": { | ||
"typeId": "customer", | ||
"id": "9c95aece-ccfa-4cc2-98c5-6b7a5e474361" | ||
}, | ||
"associateRoleAssignments": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver0" | ||
}, | ||
"inheritance": "Disabled" | ||
} | ||
] | ||
}, | ||
"approvedAt": "2023-04-06T17:41:28.123Z" | ||
} | ||
], | ||
"eligibleApprovers": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver0" | ||
} | ||
}, | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver1" | ||
} | ||
}, | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver2" | ||
} | ||
} | ||
], | ||
"pendingApprovers": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver1" | ||
} | ||
}, | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver2" | ||
} | ||
} | ||
], | ||
"currentTierPendingApprovers": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "approver1" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
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,61 @@ | ||
{ | ||
"limit": 20, | ||
"offset": 0, | ||
"count": 1, | ||
"total": 1, | ||
"results": [ | ||
{ | ||
"id": "aba82d3f-ee7d-4a86-a4ca-adf0b2d711d0", | ||
"version": 1, | ||
"createdAt": "2023-02-20T16:15:51.043Z", | ||
"lastModifiedAt": "2023-02-20T16:15:51.043Z", | ||
"lastModifiedBy": { | ||
"clientId": "U3r9iqphXgPkoWTrIsTiKAl1", | ||
"isPlatformClient": false | ||
}, | ||
"createdBy": { | ||
"clientId": "U3r9iqphXgPkoWTrIsTiKAl1", | ||
"isPlatformClient": false | ||
}, | ||
"name": "my approval rule", | ||
"status": "Inactive", | ||
"predicate": "totalPrice.centAmount >= 100000", | ||
"approvers": { | ||
"tiers": [ | ||
{ | ||
"and": [ | ||
{ | ||
"or": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "project-team-lead" | ||
} | ||
}, | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "project-team-lead-substitute" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"requesters": [ | ||
{ | ||
"associateRole": { | ||
"typeId": "associate-role", | ||
"key": "project-manager" | ||
} | ||
} | ||
], | ||
"businessUnit": { | ||
"typeId": "business-unit", | ||
"key": "commercetools" | ||
} | ||
} | ||
] | ||
} |
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
35 changes: 35 additions & 0 deletions
35
api-specs/api/types/approval-flow/ApprovalFlowPagedQueryResponse.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,35 @@ | ||
#%RAML 1.0 DataType | ||
(package): ApprovalFlow | ||
displayName: ApprovalFlowPagedQueryResponse | ||
type: object | ||
description: | | ||
[PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [ApprovalFlow](ctp:api:type:ApprovalFlow). | ||
properties: | ||
limit: | ||
type: number | ||
format: int64 | ||
description: | | ||
Number of [results requested](/../api/general-concepts#limit). | ||
offset: | ||
type: number | ||
format: int64 | ||
description: | | ||
Number of [elements skipped](/../api/general-concepts#offset). | ||
count: | ||
type: number | ||
format: int64 | ||
description: | | ||
Actual number of results returned. | ||
total?: | ||
type: number | ||
format: int64 | ||
description: | | ||
Total number of results matching the query. | ||
This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency). | ||
This field is returned by default. | ||
For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`. | ||
When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries). | ||
results: | ||
type: ApprovalFlow[] | ||
description: | | ||
Approval Flows matching the query. |
35 changes: 35 additions & 0 deletions
35
api-specs/api/types/approval-rule/ApprovalRulePagedQueryResponse.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,35 @@ | ||
#%RAML 1.0 DataType | ||
(package): ApprovalRule | ||
displayName: ApprovalRulePagedQueryResponse | ||
type: object | ||
description: | | ||
[PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [ApprovalRule](ctp:api:type:ApprovalRule). | ||
properties: | ||
limit: | ||
type: number | ||
format: int64 | ||
description: | | ||
Number of [results requested](/../api/general-concepts#limit). | ||
offset: | ||
type: number | ||
format: int64 | ||
description: | | ||
Number of [elements skipped](/../api/general-concepts#offset). | ||
count: | ||
type: number | ||
format: int64 | ||
description: | | ||
Actual number of results returned. | ||
total?: | ||
type: number | ||
format: int64 | ||
description: | | ||
Total number of results matching the query. | ||
This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency). | ||
This field is returned by default. | ||
For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`. | ||
When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries). | ||
results: | ||
type: ApprovalRule[] | ||
description: | | ||
Approval Rules matching the query. |
8 changes: 8 additions & 0 deletions
8
api-specs/api/types/cart-discount/CartDiscountTotalPriceTarget.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,8 @@ | ||
#%RAML 1.0 DataType | ||
(package): CartDiscount | ||
(beta): true | ||
type: CartDiscountTarget | ||
displayName: CartDiscountTotalPriceTarget | ||
discriminatorValue: totalPrice | ||
description: | | ||
Discount is applied to the total price of the [Cart](ctp:api:type:Cart). |
Oops, something went wrong.