
* fix: ✅ fix failing map tests * fix: 🐛 use totalPrice instead of unitPrice to fix quantity * build: 👷 add changeset
83 lines
970 B
GraphQL
83 lines
970 B
GraphQL
fragment OrderLine on OrderLine {
|
|
productSku
|
|
productName
|
|
quantity
|
|
unitPrice {
|
|
net {
|
|
amount
|
|
}
|
|
}
|
|
totalPrice {
|
|
net {
|
|
amount
|
|
}
|
|
tax {
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
|
|
fragment OrderCreatedSubscription on Order {
|
|
id
|
|
user {
|
|
id
|
|
email
|
|
}
|
|
created
|
|
status
|
|
channel {
|
|
id
|
|
slug
|
|
}
|
|
shippingAddress {
|
|
...Address
|
|
}
|
|
billingAddress {
|
|
...Address
|
|
}
|
|
total {
|
|
currency
|
|
net {
|
|
amount
|
|
}
|
|
tax {
|
|
amount
|
|
}
|
|
}
|
|
shippingPrice {
|
|
gross {
|
|
amount
|
|
}
|
|
net {
|
|
amount
|
|
}
|
|
}
|
|
lines {
|
|
...OrderLine
|
|
}
|
|
discounts {
|
|
id
|
|
amount {
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
fragment OrderCreatedEventSubscription on Event {
|
|
__typename
|
|
... on OrderCreated {
|
|
order {
|
|
...OrderCreatedSubscription
|
|
}
|
|
}
|
|
recipient {
|
|
privateMetadata {
|
|
key
|
|
value
|
|
}
|
|
}
|
|
}
|
|
subscription OrderCreatedSubscription {
|
|
event {
|
|
...OrderCreatedEventSubscription
|
|
}
|
|
}
|