From f9628f87d62ef3b23cebe77875e379b9be598650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abd=C3=ADas=20Natanel=20Vrech?= <90570743+abdiasdev@users.noreply.github.com> Date: Tue, 16 Aug 2022 14:09:12 +0200 Subject: [PATCH] Add SalesPerson Code Allowed to add salesPersonCode to the Transaction Builder. Since the model is private, and have no way of assign it, we had to duplicate this file, in order to have that small change. So please, accept this change in order to keep on using the right class --- src/TransactionBuilder.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/TransactionBuilder.php b/src/TransactionBuilder.php index 61fecd5..6ff394d 100644 --- a/src/TransactionBuilder.php +++ b/src/TransactionBuilder.php @@ -146,6 +146,18 @@ public function withEntityUseCode($code) return $this; } + /** + * Set client application customer or usage type + * + * @param string code (See API endpoint `/api/v2/definitions/entityusecodes` for a list of allowable values) + * @return TransactionBuilder + */ + public function withSalesPersonCode($code) + { + $this->_model['salespersonCode'] = $code; + return $this; + } + /** * Set purchase order number *