Skip to content

Commit 4112bdd

Browse files
authored
Discounts REST API: update IsInCategory typing (#2908)
* `DiscountCondition\IsInCategory`: Use integers instead of strings
1 parent fcb020d commit 4112bdd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/api/rest_api/rest_api_reference/input/examples/discounts/POST/DiscountCreate.json.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"conditions": [
2323
{
2424
"class": "Ibexa\\Discounts\\Value\\DiscountCondition\\IsInCategory",
25-
"parameters": [["1", "2"]]
25+
"parameters": [[1, 2]]
2626
}
2727
]
2828
}

docs/api/rest_api/rest_api_reference/input/examples/discounts/identifier/PATCH/DiscountUpdate.json.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"conditions": [
55
{
66
"class": "Ibexa\\Discounts\\Value\\DiscountCondition\\IsInCategory",
7-
"parameters": [["1", "3"]]
7+
"parameters": [[1, 3]]
88
}
99
]
1010
}

docs/api/rest_api/rest_api_reference/rest_api_reference.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150650,7 +150650,7 @@ <h6 class="heading text-gray border-bottom pb-2">Types</h6>
150650150650
&quot;conditions&quot;: [
150651150651
{
150652150652
&quot;class&quot;: &quot;Ibexa\\Discounts\\Value\\DiscountCondition\\IsInCategory&quot;,
150653-
&quot;parameters&quot;: [[&quot;1&quot;, &quot;2&quot;]]
150653+
&quot;parameters&quot;: [[1, 2]]
150654150654
}
150655150655
]
150656150656
}
@@ -150736,7 +150736,7 @@ <h6 class="heading text-gray border-bottom pb-2">Types</h6>
150736150736
&quot;conditions&quot;: [
150737150737
{
150738150738
&quot;class&quot;: &quot;Ibexa\\Discounts\\Value\\DiscountCondition\\IsInCategory&quot;,
150739-
&quot;parameters&quot;: [[&quot;1&quot;, &quot;2&quot;]]
150739+
&quot;parameters&quot;: [[1, 2]]
150740150740
}
150741150741
]
150742150742
}
@@ -151799,7 +151799,7 @@ <h6 class="heading text-gray border-bottom pb-2">Types</h6>
151799151799
&quot;conditions&quot;: [
151800151800
{
151801151801
&quot;class&quot;: &quot;Ibexa\\Discounts\\Value\\DiscountCondition\\IsInCategory&quot;,
151802-
&quot;parameters&quot;: [[&quot;1&quot;, &quot;3&quot;]]
151802+
&quot;parameters&quot;: [[1, 3]]
151803151803
}
151804151804
]
151805151805
}
@@ -151867,7 +151867,7 @@ <h6 class="heading text-gray border-bottom pb-2">Types</h6>
151867151867
&quot;conditions&quot;: [
151868151868
{
151869151869
&quot;class&quot;: &quot;Ibexa\\Discounts\\Value\\DiscountCondition\\IsInCategory&quot;,
151870-
&quot;parameters&quot;: [[&quot;1&quot;, &quot;3&quot;]]
151870+
&quot;parameters&quot;: [[1, 3]]
151871151871
}
151872151872
]
151873151873
}

0 commit comments

Comments
 (0)