33fb9a8452
- Order confirmation, shipped, and cancelled email templates - Uses @react-email/components for professional HTML emails - Sends admin and customer notifications - Integrates with Resend for email delivery - Webhook handlers for ORDER_CREATED, ORDER_FULFILLED, ORDER_CANCELLED - Docker image optimized for production - Persistent auth data storage via PVC
86 lines
1.1 KiB
GraphQL
86 lines
1.1 KiB
GraphQL
fragment OrderCreatedWebhookPayload on OrderCreated {
|
|
order {
|
|
id
|
|
number
|
|
created
|
|
status
|
|
userEmail
|
|
languageCode
|
|
channel {
|
|
slug
|
|
}
|
|
user {
|
|
email
|
|
firstName
|
|
lastName
|
|
}
|
|
shippingAddress {
|
|
firstName
|
|
lastName
|
|
streetAddress1
|
|
streetAddress2
|
|
city
|
|
postalCode
|
|
country {
|
|
country
|
|
}
|
|
phone
|
|
}
|
|
billingAddress {
|
|
firstName
|
|
lastName
|
|
streetAddress1
|
|
streetAddress2
|
|
city
|
|
postalCode
|
|
country {
|
|
country
|
|
}
|
|
phone
|
|
}
|
|
lines {
|
|
id
|
|
quantity
|
|
unitPrice {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
totalPrice {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
variant {
|
|
name
|
|
sku
|
|
product {
|
|
name
|
|
media {
|
|
url
|
|
}
|
|
}
|
|
}
|
|
}
|
|
subtotal {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
shippingPrice {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
total {
|
|
gross {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
}
|
|
} |