15 lines
761 B
TypeScript
Raw Normal View History

import type { OrderDetails, OrderItemDetails } from "../../contract";
import { type WhmcsOrderItem, type WhmcsAddOrderParams, type WhmcsAddOrderPayload } from "./raw.types";
export interface OrderItemMappingResult {
whmcsItems: WhmcsOrderItem[];
summary: {
totalItems: number;
serviceItems: number;
activationItems: number;
};
}
export declare function mapOrderItemToWhmcs(item: OrderItemDetails, index?: number): WhmcsOrderItem;
export declare function mapOrderToWhmcsItems(orderDetails: OrderDetails): OrderItemMappingResult;
export declare function buildWhmcsAddOrderPayload(params: WhmcsAddOrderParams): WhmcsAddOrderPayload;
export declare function createOrderNotes(sfOrderId: string, additionalNotes?: string): string;