protected function currentDiscounts()
    {
        return collect($this->asBraintreeSubscription()->discounts)->map(function ($discount) {
            return $discount->id;
        })->all();
    }
protected function currentDiscounts()
    {
        return collect($this->asBraintreeSubscription()->discounts)->map(function ($discount) {
            return $discount->id;
        })->all();
    }
protected function currentDiscounts ( ) { return collect ( $ this -> asBraintreeSubscription ( ) -> discounts ) -> map ( function ( $ discount ) { return $ discount -> id ; } ) -> all ( ) ; }
Get the current discounts for the subscription.

@return array
Get the current discounts for the subscription .