docs/docs/reference/core-plugins/email-plugin/email-utils.mdx
Applies the configured AssetStorageStrategy.toAbsoluteUrl() function to each of the
OrderLine's featuredAsset.preview properties, so that they can be correctly displayed
in the email template.
This is required since that step usually happens at the API in middleware, which is not
applicable in this context. So we need to do it manually.
Note: Mutates the Order object
function transformOrderLineAssetUrls(ctx: RequestContext, order: Order, injector: Injector): Order
Parameters
<MemberInfo kind="parameter" type={<a href='/reference/typescript-api/request/request-context#requestcontext'>RequestContext</a>} />
<MemberInfo kind="parameter" type={<a href='/reference/typescript-api/entities/order#order'>Order</a>} />
<MemberInfo kind="parameter" type={<a href='/reference/typescript-api/common/injector#injector'>Injector</a>} />
Ensures that the ShippingLines have a shippingMethod so that we can use the
shippingMethod.name property in the email template.
function shippingLinesWithMethod(order: Order): ShippingLine[]
Parameters
<MemberInfo kind="parameter" type={<a href='/reference/typescript-api/entities/order#order'>Order</a>} />