<?php
namespace App\Models;

use CodeIgniter\Model;

class FetchSalesReceiptsModel extends Model
{
    protected $table = 'qb_sales_receipts';
    protected $primaryKey = 'id';
    protected $allowedFields = [
        'qb_id',
        'domain',
        'sparse',
        'sync_token',
        'create_time',
        'last_updated_time',
        'doc_number',
        'txn_date',
        'currency_ref_value',
        'currency_ref_name',
        'private_note',
        'linked_txn_json',
        'line_items_json',
        'txn_tax_code_ref_value',
        'total_tax',
        'tax_line_json',
        'customer_ref_value',
        'customer_ref_name',
        'bill_addr_id',
        'bill_addr_line1',
        'bill_addr_city',
        'bill_addr_country',
        'bill_addr_country_subdivision_code',
        'bill_addr_postal_code',
        'ship_addr_id',
        'ship_addr_city',
        'ship_addr_country',
        'ship_addr_country_subdivision_code',
        'ship_addr_postal_code',
        'total_amt',
        'apply_tax_after_discount',
        'print_status',
        'email_status',
        'balance',
        'payment_ref_num',
        'deposit_to_account_ref_value',
        'deposit_to_account_ref_name',
        'raw_json'
    ];
}
