From b4d34218aebba12482255b542be2109d157845cb Mon Sep 17 00:00:00 2001 From: Jason Woods Date: Mon, 8 Aug 2022 14:48:06 +1000 Subject: [PATCH] Added ability to add merchantSellerIdentifier to a line through TransactionBuilder --- src/TransactionBuilder.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/TransactionBuilder.php b/src/TransactionBuilder.php index 19c31e5..1848e9d 100644 --- a/src/TransactionBuilder.php +++ b/src/TransactionBuilder.php @@ -329,6 +329,19 @@ public function withLineAddress($type, $line1, $line2, $line3, $city, $region, $ return $this; } + /** + * Add a merchant seller ID to this line + * + * @param string merchantSellerIdentifier ID of merchant seller + * @return TransactionBuilder + */ + public function withLineMerchantSeller($merchantSellerIdentifier) + { + $li = $this->getMostRecentLineIndex(); + $this->_model['lines'][$li]['merchantSellerIdentifier'] = $merchantSellerIdentifier; + return $this; + } + /** * Add a document-level Tax Override to the transaction. * - A TaxDate override requires a valid DateTime object to be passed.