github.com/grokify/go-ringcentral-client@v0.3.31/office/v1/client/model_provision_phone_number_request.go (about)

     1  /*
     2   * RingCentral Connect Platform API Explorer
     3   *
     4   * <p>This is a beta interactive API explorer for the RingCentral Connect Platform. To use this service, you will need to have an account with the proper credentials to generate an OAuth2 access token.</p><p><h2>Quick Start</h2></p><ol><li>1) Go to <b>Authentication > /oauth/token</b></li><li>2) Enter <b>app_key, app_secret, username, password</b> fields and then click \"Try it out!\"</li><li>3) Upon success, your access_token is loaded and you can access any form requiring authorization.</li></ol><h2>Links</h2><ul><li><a href=\"https://github.com/ringcentral\" target=\"_blank\">RingCentral SDKs on Github</a></li><li><a href=\"mailto:devsupport@ringcentral.com\">RingCentral Developer Support Email</a></li></ul>
     5   *
     6   * API version: 1.0
     7   * Generated by: OpenAPI Generator (https://openapi-generator.tech)
     8   */
     9  
    10  package ringcentral
    11  
    12  type ProvisionPhoneNumberRequest struct {
    13  	ExtensionId ExtensionInfoProvisionPhoneNumbers `json:"extensionId,omitempty"`
    14  	// Phone number to purchase returned in E.164 (11-digits) format
    15  	PhoneNumber string `json:"phoneNumber,omitempty"`
    16  	// Internal identifier of phone number reservation; encoded data including reservation type (by brand, by account, by session), particular brand/account/session data, and reservation date and time
    17  	ReservationId string `json:"reservationId,omitempty"`
    18  	// Custom user name of a phone number, if any. Supported for numbers assigned to Auto-Receptionist, with usage type 'CompanyNumber
    19  	Label string `json:"label,omitempty"`
    20  	// Usage type of a phone number. The default value is 'DirectNumber'
    21  	UsageType string `json:"usageType,omitempty"`
    22  	// Type of a phone number
    23  	Type string `json:"type,omitempty"`
    24  	//  Vanity pattern that was used to find this number. It should be passed as if it was returned from the Number Lookup call
    25  	VanityPattern string `json:"vanityPattern,omitempty"`
    26  }