github.com/grokify/go-ringcentral-client@v0.3.31/office/v1/client/model_reserve_phone_number_resource.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 ReservePhoneNumberResource struct {
    13  	// Phone number in E.164
    14  	PhoneNumber string `json:"phoneNumber,omitempty"`
    15  	// Domestic format of a phone number
    16  	FormattedNumber string `json:"formattedNumber,omitempty"`
    17  	//  Datetime up to which the number is reserved in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. No value means that number is not reserved anymore
    18  	ReservedTill string `json:"reservedTill,omitempty"`
    19  	// nternal 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
    20  	ReservationId string `json:"reservationId,omitempty"`
    21  	// Phone number status = ['Enabled', 'Pending', 'Disabled'],
    22  	Status string `json:"status,omitempty"`
    23  	// The error code in case of reservation/un-reservation failure = ['NumberIsAlreadyProvisioned', 'NumberReserved', 'NumberNotAvailable']
    24  	Error string `json:"error,omitempty"`
    25  }