From ba553d035800c4bd0d131ebb74078e9ff3660736 Mon Sep 17 00:00:00 2001 From: icleitoncosta Date: Wed, 17 Jul 2024 19:52:22 -0300 Subject: [PATCH] feat: Exported function createOrder --- src/whatsapp/functions/createOrder.ts | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/whatsapp/functions/createOrder.ts diff --git a/src/whatsapp/functions/createOrder.ts b/src/whatsapp/functions/createOrder.ts new file mode 100644 index 0000000000..f5ef6360a2 --- /dev/null +++ b/src/whatsapp/functions/createOrder.ts @@ -0,0 +1,34 @@ +/*! + * Copyright 2024 WPPConnect Team + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { exportModule } from '../exportModule'; +import { Wid } from '../misc'; + +/** + * @whatsapp 990553 + */ +export declare function createOrder( + wid: Wid, + cartItems?: any +): Promise<{ id: number; token: any; price?: any }>; + +exportModule( + exports, + { + createOrder: 'createOrder', + }, + (m) => m.createOrder +);