You are here

class Braintree_Discount in Commerce Braintree 7

Hierarchy

Expanded class hierarchy of Braintree_Discount

File

braintree_php/lib/Braintree/Discount.php, line 2

View source
class Braintree_Discount extends Braintree_Modification {
  public static function all() {
    $response = Braintree_Http::get('/discounts');
    $discounts = array(
      "discount" => $response['discounts'],
    );
    return Braintree_Util::extractAttributeAsArray($discounts, 'discount');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Braintree::returnObjectOrThrowException public static function
Braintree::_set public function
Braintree::__clone protected function @ignore don't permit cloning the instances (like $x = clone $v)
Braintree::__construct protected function @ignore don't permit an explicit call of the constructor! (like $t = new Braintree_Transaction()) 1
Braintree::__get public function returns private/nonexistent instance properties @ignore @access public
Braintree::__isset public function used by isset() and empty() @access public
Braintree_Discount::all public static function
Braintree_Modification::factory public static function
Braintree_Modification::_initialize protected function