Skip to content

Commit ff3e984

Browse files
committed
Updated API from documentation release
1 parent e69406a commit ff3e984

16 files changed

+44
-18
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ properties:
139139
Indicates how the Cart was created.
140140
default: Customer
141141
deleteDaysAfterLastModification?:
142-
type: number
143-
format: int64
142+
type: integer
143+
minimum: 1
144+
maximum: 365250
144145
description: |
145146
Number of days after the last modification before a Cart is deleted.
146147
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ properties:
7878
Languages of the Cart.
7979
Can only contain languages supported by the [Project](ctp:api:type:Project).
8080
deleteDaysAfterLastModification?:
81-
type: number
82-
format: int64
81+
type: integer
82+
minimum: 1
83+
maximum: 365250
8384
description: |
8485
Number of days after the last modification before a Cart is deleted.
8586
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ properties:
3131
description: |
3232
Custom Fields defined for the ShoppingList.
3333
deleteDaysAfterLastModification?:
34-
type: number
35-
format: int64
34+
type: integer
3635
minimum: 1
36+
maximum: 365250
3737
description: |
3838
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.
3939
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ description: |
88
Number of days after the last modification before a Shopping List is deleted.
99
properties:
1010
deleteDaysAfterLastModification?:
11-
type: number
12-
format: int64
11+
type: integer
1312
minimum: 1
13+
maximum: 365250
1414
description: |
1515
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ type: object
44
displayName: CartsConfiguration
55
properties:
66
deleteDaysAfterLastModification?:
7-
type: number
7+
type: integer
88
default: 90
99
minimum: 1
10-
format: int64
10+
maximum: 365250
1111
description: |
1212
Default value for the `deleteDaysAfterLastModification` parameter of the [CartDraft](ctp:api:type:CartDraft) and [MyCartDraft](ctp:api:type:MyCartDraft).
1313
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)