func (c *ApiService) FetchVoiceNumber(DestinationNumber string, params *FetchVoiceNumberParams) (*PricingV2VoiceNumber, error) {
	path := "/v2/Voice/Numbers/{DestinationNumber}"
	path = strings.Replace(path, "{"+"DestinationNumber"+"}", DestinationNumber, -1)
	data := url.Values{}
	headers := make(map[string]interface{})
	if params != nil && params.OriginationNumber != nil {
		data.Set("OriginationNumber", *params.OriginationNumber)
	}
	resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	ps := &PricingV2VoiceNumber{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
Fetch pricing information for a specific destination and, optionally, origination phone number.
package openapi
import (
	"encoding/json"
	"net/url"
	"strings"
)
type FetchVoiceNumberParams struct {
	OriginationNumber *string `json:"OriginationNumber,omitempty"`
}
func (params *FetchVoiceNumberParams) SetOriginationNumber(OriginationNumber string) *FetchVoiceNumberParams {
	params.OriginationNumber = &OriginationNumber
	return params
}