Back to Opencart

Class Opencart\Catalog\Model\Account\Reward

docs/api/Opencart.Catalog.Model.Account.Reward.html

4.1.0.35.5 KB
Original Source

Namespaces

Classes

Class Opencart[Catalog](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.html)\[Model](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.Model.html)\[Account](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.Model.Account.html)\[Reward](http://localhost\opencart-master/docs/api/Opencart.Catalog.Model.Account.Reward.html)

| extends | Model |

Class Reward

Located at catalog\model\account\reward.php

Methods
`
public

			` | `addReward(int $customer_id, int $order_id, string $description, int $points): void`

Add Reward

Add Reward

| # | | `

public

			` | `deleteReward(int $customer_id, int $order_id = 0): void`

Delete Reward

Delete Reward

| # | | `

public

			` | `deleteRewardByOrderId(int $order_id): void`

Delete Reward By Order ID

Delete Reward By Order ID

| # | | `

public

			` | `getRewards(int $customer_id, array<string, mixed> $data = []): 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

| # |

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