-
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
- Loading branch information
Auto Mation
committed
Sep 24, 2024
1 parent
575820a
commit 81ab2c9
Showing
124 changed files
with
2,020 additions
and
490 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"currencyCode": "EUR", | ||
"centAmount": 40099 | ||
} | ||
] | ||
], | ||
"applicationMode": "IndividualApplication" | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
api-specs/api/examples/Warning/ImageProcessingOngoingWarning.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 @@ | ||
{ | ||
"code": "ImageProcessingOngoing", | ||
"message": "The image processing is still ongoing." | ||
} |
21 changes: 21 additions & 0 deletions
21
api-specs/api/examples/extension-update-response.example.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,21 @@ | ||
{ | ||
"id": "8062243c-46fc-40b5-88a4-75e2216aef75", | ||
"version": 2, | ||
"createdAt": "2017-01-25T14:14:22.417Z", | ||
"lastModifiedAt": "2024-08-06T13:49:48.511Z", | ||
"destination": { | ||
"type": "HTTP", | ||
"url": "https://example.azurewebsites.net/api/extension", | ||
"authentication": { | ||
"type": "AzureFunctions", | ||
"key": "****code" | ||
} | ||
}, | ||
"triggers": [ | ||
{ | ||
"resourceTypeId": "cart", | ||
"actions": ["Create", "Update"] | ||
} | ||
], | ||
"key": "my-new-extension-key" | ||
} |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"version": 1, | ||
"actions": [{ | ||
"action": "setKey", | ||
"key": "my-new-extension-key" | ||
}] | ||
"actions": [ | ||
{ | ||
"action": "setKey", | ||
"key": "my-new-extension-key" | ||
} | ||
] | ||
} |
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
82 changes: 82 additions & 0 deletions
82
api-specs/api/examples/product-tailoring-with-image-processing-warning.example.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,82 @@ | ||
{ | ||
"id": "207ee692-6002-4570-a78c-d15e7adbebbb", | ||
"version": 2, | ||
"versionModifiedAt": "2023-09-01T13:41:50.662Z", | ||
"createdAt": "2023-09-01T13:26:10.475Z", | ||
"lastModifiedAt": "2023-09-01T13:26:10.475Z", | ||
"lastModifiedBy": { | ||
"clientId": "ywjliB_u26xzmcJNKznjbJp4", | ||
"isPlatformClient": false | ||
}, | ||
"createdBy": { | ||
"clientId": "ywjliB_u26xzmcJNKznjbJp4", | ||
"isPlatformClient": false | ||
}, | ||
"product": { | ||
"typeId": "product", | ||
"id": "daf720e5-9e8e-4300-98db-3a3219327db9" | ||
}, | ||
"store": { | ||
"typeId": "store", | ||
"key": "store-key" | ||
}, | ||
"current": { | ||
"variants": [] | ||
}, | ||
"staged": { | ||
"name": { | ||
"en": "tailored name" | ||
}, | ||
"description": { | ||
"en": "tailored description" | ||
}, | ||
"metaTitle": { | ||
"en": "tailored meta title" | ||
}, | ||
"metaDescription": { | ||
"en": "tailored meta description" | ||
}, | ||
"metaKeywords": { | ||
"en": "tailored meta keywords" | ||
}, | ||
"slug": { | ||
"en": "tailored-slug" | ||
}, | ||
"variants": [ | ||
{ | ||
"id": 1, | ||
"images": [ | ||
{ | ||
"url": "//myimage.jpg", | ||
"dimensions": { | ||
"w": 400, | ||
"h": 300 | ||
} | ||
} | ||
], | ||
"assets": [] | ||
}, | ||
{ | ||
"id": 2, | ||
"images": [ | ||
{ | ||
"url": "//myimage-2.png", | ||
"dimensions": { | ||
"w": 400, | ||
"h": 300 | ||
} | ||
} | ||
], | ||
"assets": [] | ||
} | ||
] | ||
}, | ||
"published": false, | ||
"hasStagedChanges": true, | ||
"warnings": [ | ||
{ | ||
"code": "ImageProcessingOngoing", | ||
"message": "The image processing is still ongoing." | ||
} | ||
] | ||
} |
112 changes: 112 additions & 0 deletions
112
api-specs/api/examples/product-with-image-processing-warning.example.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,112 @@ | ||
{ | ||
"id": "e7ba4c75-b1bb-483d-94d8-2c4a10f78472", | ||
"version": 2, | ||
"masterData": { | ||
"current": { | ||
"categories": [ | ||
{ | ||
"id": "cf6d790a-f027-4f46-9a2b-4bc9a31066fb", | ||
"typeId": "category" | ||
} | ||
], | ||
"description": { | ||
"en": "Sample description" | ||
}, | ||
"masterVariant": { | ||
"attributes": [], | ||
"id": 1, | ||
"images": [ | ||
{ | ||
"dimensions": { | ||
"h": 1400, | ||
"w": 1400 | ||
}, | ||
"url": "https://commercetools.com/cli/data/253245821_1.jpg" | ||
} | ||
], | ||
"prices": [ | ||
{ | ||
"value": { | ||
"type": "centPrecision", | ||
"fractionDigits": 2, | ||
"centAmount": 10000, | ||
"currencyCode": "EUR" | ||
}, | ||
"id": "753472a3-ddff-4e0f-a93b-2eb29c90ba54" | ||
} | ||
], | ||
"sku": "sku_MB_PREMIUM_TECH_T_variant1_1369226795424" | ||
}, | ||
"name": { | ||
"en": "MB PREMIUM TECH T" | ||
}, | ||
"slug": { | ||
"en": "mb-premium-tech-t1369226795424" | ||
}, | ||
"variants": [], | ||
"searchKeywords": {} | ||
}, | ||
"hasStagedChanges": false, | ||
"published": true, | ||
"staged": { | ||
"categories": [ | ||
{ | ||
"id": "cf6d790a-f027-4f46-9a2b-4bc9a31066fb", | ||
"typeId": "category" | ||
} | ||
], | ||
"description": { | ||
"en": "Sample description" | ||
}, | ||
"masterVariant": { | ||
"attributes": [], | ||
"id": 1, | ||
"images": [ | ||
{ | ||
"dimensions": { | ||
"h": 1400, | ||
"w": 1400 | ||
}, | ||
"url": "https://commercetools.com/cli/data/253245821_1.jpg" | ||
} | ||
], | ||
"prices": [ | ||
{ | ||
"value": { | ||
"type": "centPrecision", | ||
"fractionDigits": 2, | ||
"centAmount": 10000, | ||
"currencyCode": "EUR" | ||
}, | ||
"id": "753472a3-ddff-4e0f-a93b-2eb29c90ba54" | ||
} | ||
], | ||
"sku": "sku_MB_PREMIUM_TECH_T_variant1_1369226795424" | ||
}, | ||
"name": { | ||
"en": "MB PREMIUM TECH T" | ||
}, | ||
"slug": { | ||
"en": "mb-premium-tech-t1369226795424" | ||
}, | ||
"variants": [], | ||
"searchKeywords": {} | ||
} | ||
}, | ||
"productType": { | ||
"id": "24f510c3-f334-4099-94e2-d6224a8eb919", | ||
"typeId": "product-type" | ||
}, | ||
"taxCategory": { | ||
"id": "f1e10e3a-45eb-49d8-ad0b-fdf984202f59", | ||
"typeId": "tax-category" | ||
}, | ||
"createdAt": "1970-01-01T00:00:00.001Z", | ||
"lastModifiedAt": "1970-01-01T00:00:00.001Z", | ||
"warnings": [ | ||
{ | ||
"code": "ImageProcessingOngoing", | ||
"message": "The image processing is still ongoing." | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
{ | ||
"key": "test-state", | ||
"type": "ProductState", | ||
"key": "Initial", | ||
"type": "LineItemState", | ||
"roles": [], | ||
"name": { | ||
"en": "Initial" | ||
}, | ||
"description": { | ||
"en": "Initial is the first State that a (custom) Line Item gets after its creation." | ||
}, | ||
"initial": true | ||
} |
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 @@ | ||
{ | ||
"id": "7c2e2694-aefe-43d7-888e-6a99514caaca", | ||
"version": 2, | ||
"key": "Initial", | ||
"type": "LineItemState", | ||
"roles": [], | ||
"name": { | ||
"en": "New Name" | ||
}, | ||
"description": { | ||
"en": "Initial is the first State that a (custom) Line Item gets after its creation." | ||
}, | ||
"builtIn": true, | ||
"initial": true, | ||
"createdAt": "2015-01-21T09:22:03.906Z", | ||
"lastModifiedAt": "2024-08-06T13:49:48.511Z" | ||
} |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{ | ||
"version": 1, | ||
"actions": [{ | ||
"action": "setName", | ||
"name": { | ||
"en": "New Name" | ||
"actions": [ | ||
{ | ||
"action": "setName", | ||
"name": { | ||
"en": "New Name" | ||
} | ||
} | ||
}] | ||
] | ||
} |
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
24 changes: 24 additions & 0 deletions
24
api-specs/api/examples/subscription-update-response.example.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,24 @@ | ||
{ | ||
"id": "bf79c5d2-2813-4229-9a88-e7c76be50986", | ||
"version": 2, | ||
"destination": { | ||
"type": "SQS", | ||
"queueUrl": "https://sqs.my-region.amazonaws.com/my-aws-account-number/my-queue", | ||
"authenticationMode": "IAM", | ||
"region": "my-region" | ||
}, | ||
"messages": [ | ||
{ | ||
"resourceTypeId": "product", | ||
"types": [] | ||
} | ||
], | ||
"changes": [], | ||
"createdAt": "2017-01-25T14:14:22.417Z", | ||
"key": "new-key", | ||
"format": { | ||
"type": "Platform" | ||
}, | ||
"lastModifiedAt": "2024-08-06T13:49:48.511Z", | ||
"status": "Healthy" | ||
} |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"version": 1, | ||
"actions": [{ | ||
"action": "setKey", | ||
"key": "queue-key" | ||
}] | ||
"actions": [ | ||
{ | ||
"action": "setKey", | ||
"key": "new-key" | ||
} | ||
] | ||
} |
Oops, something went wrong.