diff --git a/app/Repositories/Import/Quickbooks/Transformers/Transformer.php b/app/Repositories/Import/Quickbooks/Transformers/Transformer.php new file mode 100644 index 000000000000..26b3137e36a9 --- /dev/null +++ b/app/Repositories/Import/Quickbooks/Transformers/Transformer.php @@ -0,0 +1,42 @@ +transformation($items, []); + } + + protected function transformCustomers(array $items): Collection + { + return $this->transformation($items, [ + 'CompanyName', + 'PrimaryPhone', + 'BillAddr', + 'ShipAddr', + 'Notes', + 'GivenName', + 'FamilyName', + 'PrimaryEmailAddr', + 'CurrencyRef', + 'MetaData' + ]); + } + + protected function transformation(array $items, array $keys) : Collection + { + return collect($items)->select($keys); + } + +}