From f6a8d2089326840e7ae8c762eb57ec33ce3fe294 Mon Sep 17 00:00:00 2001 From: Eugene van der Merwe Date: Tue, 22 Oct 2024 06:21:52 +0200 Subject: [PATCH] update --- CHANGELOG.md | 4 ++++ src/Whmcs.php | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3527ed..c97eb76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `whmcs-api` will be documented in this file. +## 22 Oct 2024 + +- Added AcceptOrder and tagged a new version 1.02 + ## 19 Oct 2024 - Moved the repo from `fintech-systems/whmcs-php-api` to `eugenefvdm/whmcs-api` diff --git a/src/Whmcs.php b/src/Whmcs.php index 969958c..c0ab2f0 100644 --- a/src/Whmcs.php +++ b/src/Whmcs.php @@ -30,6 +30,20 @@ public function __construct($client) ]; } + /** + * Accept order + * + * https://developers.whmcs.com/api-reference/acceptorder/ + * + * @param $data + * @return array|mixed + * @throws Exception + */ + public function acceptOrder($data): mixed + { + return $this->call('AcceptOrder', $data); + } + /** * Add client *