All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ringcentral.paths.restapi.account.serviceinfo.Index Maven / Gradle / Ivy

There is a newer version: 3.2.3
Show newest version
package com.ringcentral.paths.restapi.account.serviceinfo;

import com.ringcentral.RestClient;
import com.ringcentral.definitions.GetServiceInfoResponse;

public class Index {
    public RestClient rc;
    public com.ringcentral.paths.restapi.account.Index parent;

    public Index(com.ringcentral.paths.restapi.account.Index parent) {
        this.parent = parent;
        this.rc = parent.rc;
    }

    public String path() {
        return parent.path() + "/service-info";
    }

    /**
     * Returns the information about service plan, available features and limitations for a particular RingCentral customer account.
     * HTTP Method: get
     * Endpoint: /restapi/{apiVersion}/account/{accountId}/service-info
     * Rate Limit Group: Light
     * App Permission: ReadAccounts
     * User Permission: ReadServicePlanInfo
     */
    public GetServiceInfoResponse get() throws com.ringcentral.RestException, java.io.IOException {
        okhttp3.ResponseBody rb = this.rc.get(this.path(), null);
        return com.ringcentral.Utils.gson.fromJson(rb.string(), GetServiceInfoResponse.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy