saleor-apps-redis_apl/apps/taxes/graphql/subscriptions/OrderFulfilled.graphql
Adrian Pilarczyk b4ddb02efb
fix: quantity not respected (#460)
* fix:  fix failing map tests

* fix: 🐛 use totalPrice instead of unitPrice to fix quantity

* build: 👷 add changeset
2023-05-12 14:49:27 +02:00

73 lines
908 B
GraphQL

fragment OrderLine on OrderLine {
productSku
productName
quantity
unitPrice {
net {
amount
}
}
totalPrice {
net {
amount
}
tax {
amount
}
}
}
fragment OrderFulfilledSubscription on Order {
id
userEmail
created
channel {
id
slug
}
shippingAddress {
...Address
}
billingAddress {
...Address
}
total {
net {
amount
}
tax {
amount
}
}
shippingPrice {
net {
amount
}
}
privateMetadata {
key
value
}
lines {
...OrderLine
}
}
fragment OrderFulfilledEventSubscription on Event {
__typename
... on OrderFulfilled {
order {
...OrderFulfilledSubscription
}
recipient {
privateMetadata {
key
value
}
}
}
}
subscription OrderFulfilledSubscription {
event {
...OrderFulfilledEventSubscription
}
}