saleor-apps-redis_apl/apps/taxes/graphql/subscriptions/OrderCreated.graphql

61 lines
763 B
GraphQL
Raw Normal View History

fragment OrderLineFragment on OrderLine {
productSku
productName
quantity
unitPrice {
net {
amount
}
}
totalPrice {
tax {
amount
}
}
}
fragment OrderSubscription on Order {
id
userEmail
created
channel {
id
slug
}
shippingAddress {
...AddressFragment
}
billingAddress {
...AddressFragment
}
total {
net {
amount
}
tax {
amount
}
}
shippingPrice {
net {
amount
}
}
lines {
...OrderLineFragment
}
}
fragment OrderCreatedEventSubscription on Event {
__typename
... on OrderCreated {
order {
...OrderSubscription
}
}
}
subscription OrderCreatedSubscription {
event {
...OrderCreatedEventSubscription
}
}