HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/ai.naniguide.com/vendor/square/square/src/Models/LoyaltyProgramAccrualRuleType.php
<?php

declare(strict_types=1);

namespace Square\Models;

/**
 * The type of the accrual rule that defines how buyers can earn points.
 */
class LoyaltyProgramAccrualRuleType
{
    /**
     * A visit-based accrual rule. A buyer earns points for each visit.
     * You can specify the minimum purchase required.
     */
    public const VISIT = 'VISIT';

    /**
     * A spend-based accrual rule. A buyer earns points based on the amount
     * spent.
     */
    public const SPEND = 'SPEND';

    /**
     * An accrual rule based on an item variation. For example, accrue
     * points for purchasing a coffee.
     */
    public const ITEM_VARIATION = 'ITEM_VARIATION';

    /**
     * An accrual rule based on an item category. For example, accrue points
     * for purchasing any item in the "hot drink" category: coffee, tea, or hot cocoa.
     */
    public const CATEGORY = 'CATEGORY';
}