function buildProviderLineItems
buildProviderLineItems<Item>(
order: PricedOrder,
currency: string,
render: { line: (
line: PricedLine,
currency: string,
) => Item
; extra: (
extra: ExtraLine,
currency: string,
) => Item
; }
,
): Item[]

Render ticket and extra charges in the same order for every provider.

Type Parameters

Item

Parameters

order: PricedOrder
currency: string
render: { line: (
line: PricedLine,
currency: string,
) => Item
; extra: (
extra: ExtraLine,
currency: string,
) => Item
; }

Return Type

Usage

import { buildProviderLineItems } from "docs/payments.ts";