1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 07:33:04 +01:00
invoiceninja/app/DataMapper/QuickbooksSync.php
2024-09-23 07:16:34 +10:00

50 lines
1.5 KiB
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\DataMapper;
/**
* QuickbooksSync.
*/
class QuickbooksSync
{
public QuickbooksSyncMap $client;
public QuickbooksSyncMap $vendor;
public QuickbooksSyncMap $invoice;
public QuickbooksSyncMap $sales;
public QuickbooksSyncMap $quote;
public QuickbooksSyncMap $purchase_order;
public QuickbooksSyncMap $product;
public QuickbooksSyncMap $payment;
public QuickbooksSyncMap $expense;
public function __construct(array $attributes = [])
{
$this->client = new QuickbooksSyncMap($attributes['client'] ?? []);
$this->vendor = new QuickbooksSyncMap($attributes['vendor'] ?? []);
$this->invoice = new QuickbooksSyncMap($attributes['invoice'] ?? []);
$this->sales = new QuickbooksSyncMap($attributes['sales'] ?? []);
$this->quote = new QuickbooksSyncMap($attributes['quote'] ?? []);
$this->purchase_order = new QuickbooksSyncMap($attributes['purchase_order'] ?? []);
$this->product = new QuickbooksSyncMap($attributes['product'] ?? []);
$this->payment = new QuickbooksSyncMap($attributes['payment'] ?? []);
$this->expense = new QuickbooksSyncMap($attributes['expense'] ?? []);
}
}