saleor-apps-redis_apl/apps/taxes/graphql/subscriptions/OrderFulfilled.graphql
2023-08-03 09:25:15 +02:00

73 lines
929 B
GraphQL

fragment OrderLine on OrderLine {
productSku
productName
quantity
taxClass {
id
}
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
}
}
avataxId: metafield(key: "avataxId")
lines {
...OrderLine
}
}
fragment OrderFulfilledEventSubscription on Event {
__typename
... on OrderFulfilled {
order {
...OrderFulfilledSubscription
}
recipient {
privateMetadata {
key
value
}
}
}
}
subscription OrderFulfilledSubscription {
event {
...OrderFulfilledEventSubscription
}
}