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
    }
  }
  privateMetadata {
    key
    value
  }
  lines {
    ...OrderLine
  }
}
fragment OrderFulfilledEventSubscription on Event {
  __typename
  ... on OrderFulfilled {
    order {
      ...OrderFulfilledSubscription
    }
    recipient {
      privateMetadata {
        key
        value
      }
    }
  }
}
subscription OrderFulfilledSubscription {
  event {
    ...OrderFulfilledEventSubscription
  }
}
