
# App\Transaction\Models\Tx

> Tx Model

* public [__construct](__construct.md)([ int &#36;id = '0' ], [ int &#36;account_id = '0' ], [ string &#36;uuid = '' ], [ TxStatus &#36;status =  ], [ string &#36;adapter = 'system' ], [ int &#36;index_id = '0' ], [ int &#36;reference_id = '0' ], [ string &#36;currency = '' ], [ string &#36;from_currency = '' ], [ string | float &#36;amount = '0' ], [ string | float &#36;from_amount = '0' ], [ string | float &#36;base_amount = '0' ], [ string | float &#36;fee = '0' ], [ float &#36;fee_percent = '0' ], [ int &#36;payment_id = '0' ], [ string &#36;ip_address = '' ], [ string &#36;description = '' ], [ ?DateTime &#36;created_at = null ], [ ?DateTime &#36;updated_at = null ]):.md
* public [__get](__get.md)(string &#36;prop): ?mixed.md
* public [__set](__set.md)(string &#36;prop, ?mixed &#36;value): void.md
* public  static[all](all.md)([ string &#36;sort_by = 'id' ], [ string &#36;sort_dir = 'asc' ], [ int &#36;limit = '0' ], [ int &#36;offset = '0' ]): ModelIterator.md
* public  static[count](count.md)([ string &#36;where_sql = '' ], [ ... &#36;args ]): int.md
* public [delete](delete.md)(): void.md
* public  static[deleteMany](deletemany.md)(string &#36;where_sql, [ ... &#36;args ]): int.md
* public [getAccount](getaccount.md)(): TxAccount.md
* public [getAdapter](getadapter.md)(): AdapterInterface.md
* public [getChildren](getchildren.md)(string &#36;foreign_key, string &#36;class_name, [ string &#36;sort_by = 'id' ], [ string &#36;sort_dir = 'asc' ], [ int &#36;limit = '0' ], [ int &#36;offset = '0' ]): ModelIterator.md
* public [getCurrency](getcurrency.md)(): Currency.md
* public [getNotes](getnotes.md)([ string &#36;sort_by = '' ], [ string &#36;sort_dir = '' ], [ int &#36;limit = '0' ], [ int &#36;offset = '0' ]): ModelIterator.md
* private [getOrigTx](getorigtx.md)(): static.md
* public  static[insert](insert.md)(object | array &#36;values): ?static.md
* public  static[insertFromForm](insertfromform.md)(): static.md
* public  static[insertOrUpdate](insertorupdate.md)(array &#36;criteria, array &#36;values): ?static.md
* public  static[purge](purge.md)(): void.md
* public [save](save.md)([ array &#36;values = [] ]): void.md
* public [toArray](toarray.md)(): array.md
* public [toDisplayArray](todisplayarray.md)([ bool &#36;include_full_details = false ]): array.md
* public [toFormattedArray](toformattedarray.md)(): array.md
* public  static[update](update.md)(array &#36;values, [ string &#36;where_sql = '' ], [ ... &#36;args ]): void.md
* public  static[where](where.md)(string &#36;where_sql, [ ... &#36;args ]): ModelIterator.md
* public  static[whereFirst](wherefirst.md)(string &#36;where_sql, [ ... &#36;args ]): ?static.md
* public  static[whereId](whereid.md)(string | int &#36;id): ?static.md


