# Class Opencart\Admin\Model\Customer\Customer

`extends` | `Model`

Class Customer

- Opencart\System\Engine\Model
  - Opencart\Admin\Model\Customer\Customer

Located at admin\model\customer\customer.php

Methods
`public` | `addCustomer(array<string, mixed> $data): int` Add Customer Add Customer | #
`public` | `editCustomer(int $customer_id, array<string, mixed> $data): void` Edit Customer Edit Customer | #
`public` | `editToken(int $customer_id, string $token): void` Edit Token Edit Token | #
`public` | `editCommenter(int $customer_id, bool $status): void` Edit Commenter Edit Commenter | #
`public` | `deleteCustomer(int $customer_id): void` Delete Customers Delete Customers | #
`public` | `getCustomer(int $customer_id): array<string, mixed>` Get Customer Get Customer | #
`public` | `getCustomerByEmail(string $email): array<string, mixed>` Get Customer By Email Get Customer By Email | #
`public` | `getCustomers(array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Customers Get Customers | #
`public` | `getTotalCustomers(array<string, mixed> $data = []): int` Get Total Customers Get Total Customers | #
`public` | `getTotalCustomersByCustomerGroupId(int $customer_group_id): int` Get Total Customers By Customer Group ID Get Total Customers By Customer Group ID | #
`public` | `deleteActivities(int $customer_id): void` Delete Activities Delete Activities | #
`public` | `addAddress(int $customer_id, array<string, mixed> $data): int` Add Address Add Address | #
`public` | `editAddress(int $customer_id, int $address_id, array<string, mixed> $data): void` Edit Address Edit Address | #
`public` | `deleteAddresses(int $customer_id, int $address_id = 0): void` Delete Address Delete Address | #
`public` | `getAddress(int $address_id): array<string, mixed>` Get Address Get Address | #
`public` | `getAddresses(int $customer_id): array<int, array<string, mixed>>` Get Addresses Get Addresses | #
`public` | `getTotalAddresses(int $customer_id): int` Get Total Addresses Get Total Addresses | #
`public` | `getTotalAddressesByCountryId(int $country_id): int` Get Total Address By Country ID Get Total Address By Country ID | #
`public` | `getTotalAddressesByZoneId(int $zone_id): int` Get Total Addresses By Zone ID Get Total Addresses By Zone ID | #
`public` | `addHistory(int $customer_id, string $comment): void` Add History Add History | #
`public` | `deleteHistories(int $customer_id): void` Delete Customer Histories Delete Customer Histories | #
`public` | `getHistories(int $customer_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Histories Get Histories | #
`public` | `getTotalHistories(int $customer_id): int` Get Total Histories Get Total Histories | #
`public` | `deleteWishlists(int $customer_id): void` Delete Wishlists Delete Wishlists | #
`public` | `addTransaction(int $customer_id, string $description = '', float $amount = 0, int $order_id = 0): void` Add Transaction Add Transaction | #
`public` | `deleteTransactions(int $customer_id): void` Delete Transactions Delete Transactions | #
`public` | `deleteTransactionsByOrderId(int $order_id): void` Delete Transactions By Order ID Delete Transactions By Order ID | #
`public` | `getTransactions(int $customer_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Transactions Get Transactions | #
`public` | `getTotalTransactions(int $customer_id): int` Get Total Transactions Get Total Transactions | #
`public` | `getTransactionTotal(int $customer_id): float` Get Transaction Total Get Transaction Total | #
`public` | `getTotalTransactionsByOrderId(int $order_id): int` Get Total Transactions By Order ID Get Total Transactions By Order ID | #
`public` | `addReward(int $customer_id, string $description = '', int $points = 0, int $order_id = 0): void` Add Reward Add Reward | #
`public` | `deleteRewards(int $customer_id): void` Delete Rewards Delete Rewards | #
`public` | `deleteRewardsByOrderId(int $order_id): void` Delete Rewards By Order ID Delete Rewards By Order ID | #
`public` | `getRewards(int $customer_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Rewards Get Rewards | #
`public` | `getTotalRewards(int $customer_id): int` Get Total Rewards Get Total Rewards | #
`public` | `getRewardTotal(int $customer_id): int` Get Reward Total Get Reward Total | #
`public` | `getTotalRewardsByOrderId(int $order_id): int` Get Total Rewards By Order ID Get Total Rewards By Order ID | #
`public` | `deleteIps(int $customer_id): void` Delete Ips Delete Ips | #
`public` | `getIps(int $customer_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Ips Get Ips | #
`public` | `getTotalIps(int $customer_id): int` Get Total Ips Get Total Ips | #
`public` | `getTotalCustomersByIp(string $ip): int` Get Total Customers By Ip Get Total Customers By Ip | #
`public` | `getTotalLoginAttempts(string $email): array<string, mixed>` Get Total Login Attempts Get Total Login Attempts | #
`public` | `deleteLoginAttempts(string $email): void` Delete Login Attempts Delete Login Attempts | #
`public` | `addAuthorize(int $customer_id, array<string, mixed> $data): void` Add Authorize Add Authorize | #
`public` | `editAuthorizeStatus(int $customer_authorize_id, bool $status): void` Edit Authorize Status Edit Authorize Status | #
`public` | `editAuthorizeTotal(int $customer_authorize_id, int $total): void` Edit Authorize Total Edit Authorize Total | #
`public` | `resetAuthorizes(int $customer_id): void` Reset Authorizes Reset Authorizes | #
`public` | `deleteAuthorizes(int $customer_id, int $customer_authorize_id = 0): void` Delete Authorizes Delete Authorizes | #
`public` | `getAuthorizeByToken(int $customer_id, string $token): array<string, mixed>` Get Authorize By Token Get Authorize By Token | #
`public` | `getAuthorizes(int $customer_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Authorizes Get Authorizes | #
`public` | `getTotalAuthorizes(int $customer_id): int` Get Total Authorizes Get Total Authorizes | #

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