saleor-apps-redis_apl/apps/taxes/graphql/subscriptions/OrderFulfilled.graphql
Adrian Pilarczyk 9eacc88b53
feat: align avatax with plugin (#414)
* refactor: 🚚 OrderLineFragmentFragment -> OrderLineFragment

* refactor: 🚚 getLine... to getTaxBaseLine...

* refactor: ♻️ temporarily remove usage of getTaxBaseLineTaxCode

* feat:  add shipping as line to avatax-order-created

* feat:  add description to order-created lines

* feat:  add itemCode to avatax-order-created line

* feat:  add tests for avatax maps

* feat:  add basic discounts logic

* docs: 🔥 remove comment

* build: 👷 add changeset

* fix: 🐛 shipping amount
2023-04-26 13:40:51 +02:00

70 lines
879 B
GraphQL

fragment OrderLine on OrderLine {
productSku
productName
quantity
unitPrice {
net {
amount
}
}
totalPrice {
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
}
}