# Class Opencart\Admin\Model\Marketing\Affiliate

`extends` | `Model`

Class Affiliate

- Opencart\System\Engine\Model
  - Opencart\Admin\Model\Marketing\Affiliate

Located at admin\model\marketing\affiliate.php

Methods
`public` | `addAffiliate(array<string, mixed> $data): void` Add Affiliate Add Affiliate | #
`public` | `editAffiliate(int $customer_id, array<string, mixed> $data): void` Edit Affiliate Edit Affiliate | #
`public` | `editBalance(int $customer_id, float $amount): void` Edit Balance Edit Balance | #
`public` | `deleteAffiliate(int $customer_id): void` Delete Affiliate Delete Affiliate | #
`public` | `getAffiliate(int $customer_id): array<string, mixed>` Get Affiliate Get Affiliate | #
`public` | `getAffiliateByTracking(string $tracking): array<string, mixed>` Get Affiliate By Tracking Get Affiliate By Tracking | #
`public` | `getAffiliates(array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Affiliates Get Affiliates | #
`public` | `getTotalAffiliates(array<string, mixed> $data = []): int` Get Total Affiliates Get Total Affiliates | #
`public` | `getReports(int $customer_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Reports Get Reports | #
`public` | `deleteReports(int $customer_id): void` Delete Reports Delete Reports | #
`public` | `getTotalReports(int $customer_id): int` Get Total Reports Get Total Reports | #

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