Skip to content

Commit 9acc4d0

Browse files
committed
Add wasm example for discount function
1 parent b74b492 commit 9acc4d0

File tree

5 files changed

+5665
-0
lines changed

5 files changed

+5665
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
query Input {
2+
cart {
3+
lines {
4+
id
5+
cost {
6+
subtotalAmount {
7+
amount
8+
}
9+
}
10+
}
11+
}
12+
discount {
13+
discountClasses
14+
}
15+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
query Input {
2+
cart {
3+
deliveryGroups {
4+
id
5+
}
6+
}
7+
discount {
8+
discountClasses
9+
}
10+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "{{name}}",
3+
"description": "{{name}}"
4+
}

0 commit comments

Comments
 (0)