import { MollieClient, Order as MollieOrder } from "@mollie/api-client"; import { Amount } from "@mollie/api-client/dist/types/src/data/global"; /** * Create an extended Mollie client that also supports the manage order lines endpoint, because * the NodeJS client doesn't support it yet. * * See https://docs.mollie.com/reference/v2/orders-api/manage-order-lines * FIXME: Remove this when the NodeJS client supports it. */ export declare function createExtendedMollieClient(options: { apiKey: string; }): ExtendedMollieClient; export interface ExtendedMollieClient extends MollieClient { /** * Update all order lines in 1 request. */ manageOrderLines(orderId: string, input: ManageOrderLineInput): Promise; } interface CancelOperation { operation: "cancel"; data: { id: string; }; } interface UpdateOperation { operation: "update"; data: { id: string; name?: string; quantity?: number; unitPrice?: Amount; totalAmount?: Amount; vatRate?: string; vatAmount?: Amount; }; } interface AddOperation { operation: "add"; data: { name: string; quantity: number; unitPrice: Amount; totalAmount: Amount; vatRate: string; vatAmount: Amount; }; } export interface ManageOrderLineInput { operations: Array; } export {};