Skip to content

Commit 379c828

Browse files
committed
Updated API from documentation release
1 parent 9d92b9d commit 379c828

16 files changed

+36
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"action": "changeCartsConfiguration",
3+
"cartsConfiguration": {
4+
"deleteDaysAfterLastModification": 42,
5+
"countryTaxRateFallbackEnabled": false,
6+
"priceRoundingMode": "HalfEven",
7+
"taxRoundingMode": "HalfEven"
8+
}
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"action": "changeShoppingListsConfiguration",
3+
"shoppingListsConfiguration": {
4+
"deleteDaysAfterLastModification": 42
5+
}
6+
}

api-specs/api/types/cart/Cart.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ properties:
201201
description: |
202202
Number of days after the last modification before a Cart is deleted. Configured in [Project settings](ctp:api:type:CartsConfiguration).
203203
default: 90
204+
minimum: 1
205+
maximum: 365250
204206
createdAt:
205207
type: datetime
206208
description: |

api-specs/api/types/cart/CartDraft.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ properties:
141141
deleteDaysAfterLastModification?:
142142
type: number
143143
format: int64
144+
minimum: 1
145+
maximum: 365250
144146
description: |
145147
Number of days after the last modification before a Cart is deleted.
146148
If not provided, the default value for this field configured in [Project settings](ctp:api:type:CartsConfiguration) is assigned.

api-specs/api/types/cart/updates/CartSetDeleteDaysAfterLastModificationAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |
1111
properties:
1212
deleteDaysAfterLastModification?:
1313
type: integer
14+
minimum: 1
15+
maximum: 365250
1416
description: |
1517
Value to set.
1618
If not provided, the default value for this field configured in [Project settings](ctp:api:type:CartsConfiguration) is assigned.

api-specs/api/types/me/MyCartDraft.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ properties:
8080
deleteDaysAfterLastModification?:
8181
type: number
8282
format: int64
83+
minimum: 1
84+
maximum: 365250
8385
description: |
8486
Number of days after the last modification before a Cart is deleted.
8587
If not provided, the default value for this field configured in [Project settings](ctp:api:type:CartsConfiguration) is assigned.

api-specs/api/types/me/MyShoppingListDraft.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ properties:
3434
type: number
3535
format: int64
3636
minimum: 1
37+
maximum: 365250
3738
description: |
3839
Number of days after the last modification before a ShoppingList is deleted. If not set, the [default value](ctp:api:type:ShoppingListsConfiguration) configured in the [Project](ctp:api:type:Project) is used.
3940
store?:

api-specs/api/types/me/updates/MyCartSetDeleteDaysAfterLastModificationAction.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |
1111
properties:
1212
deleteDaysAfterLastModification?:
1313
type: integer
14+
minimum: 1
15+
maximum: 365250
1416
description: |
1517
Value to set.
1618
If not provided, the default value for this field configured in [Project settings](ctp:api:type:CartsConfiguration) is assigned.

api-specs/api/types/me/updates/MyShoppingListSetDeleteDaysAfterLastModificationAction.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ properties:
1111
type: number
1212
format: int64
1313
minimum: 1
14+
maximum: 365250
1415
description: |
1516
Value to set. If not provided, the default value for this field configured in [Project settings](ctp:api:type:ShoppingListsConfiguration) is assigned.

api-specs/api/types/project/CartsConfiguration.raml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ displayName: CartsConfiguration
55
properties:
66
deleteDaysAfterLastModification?:
77
type: number
8+
format: int64
89
default: 90
910
minimum: 1
10-
format: int64
11+
maximum: 365250
1112
description: |
1213
Default value for the `deleteDaysAfterLastModification` parameter of the [CartDraft](ctp:api:type:CartDraft) and [MyCartDraft](ctp:api:type:MyCartDraft).
1314
If a [ChangeSubscription](ctp:api:type:ChangeSubscription) for Carts exists, a [ResourceDeletedDeliveryPayload](ctp:api:type:ResourceDeletedDeliveryPayload) is sent upon deletion of a Cart.

0 commit comments

Comments
 (0)