From ee8a4b6ab6844c075f46acb5469b9f4d13c64085 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 28 Aug 2024 17:07:17 +1000 Subject: [PATCH] Fixes for tests --- .../EDocument/Gateway/Storecove/StorecoveRouter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/EDocument/Gateway/Storecove/StorecoveRouter.php b/app/Services/EDocument/Gateway/Storecove/StorecoveRouter.php index c40bbb8aca44..796afb2ddf5f 100644 --- a/app/Services/EDocument/Gateway/Storecove/StorecoveRouter.php +++ b/app/Services/EDocument/Gateway/Storecove/StorecoveRouter.php @@ -99,10 +99,10 @@ class StorecoveRouter * Return the routing code based on country and entity classification * * @param string $country - * @param string $classification + * @param ?string $classification * @return string */ - public function resolveRouting(string $country, string $classification): string + public function resolveRouting(string $country, ?string $classification = 'business'): string { $rules = $this->routing_rules[$country]; @@ -133,7 +133,7 @@ class StorecoveRouter * @param ?string $classification * @return string */ - public function resolveTaxScheme(string $country, ?string $classification): string + public function resolveTaxScheme(string $country, ?string $classification = "business"): string { $rules = isset($this->routing_rules[$country]) ? $this->routing_rules[$country] : [false, false, false, false];