public function suspend($code = null)
    {
        if (! $code) {
            $code = $this->data->code;
        }

        $response = $this->client->put('/{code}/suspend', [$code]);

        if (! $response->hasErrors()) {
            $this->event->dispatch('SUBSCRIPTION.SUSPENDED', new SubscriptionsEvent($this->data));
        }

        return $this;
    }
public function suspend($code = null)
    {
        if (! $code) {
            $code = $this->data->code;
        }

        $response = $this->client->put('/{code}/suspend', [$code]);

        if (! $response->hasErrors()) {
            $this->event->dispatch('SUBSCRIPTION.SUSPENDED', new SubscriptionsEvent($this->data));
        }

        return $this;
    }
public function suspend ( $ code = null ) { if ( ! $ code ) { $ code = $ this -> data -> code ; } $ response = $ this -> client -> put ( '/{code}/suspend' , [ $ code ] ) ; if ( ! $ response -> hasErrors ( ) ) { $ this -> event -> dispatch ( 'SUBSCRIPTION.SUSPENDED' , new SubscriptionsEvent ( $ this -> data ) ) ; } return $ this ; }
Suspend a subscription

@param  string  $code
@return $this
Suspend a subscription