Skip to content

Commit b6f85c3

Browse files
committed
Updated API from documentation release
1 parent e5ed736 commit b6f85c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+845
-13
lines changed

api-specs/api/api.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ resourceTypes:
240240
/customer-groups: !include resources/customer-groups.raml
241241
/custom-objects: !include resources/custom-objects.raml
242242
/discount-codes: !include resources/discount-codes.raml
243+
/discount-groups: !include resources/discount-groups.raml
243244
/graphql: !include resources/graphql.raml
244245
/inventory: !include resources/inventory.raml
245246
/login: !include resources/login.raml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"action": "setDiscountGroup",
3+
"discountGroup": {
4+
"key": "{{discount-group-key}}"
5+
}
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"action": "setDescription",
3+
"description": {
4+
"en": "New description",
5+
"de": "Neue Beschreibung"
6+
}
7+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"action": "setKey",
3+
"key": "new-key"
4+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"action": "setName",
3+
"name": {
4+
"en": "New name",
5+
"de": "Neuer Name"
6+
}
7+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"action": "setSortOrder",
3+
"sortOrder": "0.2"
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"key": "black-friday-sale",
3+
"name": {
4+
"en": "Black Friday Sale"
5+
},
6+
"description": {
7+
"en": "10% discount on all items in cart"
8+
},
9+
"sortOrder": "0.01"
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version": 1,
3+
"actions": [
4+
{
5+
"action": "setKey",
6+
"key": "my-new-discount-group-key"
7+
}
8+
]
9+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"id": "{{discount-group-id}}",
3+
"version": 1,
4+
"key": "black-friday-sale",
5+
"name": {
6+
"en": "Black Friday Sale"
7+
},
8+
"description": {
9+
"en": "10% discount on all items in cart"
10+
},
11+
"sortOrder": "0.01",
12+
"createdAt": "2024-11-21T13:08:15.962Z",
13+
"lastModifiedAt": "2024-11-21T13:08:15.962Z",
14+
"lastModifiedBy": {
15+
"clientId": "{{client-id}}",
16+
"isPlatformClient": false
17+
},
18+
"createdBy": {
19+
"clientId": "{{client-id}}",
20+
"isPlatformClient": false
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"id": "{{discount-group-id}}",
3+
"version": 1,
4+
"key": "black-friday-sale",
5+
"name": {
6+
"en": "Black Friday Sale"
7+
},
8+
"description": {
9+
"en": "10% discount on all items in cart"
10+
},
11+
"sortOrder": "0.01",
12+
"createdAt": "2024-11-21T13:08:15.962Z",
13+
"lastModifiedAt": "2024-11-21T13:08:15.962Z",
14+
"lastModifiedBy": {
15+
"clientId": "{{client-id}}",
16+
"isPlatformClient": false
17+
},
18+
"createdBy": {
19+
"clientId": "{{client-id}}",
20+
"isPlatformClient": false
21+
}
22+
}

0 commit comments

Comments
 (0)