Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 4 additions & 3 deletions api-specs/api/api.raml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ baseUriParameters:
- europe-west1.gcp
- eu-central-1.aws
- australia-southeast1.gcp
- api.cn-northwest-1.aws.commercetools.cn
- eastus.azure
description: |
[Region](/../api/general-concepts#hosts) in which the Project is hosted.
version: v1
Expand All @@ -35,8 +33,10 @@ traits:
versioned: !include traits/versioned.raml
priceSelecting: !include traits/price-selecting.raml
projectionSelecting: !include traits/projection-selecting.raml
projectionSelectingTailoring: !include traits/projection-selecting-tailoring.raml
localeProjecting: !include traits/locale-projecting.raml
storeProjecting: !include traits/store-projecting.raml
storeProjectingTailoring: !include traits/store-projecting-tailoring.raml
dataErasure: !include traits/data-erasure.raml
types: !include types/types.raml
mediaType: application/json
Expand Down Expand Up @@ -222,10 +222,11 @@ resourceTypes:
body:
application/json:
type: ProjectUpdate
example: !include /examples/project-update.example.json
responses:
200:
body:
example: !include examples/project.example.json
example: !include examples/project-update-response.example.json
type: Project
/as-associate: !include resources/as-associate.raml
/associate-roles: !include resources/associate-roles.raml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"action": "setCustomField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"action": "setCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"customer": {
"typeId": "customer",
"id": "some-customer-id"
},
"associateRoles": [
{
"id": "first-associate-role-id",
"version": 5,
"createdAt": "2022-04-19T15:36:17.510Z",
"lastModifiedAt": "2022-04-20T15:41:55.816Z",
"key": "admin",
"buyerAssignable": true,
"name": "Admin",
"permissions": [
"UpdateAssociates"
]
},
{
"id": "second-associate-role-id",
"version": 1,
"createdAt": "2022-04-19T15:36:17.510Z",
"lastModifiedAt": "2022-04-20T15:41:55.816Z",
"key": "approver",
"buyerAssignable": true,
"name": "Approver",
"permissions": [
"UpdateApprovalFlows"
]
}
],
"inheritedAssociateRoles": [
{
"id": "inherited-associate-role-id",
"version": 5,
"createdAt": "2022-04-19T15:36:17.510Z",
"lastModifiedAt": "2022-04-20T15:41:55.816Z",
"key": "buyer",
"buyerAssignable": true,
"name": "Buyer",
"permissions": [
"ViewMyQuotes"
]
}
],
"permissions": [
"UpdateAssociates",
"UpdateApprovalFlows",
"ViewMyQuotes"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setAddressCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString",
"addressId": "{{address-id}}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
},
"addressId": "{{address-id}}"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"results": [
{
"id": "e41337a0-ea96-4ddc-a9a4-d267976f21e0",
"relevance": 0.9264881
},
{
"id": "05cd5998-015c-4232-8943-ff8a1880bcbc",
"relevance": 0.6989829
},
{
"id": "09c3c5a2-6569-49dd-b021-af5de4cf4b02",
"relevance": 0.6989829
}
],
"limit": 100,
"offset": 0,
"total": 3
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"status": "Indexing",
"states": {
"indexed": 43242,
"failed": 0,
"estimatedTotal": 100000
},
"startedAt": "2023-08-15T12:56:07.89Z",
"retryCount": 2,
"lastModifiedAt": "2023-08-15T12:56:07.89Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"query": {
"fullText": {
"field": "all",
"value": "plumbing"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setBillingAddressCustomField",
"name": "ExampleStringTypeField",
"value": "TextString"
}
"action": "setBillingAddressCustomField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"action": "setBillingAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
}
"action": "setBillingAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringField": "TextString"
}
}
2 changes: 1 addition & 1 deletion api-specs/api/examples/Cart/CartSetCustomFieldAction.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setCustomField",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setCustomLineItemCustomField",
"customLineItemId": "{{customLineItemId}}",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
},
"customLineItemId": "{{customLineItemId}}"
}
2 changes: 1 addition & 1 deletion api-specs/api/examples/Cart/CartSetCustomTypeAction.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setItemShippingAddressCustomField",
"addressKey": "{{address-key}}",
"name": "ExampleStringTypeField",
"value": "TextString"
}
"action": "setItemShippingAddressCustomField",
"addressKey": "{{address-key}}",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"action": "setItemShippingAddressCustomType",
"addressKey": "{{address-key}}",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
}
"action": "setItemShippingAddressCustomType",
"addressKey": "{{address-key}}",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setLineItemCustomField",
"lineItemId": "{{lineItemId}}",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"action": "setShippingAddressCustomField",
"name": "ExampleStringTypeField",
"value": "TextString"
}
"action": "setShippingAddressCustomField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"action": "setShippingAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
}
"action": "setShippingAddressCustomType",
"type": {
"id": "{{type-id}}",
"typeId": "type"
},
"fields": {
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"action": "setShippingCustomField",
"shippingKey": "shippingMethodKey1",
"name": "ExampleStringTypeField",
"name": "exampleStringField",
"value": "TextString"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"typeId": "type"
},
"fields": {
"exampleStringTypeField": "TextString"
"exampleStringField": "TextString"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"action": "changeCartPredicate",
"cartPredicate": "cartPredicateString"
}
"cartPredicate": "shippingInfo.taxRate.country = \"DE\""
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"action": "changeName",
"name": {
"en": "NewNameEN",
"de": "NewNameDE"
"en": "New name",
"de": "Neuer Name"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"action": "changeRequiresDiscountCode",
"requiresDiscountCode": true
}
"requiresDiscountCode": false
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"action": "changeSortOrder",
"sortOrder": "0.2"
}
"sortOrder": "0.1"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"action": "changeStackingMode",
"stackingMode": "Stacking"
}
"stackingMode": "StopAfterThisDiscount"
}
Loading
Loading