public function create($options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'UniqueName' => $options['uniqueName'],
            'FriendlyName' => $options['friendlyName'],
            'DataEnabled' => Serialize::booleanToString($options['dataEnabled']),
            'DataLimit' => $options['dataLimit'],
            'DataMetering' => $options['dataMetering'],
            'MessagingEnabled' => Serialize::booleanToString($options['messagingEnabled']),
            'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
            'CommandsEnabled' => Serialize::booleanToString($options['commandsEnabled']),
            'NationalRoamingEnabled' => Serialize::booleanToString($options['nationalRoamingEnabled']),
            'InternationalRoaming' => Serialize::map($options['internationalRoaming'], function($e) { return $e; }),
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new RatePlanInstance($this->version, $payload);
    }
public function create($options = array()) {
        $options = new Values($options);

        $data = Values::of(array(
            'UniqueName' => $options['uniqueName'],
            'FriendlyName' => $options['friendlyName'],
            'DataEnabled' => Serialize::booleanToString($options['dataEnabled']),
            'DataLimit' => $options['dataLimit'],
            'DataMetering' => $options['dataMetering'],
            'MessagingEnabled' => Serialize::booleanToString($options['messagingEnabled']),
            'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']),
            'CommandsEnabled' => Serialize::booleanToString($options['commandsEnabled']),
            'NationalRoamingEnabled' => Serialize::booleanToString($options['nationalRoamingEnabled']),
            'InternationalRoaming' => Serialize::map($options['internationalRoaming'], function($e) { return $e; }),
        ));

        $payload = $this->version->create(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new RatePlanInstance($this->version, $payload);
    }
public function create ( $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ data = Values :: of ( array ( 'UniqueName' => $ options [ 'uniqueName' ] , 'FriendlyName' => $ options [ 'friendlyName' ] , 'DataEnabled' => Serialize :: booleanToString ( $ options [ 'dataEnabled' ] ) , 'DataLimit' => $ options [ 'dataLimit' ] , 'DataMetering' => $ options [ 'dataMetering' ] , 'MessagingEnabled' => Serialize :: booleanToString ( $ options [ 'messagingEnabled' ] ) , 'VoiceEnabled' => Serialize :: booleanToString ( $ options [ 'voiceEnabled' ] ) , 'CommandsEnabled' => Serialize :: booleanToString ( $ options [ 'commandsEnabled' ] ) , 'NationalRoamingEnabled' => Serialize :: booleanToString ( $ options [ 'nationalRoamingEnabled' ] ) , 'InternationalRoaming' => Serialize :: map ( $ options [ 'internationalRoaming' ] , function ( $ e ) { return $ e ; } ) , ) ) ; $ payload = $ this -> version -> create ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new RatePlanInstance ( $ this -> version , $ payload ) ; }
Create a new RatePlanInstance

@param array|Options $options Optional Arguments
@return RatePlanInstance Newly created RatePlanInstance
@throws TwilioException When an HTTP error occurs.
Create a new RatePlanInstance