# Class Opencart\Catalog\Model\Account\Transaction

`extends` | `Model`

Class Transaction

- Opencart\System\Engine\Model
  - Opencart\Catalog\Model\Account\Transaction

Located at catalog\model\account\transaction.php

Methods
`public` | `addTransaction(int $customer_id, int $order_id, string $description, float $amount): void` Add Transaction Add Transaction | #
`public` | `deleteTransaction(int $customer_id, int $order_id = 0): void` Delete Transaction Delete Transaction | #
`public` | `deleteTransactionByOrderId(int $order_id): void` Delete Transaction By Order ID Delete Transaction By Order ID | #
`public` | `getTransactions(int $customer_id, array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Transactions Get Transactions | #
`public` | `getTotalTransactions(int $customer_id): int` Get Total Transactions Get Total Transactions | #
`public` | `getTotalTransactionsByOrderId(int $order_id): int` Get Total Transactions By Order ID Get Total Transactions By Order ID | #
`public` | `getTransactionTotal(int $customer_id): float` Get Transaction Total Get Transaction Total | #

Methods inherited from Opencart\System\Engine\Model
`__construct(), __get(), __set(), __isset()`

Properties inherited from Opencart\System\Engine\Model
`$registry`

OpenCart API API documentation generated by ApiGen dev-master