mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 23:22:52 +01:00
55 lines
1.7 KiB
PHP
55 lines
1.7 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 string $default_income_account = '';
|
|
|
|
public string $default_expense_account = '';
|
|
|
|
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'] ?? []);
|
|
$this->default_income_account = $attributes['default_income_account'] ?? '';
|
|
$this->default_expense_account = $attributes['default_expense_account'] ?? '';
|
|
}
|
|
} |