• File: Discount.php
  • Full Path: /var/www/crm_set/application/vendor/braintree/braintree_php/lib/Braintree/Discount.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 849 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
namespace Braintree;

/**
 * @property-read string $amount
 * @property-read \DateTime $createdAt
 * @property-read int|null $currentBillingCycle
 * @property-read string $description
 * @property-read string $id
 * @property-read string|null $kind
 * @property-read string $merchantId
 * @property-read string $name
 * @property-read boolean $neverExpires
 * @property-read int|null $numberOfBillingCycles
 * @property-read int|null $quantity
 * @property-read \DateTime $updatedAt
 */
class Discount extends Modification
{
    public static function factory($attributes)
    {
        $instance = new self();
        $instance->_initialize($attributes);
        return $instance;
    }


    // static methods redirecting to gateway

    public static function all()
    {
        return Configuration::gateway()->discount()->all();
    }
}