From 8c4096050df175de46983cfd8cd5792eb0f760e0 Mon Sep 17 00:00:00 2001 From: Tyler Long Date: Mon, 27 Jan 2020 16:50:19 -0800 Subject: [PATCH] Regenerate code according to latest swagger spec --- code-generator/definitions.js | 2 +- samples.md | 56 +++++++++++++++++ .../definitions/AccountStatusInfo.java | 2 +- .../definitions/BillingPlanInfo.java | 13 +++- .../definitions/CallLogRecordLegInfo.java | 2 +- .../definitions/CompanyPhoneNumberInfo.java | 9 +++ .../ringcentral/definitions/ContactInfo.java | 1 - .../ringcentral/definitions/ContactList.java | 18 ++++++ .../CreateDataExportTaskRequest.java | 26 ++++---- .../definitions/CreateFaxMessageRequest.java | 4 +- .../ringcentral/definitions/CreatorInfo.java | 33 ++++++++++ .../definitions/CustomGreetingInfo.java | 24 ++++++++ .../definitions/DataExportTask.java | 28 +++++++-- .../DataExportTaskContactInfo.java | 24 ++++++++ .../definitions/DataExportTaskList.java | 33 ++++++++++ .../definitions/DictionaryGreetingInfo.java | 4 +- .../definitions/DictionaryGreetingList.java | 18 ++++++ .../definitions/ExportTaskResultInfo.java | 19 ++++-- .../definitions/ExtensionCreationRequest.java | 2 +- .../ExtensionCreationResponse.java | 13 +++- .../definitions/FaxCoverPageInfo.java | 4 +- .../definitions/GetAccountInfoResponse.java | 27 +++++++-- .../definitions/GetExtensionAccountInfo.java | 24 ++++++++ .../definitions/GetExtensionInfoResponse.java | 16 +++-- .../definitions/GetExtensionListResponse.java | 11 +++- .../definitions/GetLocationListResponse.java | 9 +++ .../definitions/GetRingOutStatusResponse.java | 4 +- .../definitions/GetServiceInfoResponse.java | 21 +++++++ .../definitions/GetTimezoneListResponse.java | 9 +++ .../GlipDataExportNavigationInfo.java | 42 +++++++++++++ .../GlipDataExportNavigationInfoUri.java | 15 +++++ .../definitions/GlipDataExportPagingInfo.java | 60 +++++++++++++++++++ .../ringcentral/definitions/GreetingInfo.java | 9 +++ .../ListDataExportTasksParameters.java | 36 +++++++++++ .../ringcentral/definitions/LocationInfo.java | 6 +- .../definitions/LocationStateInfo.java | 24 ++++++++ .../MessageStoreCalleeInfoRequest.java | 24 ++++++++ .../ringcentral/definitions/PackageInfo.java | 24 ++++++++ .../definitions/QueueShortInfoResource.java | 24 ++++++++ .../definitions/RecipientInfo.java | 4 +- .../definitions/RegionalSettings.java | 9 +++ .../definitions/SignupInfoResource.java | 33 ++++++++++ .../ringcentral/definitions/SpecificInfo.java | 42 +++++++++++++ .../ringcentral/definitions/SwitchInfo.java | 9 +++ .../definitions/TargetServicePlanInfo.java | 9 +++ .../definitions/UserCallQueues.java | 15 +++++ .../definitions/UserContactsGroupsInfo.java | 15 +++++ .../UserPhoneNumberExtensionInfo.java | 2 +- .../definitions/WirelessPointInfo.java | 9 +++ .../definitions/WirelessPointsList.java | 2 +- .../com/ringcentral/paths/restapi/Index.kt | 2 +- .../paths/restapi/account/Index.kt | 2 +- .../restapi/account/answeringrule/Index.kt | 6 +- .../paths/restapi/account/calllog/Index.kt | 2 +- .../account/callmonitoringgroups/Index.kt | 4 +- .../callrecording/customgreetings/Index.kt | 2 +- .../paths/restapi/account/device/Index.kt | 4 +- .../account/directory/entries/Index.kt | 2 +- .../networks/Index.kt | 6 +- .../switches/Index.kt | 6 +- .../emergencyaddressautoupdate/tasks/Index.kt | 2 +- .../wirelesspoints/Index.kt | 6 +- .../account/emergencylocations/Index.kt | 4 +- .../paths/restapi/account/extension/Index.kt | 11 +++- .../extension/addressbook/contact/Index.kt | 6 +- .../account/extension/answeringrule/Index.kt | 6 +- .../callerblocking/phonenumbers/Index.kt | 6 +- .../account/extension/calllog/Index.kt | 2 +- .../account/extension/callqueues/Index.kt | 22 +++++++ .../extension/forwardingnumber/Index.kt | 6 +- .../account/extension/greeting/Index.kt | 2 +- .../account/extension/meeting/Index.kt | 6 +- .../account/extension/messagestore/Index.kt | 6 +- .../extension/messagestore/content/Index.kt | 2 +- .../account/extension/profileimage/Index.kt | 2 +- .../account/extension/ringout/Index.kt | 4 +- .../paths/restapi/account/ivrmenus/Index.kt | 4 +- .../paths/restapi/account/ivrprompts/Index.kt | 6 +- .../account/messagestorereport/Index.kt | 2 +- .../messagestorereport/archive/Index.kt | 2 +- .../restapi/account/phonenumber/Index.kt | 2 +- .../paths/restapi/account/recording/Index.kt | 2 +- .../account/telephony/sessions/Index.kt | 4 +- .../telephony/sessions/parties/Index.kt | 4 +- .../sessions/parties/recordings/Index.kt | 2 +- .../paths/restapi/account/templates/Index.kt | 2 +- .../paths/restapi/dictionary/country/Index.kt | 2 +- .../restapi/dictionary/greeting/Index.kt | 2 +- .../restapi/dictionary/language/Index.kt | 2 +- .../paths/restapi/dictionary/state/Index.kt | 2 +- .../restapi/dictionary/timezone/Index.kt | 2 +- .../paths/restapi/glip/cards/Index.kt | 6 +- .../paths/restapi/glip/chats/Index.kt | 2 +- .../paths/restapi/glip/chats/posts/Index.kt | 6 +- .../paths/restapi/glip/companies/Index.kt | 2 +- .../paths/restapi/glip/conversations/Index.kt | 2 +- .../paths/restapi/glip/dataexport/Index.kt | 21 ++++++- .../restapi/glip/dataexport/datasets/Index.kt | 30 ++++++++++ .../paths/restapi/glip/events/Index.kt | 6 +- .../paths/restapi/glip/groups/Index.kt | 2 +- .../paths/restapi/glip/notes/Index.kt | 6 +- .../paths/restapi/glip/persons/Index.kt | 2 +- .../paths/restapi/glip/tasks/Index.kt | 6 +- .../paths/restapi/glip/teams/Index.kt | 6 +- .../paths/restapi/glip/webhooks/Index.kt | 4 +- .../paths/restapi/subscription/Index.kt | 6 +- .../com/ringcentral/paths/scim/users/Index.kt | 8 +-- src/test/java/com/ringcentral/FaxTest.java | 6 +- 108 files changed, 994 insertions(+), 165 deletions(-) create mode 100644 src/main/java/com/ringcentral/definitions/CreatorInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/CustomGreetingInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/DataExportTaskContactInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/DataExportTaskList.java create mode 100644 src/main/java/com/ringcentral/definitions/GetExtensionAccountInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/GlipDataExportNavigationInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/GlipDataExportNavigationInfoUri.java create mode 100644 src/main/java/com/ringcentral/definitions/GlipDataExportPagingInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/ListDataExportTasksParameters.java create mode 100644 src/main/java/com/ringcentral/definitions/LocationStateInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/MessageStoreCalleeInfoRequest.java create mode 100644 src/main/java/com/ringcentral/definitions/PackageInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/QueueShortInfoResource.java create mode 100644 src/main/java/com/ringcentral/definitions/SignupInfoResource.java create mode 100644 src/main/java/com/ringcentral/definitions/SpecificInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/UserCallQueues.java create mode 100644 src/main/java/com/ringcentral/definitions/UserContactsGroupsInfo.java create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/extension/callqueues/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/glip/dataexport/datasets/Index.kt diff --git a/code-generator/definitions.js b/code-generator/definitions.js index 5293699e..4b0e7bc4 100644 --- a/code-generator/definitions.js +++ b/code-generator/definitions.js @@ -52,7 +52,7 @@ const generateField = (m, f) => { p += `@JSONField(name="${f.name}")` pName = f.name.replace(/[:.](\w)/g, '_$1') p += `\n public ${f.type} ${pName};` - } else if (f.name === 'public' || f.name === 'default') { + } else if (f.name === 'public' || f.name === 'default' || f.name === 'package') { p += `@JSONField(name="${f.name}")` pName = `_${f.name}` p += `\n public ${f.type} ${pName};` diff --git a/samples.md b/samples.md index ce6ca16e..74e4ac14 100644 --- a/samples.md +++ b/samples.md @@ -1843,6 +1843,26 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallRecord) in API Explorer. +## Update User Call Queues + +HTTP PUT `/restapi/v1.0/account/{accountId}/extension/{extensionId}/call-queues` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).extension(extensionId).callQueues().put(userCallQueues); +rc.revoke(); +``` + +- Parameter `userCallQueues` is of type [UserCallQueues](./src/main/java/com/ringcentral/definitions/UserCallQueues.java) +- `result` is of type [UserCallQueues](./src/main/java/com/ringcentral/definitions/UserCallQueues.java) +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` +- Parameter `extensionId` is optional with default value `~` + +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateUserCallQueues) in API Explorer. + + ## Get Caller Blocking Settings HTTP GET `/restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking` @@ -4563,6 +4583,24 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-createDataExportTask) in API Explorer. +## Get Data Export Task List + +HTTP GET `/restapi/v1.0/glip/data-export` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().dataExport().list(listDataExportTasksParameters); +rc.revoke(); +``` + +- Parameter `listDataExportTasksParameters` is of type [ListDataExportTasksParameters](./src/main/java/com/ringcentral/definitions/ListDataExportTasksParameters.java) +- `result` is of type [DataExportTaskList](./src/main/java/com/ringcentral/definitions/DataExportTaskList.java) +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-listDataExportTasks) in API Explorer. + + ## Get Data Export Task HTTP GET `/restapi/v1.0/glip/data-export/{taskId}` @@ -4581,6 +4619,24 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-readDataExportTask) in API Explorer. +## Get Data Export Task Dataset + +HTTP GET `/restapi/v1.0/glip/data-export/{taskId}/datasets/{datasetId}` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().dataExport(taskId).datasets(datasetId).get(); +rc.revoke(); +``` + + +- `result` is of type `byte[]` +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-readDataExportTaskDataset) in API Explorer. + + ## Get User Events List HTTP GET `/restapi/v1.0/glip/events` diff --git a/src/main/java/com/ringcentral/definitions/AccountStatusInfo.java b/src/main/java/com/ringcentral/definitions/AccountStatusInfo.java index 5ffec7d2..ae4dc76d 100644 --- a/src/main/java/com/ringcentral/definitions/AccountStatusInfo.java +++ b/src/main/java/com/ringcentral/definitions/AccountStatusInfo.java @@ -8,7 +8,7 @@ public class AccountStatusInfo { public String comment; /** * Type of suspension - * Enum: Voluntarily, Involuntarily + * Enum: SuspendedVoluntarily, SuspendedInvoluntarily, UserResumed */ public String reason; /** diff --git a/src/main/java/com/ringcentral/definitions/BillingPlanInfo.java b/src/main/java/com/ringcentral/definitions/BillingPlanInfo.java index cee8c466..aecd4646 100644 --- a/src/main/java/com/ringcentral/definitions/BillingPlanInfo.java +++ b/src/main/java/com/ringcentral/definitions/BillingPlanInfo.java @@ -18,12 +18,16 @@ public class BillingPlanInfo { /** * Number of duration units */ - public String duration; + public Long duration; /** * Billing plan type * Enum: Initial, Regular, Suspended, Trial, TrialNoCC, Free */ public String type; + /** + * Included digital lines count + */ + public Long includedPhoneLines; public BillingPlanInfo id(String id) { this.id = id; @@ -40,7 +44,7 @@ public BillingPlanInfo durationUnit(String durationUnit) { return this; } - public BillingPlanInfo duration(String duration) { + public BillingPlanInfo duration(Long duration) { this.duration = duration; return this; } @@ -50,4 +54,9 @@ public BillingPlanInfo type(String type) { return this; } + public BillingPlanInfo includedPhoneLines(Long includedPhoneLines) { + this.includedPhoneLines = includedPhoneLines; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/CallLogRecordLegInfo.java b/src/main/java/com/ringcentral/definitions/CallLogRecordLegInfo.java index 5aac5356..75aee457 100644 --- a/src/main/java/com/ringcentral/definitions/CallLogRecordLegInfo.java +++ b/src/main/java/com/ringcentral/definitions/CallLogRecordLegInfo.java @@ -38,7 +38,7 @@ public class CallLogRecordLegInfo { */ public String legType; /** - * The call start datetime in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z + * The call start datetime in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z */ public String startTime; /** diff --git a/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java b/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java index 27335de1..5970c854 100644 --- a/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java +++ b/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java @@ -57,6 +57,10 @@ public class CompanyPhoneNumberInfo { * CCRN (Contact Center Routing Number) provider. If not specified then the default value 'InContact/North America' is used, its ID is '1' */ public ContactCenterProvider contactCenterProvider; + /** + * Vanity pattern for this number. Returned only when vanity search option is requested. Vanity pattern corresponds to request parameters nxx plus line or numberPattern + */ + public String vanityPattern; public CompanyPhoneNumberInfo uri(String uri) { this.uri = uri; @@ -123,4 +127,9 @@ public CompanyPhoneNumberInfo contactCenterProvider(ContactCenterProvider contac return this; } + public CompanyPhoneNumberInfo vanityPattern(String vanityPattern) { + this.vanityPattern = vanityPattern; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/ContactInfo.java b/src/main/java/com/ringcentral/definitions/ContactInfo.java index 79ac9b07..d04f19a4 100644 --- a/src/main/java/com/ringcentral/definitions/ContactInfo.java +++ b/src/main/java/com/ringcentral/definitions/ContactInfo.java @@ -21,7 +21,6 @@ public class ContactInfo { public String jobTitle; /** * Email of extension user - * Required */ public String email; /** diff --git a/src/main/java/com/ringcentral/definitions/ContactList.java b/src/main/java/com/ringcentral/definitions/ContactList.java index a26b7dd7..e69830a0 100644 --- a/src/main/java/com/ringcentral/definitions/ContactList.java +++ b/src/main/java/com/ringcentral/definitions/ContactList.java @@ -2,6 +2,10 @@ public class ContactList { + /** + * link to the list of user personal contacts + */ + public String uri; /** * List of personal contacts from the extension address book */ @@ -14,6 +18,15 @@ public class ContactList { * Information on paging */ public UserContactsPagingInfo paging; + /** + * Information on address book groups + */ + public UserContactsGroupsInfo groups; + + public ContactList uri(String uri) { + this.uri = uri; + return this; + } public ContactList records(PersonalContactResource[] records) { this.records = records; @@ -30,4 +43,9 @@ public ContactList paging(UserContactsPagingInfo paging) { return this; } + public ContactList groups(UserContactsGroupsInfo groups) { + this.groups = groups; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/CreateDataExportTaskRequest.java b/src/main/java/com/ringcentral/definitions/CreateDataExportTaskRequest.java index 641947cb..605ae556 100644 --- a/src/main/java/com/ringcentral/definitions/CreateDataExportTaskRequest.java +++ b/src/main/java/com/ringcentral/definitions/CreateDataExportTaskRequest.java @@ -3,34 +3,34 @@ public class CreateDataExportTaskRequest { /** - * Starting time for data collection. The default value is current time minus 24 hours. If `dateTo` is not specified then its value is set to `dateFrom` plus 24 hours. The specified time range should not be greater than 7 days + * Starting time for data collection. The default value is `timeTo` minus 24 hours. Max allowed time frame between `timeFrom` and `timeTo` is 6 months */ - public String dateFrom; + public String timeFrom; /** - * Ending time for data collection. The default value is current time. If `dateFrom` is not specified then its value is set to `dateTo` minus 24 hours. The specified time range should not be greater than 7 days + * Ending time for data collection. The default value is current time. Max allowed time frame between `timeFrom` and `timeTo` is 6 months */ - public String dateTo; + public String timeTo; /** - * List of users which data is collected. The following data will be exported: posts, tasks, events, etc. posted by the user(s); posts addressing the user(s) via direct and @Mentions; tasks assigned to the listed user(s). The list of 30 users per request is supported. + * */ - public String[] userIds; + public DataExportTaskContactInfo[] contacts; /** - * List of chats from which the data (posts, files, tasks, events, notes, etc.) will be collected + * List of chats from which the data (posts, files, tasks, events, notes, etc.) will be collected. Maximum number of chats supported is 10 */ public String[] chatIds; - public CreateDataExportTaskRequest dateFrom(String dateFrom) { - this.dateFrom = dateFrom; + public CreateDataExportTaskRequest timeFrom(String timeFrom) { + this.timeFrom = timeFrom; return this; } - public CreateDataExportTaskRequest dateTo(String dateTo) { - this.dateTo = dateTo; + public CreateDataExportTaskRequest timeTo(String timeTo) { + this.timeTo = timeTo; return this; } - public CreateDataExportTaskRequest userIds(String[] userIds) { - this.userIds = userIds; + public CreateDataExportTaskRequest contacts(DataExportTaskContactInfo[] contacts) { + this.contacts = contacts; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CreateFaxMessageRequest.java b/src/main/java/com/ringcentral/definitions/CreateFaxMessageRequest.java index 7464f5b5..c258c098 100644 --- a/src/main/java/com/ringcentral/definitions/CreateFaxMessageRequest.java +++ b/src/main/java/com/ringcentral/definitions/CreateFaxMessageRequest.java @@ -14,7 +14,7 @@ public class CreateFaxMessageRequest { /** * To Phone Number */ - public MessageStoreCallerInfoRequest[] to; + public MessageStoreCalleeInfoRequest[] to; /** * Timestamp to send fax at. If not specified (current or the past), the fax is sent immediately */ @@ -42,7 +42,7 @@ public CreateFaxMessageRequest faxResolution(String faxResolution) { return this; } - public CreateFaxMessageRequest to(MessageStoreCallerInfoRequest[] to) { + public CreateFaxMessageRequest to(MessageStoreCalleeInfoRequest[] to) { this.to = to; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CreatorInfo.java b/src/main/java/com/ringcentral/definitions/CreatorInfo.java new file mode 100644 index 00000000..5b757162 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/CreatorInfo.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class CreatorInfo { + /** + * Internal identifier of a user + */ + public String id; + /** + * First name of a user + */ + public String firstName; + /** + * Last name of a user + */ + public String lastName; + + public CreatorInfo id(String id) { + this.id = id; + return this; + } + + public CreatorInfo firstName(String firstName) { + this.firstName = firstName; + return this; + } + + public CreatorInfo lastName(String lastName) { + this.lastName = lastName; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/CustomGreetingInfo.java b/src/main/java/com/ringcentral/definitions/CustomGreetingInfo.java new file mode 100644 index 00000000..6ddfccc6 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/CustomGreetingInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class CustomGreetingInfo { + /** + * Link to a custom user greeting + */ + public String uri; + /** + * Internal identifier of a custom user greeting + */ + public String id; + + public CustomGreetingInfo uri(String uri) { + this.uri = uri; + return this; + } + + public CustomGreetingInfo id(String id) { + this.id = id; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DataExportTask.java b/src/main/java/com/ringcentral/definitions/DataExportTask.java index d3db3b9c..ddfe87af 100644 --- a/src/main/java/com/ringcentral/definitions/DataExportTask.java +++ b/src/main/java/com/ringcentral/definitions/DataExportTask.java @@ -20,13 +20,21 @@ public class DataExportTask { public String lastModifiedTime; /** * Task status - * Enum: Accepted, InProgress, Completed, Failed + * Enum: Accepted, InProgress, Completed, Failed, Canceled */ public String status; /** - * Data collection archives. Returned by task ID + * Internal identifier of a user */ - public ExportTaskResultInfo[] result; + public String creator; + /** + * Information specififed in request + */ + public SpecificInfo specific; + /** + * Data collection sets. Returned by task ID + */ + public ExportTaskResultInfo[] datasets; public DataExportTask uri(String uri) { this.uri = uri; @@ -53,8 +61,18 @@ public DataExportTask status(String status) { return this; } - public DataExportTask result(ExportTaskResultInfo[] result) { - this.result = result; + public DataExportTask creator(String creator) { + this.creator = creator; + return this; + } + + public DataExportTask specific(SpecificInfo specific) { + this.specific = specific; + return this; + } + + public DataExportTask datasets(ExportTaskResultInfo[] datasets) { + this.datasets = datasets; return this; } diff --git a/src/main/java/com/ringcentral/definitions/DataExportTaskContactInfo.java b/src/main/java/com/ringcentral/definitions/DataExportTaskContactInfo.java new file mode 100644 index 00000000..8b0abd4c --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DataExportTaskContactInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class DataExportTaskContactInfo { + /** + * Internal identifier of a contact + */ + public String id; + /** + * Email address of a contact + */ + public String email; + + public DataExportTaskContactInfo id(String id) { + this.id = id; + return this; + } + + public DataExportTaskContactInfo email(String email) { + this.email = email; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DataExportTaskList.java b/src/main/java/com/ringcentral/definitions/DataExportTaskList.java new file mode 100644 index 00000000..3eb1467d --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DataExportTaskList.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class DataExportTaskList { + /** + * + */ + public DataExportTask[] tasks; + /** + * + */ + public GlipDataExportNavigationInfo navigation; + /** + * + */ + public GlipDataExportPagingInfo paging; + + public DataExportTaskList tasks(DataExportTask[] tasks) { + this.tasks = tasks; + return this; + } + + public DataExportTaskList navigation(GlipDataExportNavigationInfo navigation) { + this.navigation = navigation; + return this; + } + + public DataExportTaskList paging(GlipDataExportPagingInfo paging) { + this.paging = paging; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DictionaryGreetingInfo.java b/src/main/java/com/ringcentral/definitions/DictionaryGreetingInfo.java index 86948eb9..ac5eab11 100644 --- a/src/main/java/com/ringcentral/definitions/DictionaryGreetingInfo.java +++ b/src/main/java/com/ringcentral/definitions/DictionaryGreetingInfo.java @@ -16,7 +16,7 @@ public class DictionaryGreetingInfo { public String name; /** * Usage type of a greeting, specifying if the greeting is applied for user extension or department extension. - * Enum: UserExtensionAnsweringRule, ExtensionAnsweringRule, DepartmentExtensionAnsweringRule, CompanyAnsweringRule, CompanyAfterHoursAnsweringRule, VoicemailExtensionAnsweringRule, AnnouncementExtensionAnsweringRule + * Enum: UserExtensionAnsweringRule, ExtensionAnsweringRule, DepartmentExtensionAnsweringRule, BlockedCalls, CallRecording, CompanyAnsweringRule, CompanyAfterHoursAnsweringRule, LimitedExtensionAnsweringRule, VoicemailExtensionAnsweringRule, AnnouncementExtensionAnsweringRule */ public String usageType; /** @@ -29,7 +29,7 @@ public class DictionaryGreetingInfo { public String contentUri; /** * Type of a greeting, specifying the case when the greeting is played. - * Enum: Introductory, Announcement, ConnectingMessage, ConnectingAudio, Voicemail, Unavailable, InterruptPrompt, HoldMusic, Company + * Enum: Introductory, Announcement, AutomaticRecording, BlockedCallersAll, BlockedCallersSpecific, BlockedNoCallerId, BlockedPayPhones, ConnectingMessage, ConnectingAudio, StartRecording, StopRecording, Voicemail, Unavailable, InterruptPrompt, HoldMusic, Company */ public String type; /** diff --git a/src/main/java/com/ringcentral/definitions/DictionaryGreetingList.java b/src/main/java/com/ringcentral/definitions/DictionaryGreetingList.java index 65a0b80f..2613b9ad 100644 --- a/src/main/java/com/ringcentral/definitions/DictionaryGreetingList.java +++ b/src/main/java/com/ringcentral/definitions/DictionaryGreetingList.java @@ -10,6 +10,14 @@ public class DictionaryGreetingList { * List of greetings */ public DictionaryGreetingInfo[] records; + /** + * Information on navigation + */ + public CallHandlingNavigationInfo navigation; + /** + * Information on paging + */ + public CallHandlingPagingInfo paging; public DictionaryGreetingList uri(String uri) { this.uri = uri; @@ -21,4 +29,14 @@ public DictionaryGreetingList records(DictionaryGreetingInfo[] records) { return this; } + public DictionaryGreetingList navigation(CallHandlingNavigationInfo navigation) { + this.navigation = navigation; + return this; + } + + public DictionaryGreetingList paging(CallHandlingPagingInfo paging) { + this.paging = paging; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/ExportTaskResultInfo.java b/src/main/java/com/ringcentral/definitions/ExportTaskResultInfo.java index b8b11336..98bb6abd 100644 --- a/src/main/java/com/ringcentral/definitions/ExportTaskResultInfo.java +++ b/src/main/java/com/ringcentral/definitions/ExportTaskResultInfo.java @@ -3,16 +3,20 @@ public class ExportTaskResultInfo { /** - * Size of the collected data archive in bytes + * Internal identifier of a dataset */ - public Long size; + public String id; /** - * Canonical URI for downloading an archive + * Link for downloading a dataset */ public String uri; + /** + * Size of ta dataset in bytes + */ + public Long size; - public ExportTaskResultInfo size(Long size) { - this.size = size; + public ExportTaskResultInfo id(String id) { + this.id = id; return this; } @@ -21,4 +25,9 @@ public ExportTaskResultInfo uri(String uri) { return this; } + public ExportTaskResultInfo size(Long size) { + this.size = size; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/ExtensionCreationRequest.java b/src/main/java/com/ringcentral/definitions/ExtensionCreationRequest.java index f838e882..73cf6218 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionCreationRequest.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionCreationRequest.java @@ -45,7 +45,7 @@ public class ExtensionCreationRequest { /** * Extension type * Required - * Enum: User, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnlyGroup, ParkLocation + * Enum: User, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnly, ParkLocation */ public String type; /** diff --git a/src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java b/src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java index c3ecf5ed..68e6d18b 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java @@ -55,9 +55,13 @@ public class ExtensionCreationResponse { * Enum: NotStarted, Incomplete, Completed */ public String setupWizardState; + /** + * Site data. If multi-site feature is turned on for the account, then internal identifier of a site must be specified. To assign the wireless point to the main site (company) set site ID to `main-site` + */ + public AutomaticLocationUpdatesSiteInfo site; /** * Extension current state. If 'Unassigned' is specified, then extensions without ‘extensionNumber’ are returned. If not specified, then all extensions are returned - * Enum: Enabled, Disabled, NotActivated, Unassigned + * Enum: Enabled, Disabled, Frozen, NotActivated, Unassigned */ public String status; /** @@ -66,7 +70,7 @@ public class ExtensionCreationResponse { public ExtensionStatusInfo statusInfo; /** * Extension type - * Enum: User, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnlyGroup, ParkLocation + * Enum: User, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnly, ParkLocation, Limited */ public String type; /** @@ -139,6 +143,11 @@ public ExtensionCreationResponse setupWizardState(String setupWizardState) { return this; } + public ExtensionCreationResponse site(AutomaticLocationUpdatesSiteInfo site) { + this.site = site; + return this; + } + public ExtensionCreationResponse status(String status) { this.status = status; return this; diff --git a/src/main/java/com/ringcentral/definitions/FaxCoverPageInfo.java b/src/main/java/com/ringcentral/definitions/FaxCoverPageInfo.java index d2f7bd70..824d1293 100644 --- a/src/main/java/com/ringcentral/definitions/FaxCoverPageInfo.java +++ b/src/main/java/com/ringcentral/definitions/FaxCoverPageInfo.java @@ -5,13 +5,13 @@ public class FaxCoverPageInfo { /** * Internal identifier of a fax cover page. The possible value range is 0-13 (for language setting en-US) and 0, 15-28 (for all other languages) */ - public Long id; + public String id; /** * Name of a fax cover page pattern */ public String name; - public FaxCoverPageInfo id(Long id) { + public FaxCoverPageInfo id(String id) { this.id = id; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GetAccountInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetAccountInfoResponse.java index d0c6e09b..0e40f7cf 100644 --- a/src/main/java/com/ringcentral/definitions/GetAccountInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetAccountInfoResponse.java @@ -5,11 +5,15 @@ public class GetAccountInfoResponse { /** * Internal identifier of an account */ - public String id; + public Long id; /** * Canonical URI of an account */ public String uri; + /** + * Internal identifier of an account in the billing system + */ + public String bsid; /** * Main phone number of the current account */ @@ -27,13 +31,18 @@ public class GetAccountInfoResponse { */ public ServiceInfo serviceInfo; /** - * Specifies account configuration wizard state (web service setup). The default value is 'NotStarted' + * Specifies account configuration wizard state (web service setup) + * Default: NotStarted * Enum: NotStarted, Incomplete, Completed */ public String setupWizardState; + /** + * Account sign up data + */ + public SignupInfoResource signupInfo; /** * Status of the current account - * Enum: Confirmed, Disabled + * Enum: Initial, Confirmed, Unconfirmed, Disabled */ public String status; /** @@ -61,7 +70,7 @@ public class GetAccountInfoResponse { */ public AccountLimits limits; - public GetAccountInfoResponse id(String id) { + public GetAccountInfoResponse id(Long id) { this.id = id; return this; } @@ -71,6 +80,11 @@ public GetAccountInfoResponse uri(String uri) { return this; } + public GetAccountInfoResponse bsid(String bsid) { + this.bsid = bsid; + return this; + } + public GetAccountInfoResponse mainNumber(String mainNumber) { this.mainNumber = mainNumber; return this; @@ -96,6 +110,11 @@ public GetAccountInfoResponse setupWizardState(String setupWizardState) { return this; } + public GetAccountInfoResponse signupInfo(SignupInfoResource signupInfo) { + this.signupInfo = signupInfo; + return this; + } + public GetAccountInfoResponse status(String status) { this.status = status; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetExtensionAccountInfo.java b/src/main/java/com/ringcentral/definitions/GetExtensionAccountInfo.java new file mode 100644 index 00000000..9fa242ee --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/GetExtensionAccountInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class GetExtensionAccountInfo { + /** + * Internal identifier of an account + */ + public String id; + /** + * Canonical URI of an account + */ + public String uri; + + public GetExtensionAccountInfo id(String id) { + this.id = id; + return this; + } + + public GetExtensionAccountInfo uri(String uri) { + this.uri = uri; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java index 9f5405d8..91250d11 100644 --- a/src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java @@ -12,6 +12,10 @@ public class GetExtensionInfoResponse { * Required */ public String uri; + /** + * Account information + */ + public GetExtensionAccountInfo account; /** * Contact detailed information */ @@ -38,7 +42,6 @@ public class GetExtensionInfoResponse { public ExtensionPermissions permissions; /** * Information on profile image - * Required */ public ProfileImageInfo profileImage; /** @@ -65,8 +68,7 @@ public class GetExtensionInfoResponse { public String setupWizardState; /** * Extension current state. If 'Unassigned' is specified, then extensions without ‘extensionNumber’ are returned. If not specified, then all extensions are returned - * Required - * Enum: Enabled, Disabled, NotActivated, Unassigned, Frozen + * Enum: Enabled, Disabled, Frozen, NotActivated, Unassigned */ public String status; /** @@ -75,8 +77,7 @@ public class GetExtensionInfoResponse { public ExtensionStatusInfo statusInfo; /** * Extension type - * Required - * Enum: User, FaxUser, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnlyGroup, IvrMenu, ApplicationExtension, ParkLocation, Bot, Limited, Site + * Enum: User, FaxUser, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnly, IvrMenu, ApplicationExtension, ParkLocation, Bot, Room, Limited, Site */ public String type; /** @@ -102,6 +103,11 @@ public GetExtensionInfoResponse uri(String uri) { return this; } + public GetExtensionInfoResponse account(GetExtensionAccountInfo account) { + this.account = account; + return this; + } + public GetExtensionInfoResponse contact(ContactInfo contact) { this.contact = contact; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetExtensionListResponse.java b/src/main/java/com/ringcentral/definitions/GetExtensionListResponse.java index 08ec320e..e8eb4c14 100644 --- a/src/main/java/com/ringcentral/definitions/GetExtensionListResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetExtensionListResponse.java @@ -2,6 +2,10 @@ public class GetExtensionListResponse { + /** + * Link to the extension list resource + */ + public String uri; /** * List of extensions with extension information * Required @@ -9,15 +13,18 @@ public class GetExtensionListResponse { public GetExtensionInfoResponse[] records; /** * Information on navigation - * Required */ public ProvisioningNavigationInfo navigation; /** * Information on paging - * Required */ public ProvisioningPagingInfo paging; + public GetExtensionListResponse uri(String uri) { + this.uri = uri; + return this; + } + public GetExtensionListResponse records(GetExtensionInfoResponse[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetLocationListResponse.java b/src/main/java/com/ringcentral/definitions/GetLocationListResponse.java index a901abee..52b5ef9c 100644 --- a/src/main/java/com/ringcentral/definitions/GetLocationListResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetLocationListResponse.java @@ -2,6 +2,10 @@ public class GetLocationListResponse { + /** + * Link to the location list resource + */ + public String uri; /** * List of locations */ @@ -17,6 +21,11 @@ public class GetLocationListResponse { */ public ProvisioningPagingInfo paging; + public GetLocationListResponse uri(String uri) { + this.uri = uri; + return this; + } + public GetLocationListResponse records(LocationInfo[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java b/src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java index 76a25ada..ce186ebe 100644 --- a/src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java @@ -5,7 +5,7 @@ public class GetRingOutStatusResponse { /** * Internal identifier of a RingOut call */ - public Long id; + public String id; /** * */ @@ -15,7 +15,7 @@ public class GetRingOutStatusResponse { */ public RingOutStatusInfo status; - public GetRingOutStatusResponse id(Long id) { + public GetRingOutStatusResponse id(String id) { this.id = id; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GetServiceInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetServiceInfoResponse.java index dbe07324..406fe34a 100644 --- a/src/main/java/com/ringcentral/definitions/GetServiceInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetServiceInfoResponse.java @@ -1,5 +1,7 @@ package com.ringcentral.definitions; +import com.alibaba.fastjson.annotation.JSONField; + public class GetServiceInfoResponse { /** @@ -18,6 +20,10 @@ public class GetServiceInfoResponse { * Information on account service plan */ public ServicePlanInfo servicePlan; + /** + * + */ + public ServicePlanInfo targetServicePlan; /** * Information on account billing plan */ @@ -30,6 +36,11 @@ public class GetServiceInfoResponse { * Limits which are effective for the account */ public AccountLimits limits; + /** + * + */ + @JSONField(name = "package") + public PackageInfo _package; public GetServiceInfoResponse uri(String uri) { this.uri = uri; @@ -51,6 +62,11 @@ public GetServiceInfoResponse servicePlan(ServicePlanInfo servicePlan) { return this; } + public GetServiceInfoResponse targetServicePlan(ServicePlanInfo targetServicePlan) { + this.targetServicePlan = targetServicePlan; + return this; + } + public GetServiceInfoResponse billingPlan(BillingPlanInfo billingPlan) { this.billingPlan = billingPlan; return this; @@ -66,4 +82,9 @@ public GetServiceInfoResponse limits(AccountLimits limits) { return this; } + public GetServiceInfoResponse _package(PackageInfo _package) { + this._package = _package; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/GetTimezoneListResponse.java b/src/main/java/com/ringcentral/definitions/GetTimezoneListResponse.java index 63d58e6f..578e2cbe 100644 --- a/src/main/java/com/ringcentral/definitions/GetTimezoneListResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetTimezoneListResponse.java @@ -2,6 +2,10 @@ public class GetTimezoneListResponse { + /** + * Link to the timezone list resource + */ + public String uri; /** * List of timezones * Required @@ -18,6 +22,11 @@ public class GetTimezoneListResponse { */ public ProvisioningPagingInfo paging; + public GetTimezoneListResponse uri(String uri) { + this.uri = uri; + return this; + } + public GetTimezoneListResponse records(GetTimezoneInfoResponse[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GlipDataExportNavigationInfo.java b/src/main/java/com/ringcentral/definitions/GlipDataExportNavigationInfo.java new file mode 100644 index 00000000..596ade8b --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/GlipDataExportNavigationInfo.java @@ -0,0 +1,42 @@ +package com.ringcentral.definitions; + + +public class GlipDataExportNavigationInfo { + /** + * Canonical URI for the first page of the list + */ + public GlipDataExportNavigationInfoUri firstPage; + /** + * Canonical URI for the next page of the list + */ + public GlipDataExportNavigationInfoUri nextPage; + /** + * Canonical URI for the previous page of the list + */ + public GlipDataExportNavigationInfoUri previousPage; + /** + * Canonical URI for the last page of the list + */ + public GlipDataExportNavigationInfoUri lastPage; + + public GlipDataExportNavigationInfo firstPage(GlipDataExportNavigationInfoUri firstPage) { + this.firstPage = firstPage; + return this; + } + + public GlipDataExportNavigationInfo nextPage(GlipDataExportNavigationInfoUri nextPage) { + this.nextPage = nextPage; + return this; + } + + public GlipDataExportNavigationInfo previousPage(GlipDataExportNavigationInfoUri previousPage) { + this.previousPage = previousPage; + return this; + } + + public GlipDataExportNavigationInfo lastPage(GlipDataExportNavigationInfoUri lastPage) { + this.lastPage = lastPage; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/GlipDataExportNavigationInfoUri.java b/src/main/java/com/ringcentral/definitions/GlipDataExportNavigationInfoUri.java new file mode 100644 index 00000000..013ae5bc --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/GlipDataExportNavigationInfoUri.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +public class GlipDataExportNavigationInfoUri { + /** + * + */ + public String uri; + + public GlipDataExportNavigationInfoUri uri(String uri) { + this.uri = uri; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/GlipDataExportPagingInfo.java b/src/main/java/com/ringcentral/definitions/GlipDataExportPagingInfo.java new file mode 100644 index 00000000..be85945b --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/GlipDataExportPagingInfo.java @@ -0,0 +1,60 @@ +package com.ringcentral.definitions; + + +public class GlipDataExportPagingInfo { + /** + * The current page number. 1-indexed, so the first page is 1 by default. May be omitted if result is empty (because non-existent page was specified or perPage=0 was requested) + */ + public Long page; + /** + * Current page size, describes how many items are in each page. Default value is 100. Maximum value is 1000. If perPage value in the request is greater than 1000, the maximum value (1000) is applied + */ + public Long perPage; + /** + * The zero-based number of the first element on the current page. Omitted if the page is omitted or result is empty + */ + public Long pageStart; + /** + * The zero-based index of the last element on the current page. Omitted if the page is omitted or result is empty + */ + public Long pageEnd; + /** + * The total number of pages in a dataset. May be omitted for some resources due to performance reasons + */ + public Long totalPages; + /** + * The total number of elements in a dataset. May be omitted for some resource due to performance reasons + */ + public Long totalElements; + + public GlipDataExportPagingInfo page(Long page) { + this.page = page; + return this; + } + + public GlipDataExportPagingInfo perPage(Long perPage) { + this.perPage = perPage; + return this; + } + + public GlipDataExportPagingInfo pageStart(Long pageStart) { + this.pageStart = pageStart; + return this; + } + + public GlipDataExportPagingInfo pageEnd(Long pageEnd) { + this.pageEnd = pageEnd; + return this; + } + + public GlipDataExportPagingInfo totalPages(Long totalPages) { + this.totalPages = totalPages; + return this; + } + + public GlipDataExportPagingInfo totalElements(Long totalElements) { + this.totalElements = totalElements; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/GreetingInfo.java b/src/main/java/com/ringcentral/definitions/GreetingInfo.java index 8275a858..7c621d70 100644 --- a/src/main/java/com/ringcentral/definitions/GreetingInfo.java +++ b/src/main/java/com/ringcentral/definitions/GreetingInfo.java @@ -16,6 +16,10 @@ public class GreetingInfo { * */ public PresetInfo preset; + /** + * + */ + public CustomGreetingInfo custom; public GreetingInfo type(String type) { this.type = type; @@ -32,4 +36,9 @@ public GreetingInfo preset(PresetInfo preset) { return this; } + public GreetingInfo custom(CustomGreetingInfo custom) { + this.custom = custom; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/ListDataExportTasksParameters.java b/src/main/java/com/ringcentral/definitions/ListDataExportTasksParameters.java new file mode 100644 index 00000000..c9ecbd84 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ListDataExportTasksParameters.java @@ -0,0 +1,36 @@ +package com.ringcentral.definitions; + + +public class ListDataExportTasksParameters { + /** + * Status of the task(s) to be returned. Multiple values supported + * Enum: Accepted, InProgress, Completed, Failed, Canceled + */ + public String status; + /** + * Page number to be retrieved; value range is > 0 + * Default: 1 + */ + public Long page; + /** + * Number of records to be returned per page; value range is 1 - 250 + * Default: 30 + */ + public Long perPage; + + public ListDataExportTasksParameters status(String status) { + this.status = status; + return this; + } + + public ListDataExportTasksParameters page(Long page) { + this.page = page; + return this; + } + + public ListDataExportTasksParameters perPage(Long perPage) { + this.perPage = perPage; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/LocationInfo.java b/src/main/java/com/ringcentral/definitions/LocationInfo.java index 3796ab46..1db62a46 100644 --- a/src/main/java/com/ringcentral/definitions/LocationInfo.java +++ b/src/main/java/com/ringcentral/definitions/LocationInfo.java @@ -23,9 +23,9 @@ public class LocationInfo { */ public String nxx; /** - * ID and URI of the state this location belongs to, see State Info + * Information on the state this location belongs to */ - public String state; + public LocationStateInfo state; public LocationInfo uri(String uri) { this.uri = uri; @@ -52,7 +52,7 @@ public LocationInfo nxx(String nxx) { return this; } - public LocationInfo state(String state) { + public LocationInfo state(LocationStateInfo state) { this.state = state; return this; } diff --git a/src/main/java/com/ringcentral/definitions/LocationStateInfo.java b/src/main/java/com/ringcentral/definitions/LocationStateInfo.java new file mode 100644 index 00000000..0312529d --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/LocationStateInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class LocationStateInfo { + /** + * Internal identifier of a state + */ + public String id; + /** + * Link to a state resource + */ + public String uri; + + public LocationStateInfo id(String id) { + this.id = id; + return this; + } + + public LocationStateInfo uri(String uri) { + this.uri = uri; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/MessageStoreCalleeInfoRequest.java b/src/main/java/com/ringcentral/definitions/MessageStoreCalleeInfoRequest.java new file mode 100644 index 00000000..60bcba19 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MessageStoreCalleeInfoRequest.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class MessageStoreCalleeInfoRequest { + /** + * Phone number in E.164 format + */ + public String phoneNumber; + /** + * Name of the callee + */ + public String name; + + public MessageStoreCalleeInfoRequest phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + public MessageStoreCalleeInfoRequest name(String name) { + this.name = name; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/PackageInfo.java b/src/main/java/com/ringcentral/definitions/PackageInfo.java new file mode 100644 index 00000000..2c1e080f --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/PackageInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class PackageInfo { + /** + * + */ + public String version; + /** + * + */ + public String id; + + public PackageInfo version(String version) { + this.version = version; + return this; + } + + public PackageInfo id(String id) { + this.id = id; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/QueueShortInfoResource.java b/src/main/java/com/ringcentral/definitions/QueueShortInfoResource.java new file mode 100644 index 00000000..b633878e --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/QueueShortInfoResource.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class QueueShortInfoResource { + /** + * Call queue extension identifier + */ + public String id; + /** + * Call queue name (read-only) + */ + public String name; + + public QueueShortInfoResource id(String id) { + this.id = id; + return this; + } + + public QueueShortInfoResource name(String name) { + this.name = name; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/RecipientInfo.java b/src/main/java/com/ringcentral/definitions/RecipientInfo.java index 7a5e70cd..b7312764 100644 --- a/src/main/java/com/ringcentral/definitions/RecipientInfo.java +++ b/src/main/java/com/ringcentral/definitions/RecipientInfo.java @@ -9,14 +9,14 @@ public class RecipientInfo { /** * Internal identifier of a recipient extension */ - public String id; + public Long id; public RecipientInfo uri(String uri) { this.uri = uri; return this; } - public RecipientInfo id(String id) { + public RecipientInfo id(Long id) { this.id = id; return this; } diff --git a/src/main/java/com/ringcentral/definitions/RegionalSettings.java b/src/main/java/com/ringcentral/definitions/RegionalSettings.java index d31f180e..8170d504 100644 --- a/src/main/java/com/ringcentral/definitions/RegionalSettings.java +++ b/src/main/java/com/ringcentral/definitions/RegionalSettings.java @@ -27,6 +27,10 @@ public class RegionalSettings { * Enum: 12h, 24h */ public String timeFormat; + /** + * + */ + public String bias; public RegionalSettings homeCountry(CountryInfo homeCountry) { this.homeCountry = homeCountry; @@ -58,4 +62,9 @@ public RegionalSettings timeFormat(String timeFormat) { return this; } + public RegionalSettings bias(String bias) { + this.bias = bias; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/SignupInfoResource.java b/src/main/java/com/ringcentral/definitions/SignupInfoResource.java new file mode 100644 index 00000000..a6de8486 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/SignupInfoResource.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class SignupInfoResource { + /** + * + */ + public Boolean tosAccepted; + /** + * + */ + public String[] signupState; + /** + * Enum: CC_Failed, Phone_Suspicious, CC_Phone_Not_Match, AVS_Not_Available, MaxMind, CC_Blacklisted, Email_Blacklisted, Phone_Blacklisted, Cookie_Blacklisted, Device_Blacklisted, IP_Blacklisted, Agent_Instance_Blacklisted, Charge_Limit, Other_Country, Unknown + */ + public String verificationReason; + + public SignupInfoResource tosAccepted(Boolean tosAccepted) { + this.tosAccepted = tosAccepted; + return this; + } + + public SignupInfoResource signupState(String[] signupState) { + this.signupState = signupState; + return this; + } + + public SignupInfoResource verificationReason(String verificationReason) { + this.verificationReason = verificationReason; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/SpecificInfo.java b/src/main/java/com/ringcentral/definitions/SpecificInfo.java new file mode 100644 index 00000000..23077679 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/SpecificInfo.java @@ -0,0 +1,42 @@ +package com.ringcentral.definitions; + + +public class SpecificInfo { + /** + * Starting time for data collection + */ + public String timeFrom; + /** + * Ending time for data collection + */ + public String timeTo; + /** + * + */ + public DataExportTaskContactInfo[] contacts; + /** + * List of chats from which the data (posts, files, tasks, events, notes, etc.) will be collected + */ + public String[] chatIds; + + public SpecificInfo timeFrom(String timeFrom) { + this.timeFrom = timeFrom; + return this; + } + + public SpecificInfo timeTo(String timeTo) { + this.timeTo = timeTo; + return this; + } + + public SpecificInfo contacts(DataExportTaskContactInfo[] contacts) { + this.contacts = contacts; + return this; + } + + public SpecificInfo chatIds(String[] chatIds) { + this.chatIds = chatIds; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/SwitchInfo.java b/src/main/java/com/ringcentral/definitions/SwitchInfo.java index 7366dc75..df041c8a 100644 --- a/src/main/java/com/ringcentral/definitions/SwitchInfo.java +++ b/src/main/java/com/ringcentral/definitions/SwitchInfo.java @@ -2,6 +2,10 @@ public class SwitchInfo { + /** + * Link to the network switch resource + */ + public String uri; /** * Internal identifier of a network switch */ @@ -27,6 +31,11 @@ public class SwitchInfo { */ public String emergencyLocationId; + public SwitchInfo uri(String uri) { + this.uri = uri; + return this; + } + public SwitchInfo id(String id) { this.id = id; return this; diff --git a/src/main/java/com/ringcentral/definitions/TargetServicePlanInfo.java b/src/main/java/com/ringcentral/definitions/TargetServicePlanInfo.java index e17fee7f..99a7094e 100644 --- a/src/main/java/com/ringcentral/definitions/TargetServicePlanInfo.java +++ b/src/main/java/com/ringcentral/definitions/TargetServicePlanInfo.java @@ -10,6 +10,10 @@ public class TargetServicePlanInfo { * Name of a target service plan */ public String name; + /** + * Edition of a service plan + */ + public String edition; public TargetServicePlanInfo id(String id) { this.id = id; @@ -21,4 +25,9 @@ public TargetServicePlanInfo name(String name) { return this; } + public TargetServicePlanInfo edition(String edition) { + this.edition = edition; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/UserCallQueues.java b/src/main/java/com/ringcentral/definitions/UserCallQueues.java new file mode 100644 index 00000000..66336c76 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UserCallQueues.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +public class UserCallQueues { + /** + * List of the queues where the extension is an agent + */ + public QueueShortInfoResource[] records; + + public UserCallQueues records(QueueShortInfoResource[] records) { + this.records = records; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UserContactsGroupsInfo.java b/src/main/java/com/ringcentral/definitions/UserContactsGroupsInfo.java new file mode 100644 index 00000000..37e98ca9 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UserContactsGroupsInfo.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +public class UserContactsGroupsInfo { + /** + * Link to the list of address book groups + */ + public String uri; + + public UserContactsGroupsInfo uri(String uri) { + this.uri = uri; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java b/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java index 823d744d..b13aab3a 100644 --- a/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java +++ b/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java @@ -20,7 +20,7 @@ public class UserPhoneNumberExtensionInfo { public String partnerId; /** * Extension type - * Enum: User, FaxUser, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnlyGroup, IvrMenu, ApplicationExtension, ParkLocation + * Enum: User, FaxUser, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnly, IvrMenu, ApplicationExtension, ParkLocation */ public String type; /** diff --git a/src/main/java/com/ringcentral/definitions/WirelessPointInfo.java b/src/main/java/com/ringcentral/definitions/WirelessPointInfo.java index f486e43f..30355b8c 100644 --- a/src/main/java/com/ringcentral/definitions/WirelessPointInfo.java +++ b/src/main/java/com/ringcentral/definitions/WirelessPointInfo.java @@ -2,6 +2,10 @@ public class WirelessPointInfo { + /** + * Link to the wireless point resource + */ + public String uri; /** * Internal identifier of a wireless point */ @@ -27,6 +31,11 @@ public class WirelessPointInfo { */ public String emergencyLocationId; + public WirelessPointInfo uri(String uri) { + this.uri = uri; + return this; + } + public WirelessPointInfo id(String id) { this.id = id; return this; diff --git a/src/main/java/com/ringcentral/definitions/WirelessPointsList.java b/src/main/java/com/ringcentral/definitions/WirelessPointsList.java index 67ac1e95..5588e214 100644 --- a/src/main/java/com/ringcentral/definitions/WirelessPointsList.java +++ b/src/main/java/com/ringcentral/definitions/WirelessPointsList.java @@ -3,7 +3,7 @@ public class WirelessPointsList { /** - * Link to the wireless points resource + * Link to the wireless point list resource */ public String uri; /** diff --git a/src/main/java/com/ringcentral/paths/restapi/Index.kt b/src/main/java/com/ringcentral/paths/restapi/Index.kt index 514d41e6..5a90a7bb 100644 --- a/src/main/java/com/ringcentral/paths/restapi/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/Index.kt @@ -29,7 +29,7 @@ class Index(val rc: com.ringcentral.RestClient, val apiVersion: String? = "v1.0" */ fun get(): com.ringcentral.definitions.GetVersionResponse? { if (this.apiVersion == null) { - throw NullPointerException("apiVersion") + throw NullPointerException("apiVersion"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/Index.kt index 85c8019d..8727505f 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/Index.kt @@ -18,7 +18,7 @@ class Index(val parent: com.ringcentral.paths.restapi.Index, val accountId: Stri */ fun get(): com.ringcentral.definitions.GetAccountInfoResponse? { if (this.accountId == null) { - throw NullPointerException("accountId") + throw NullPointerException("accountId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/answeringrule/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/answeringrule/Index.kt index e062361c..5754248d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/answeringrule/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/answeringrule/Index.kt @@ -42,7 +42,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val ruleId: */ fun get(): com.ringcentral.definitions.CompanyAnsweringRuleInfo? { if (this.ruleId == null) { - throw NullPointerException("ruleId") + throw NullPointerException("ruleId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -58,7 +58,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val ruleId: */ fun put(companyAnsweringRuleUpdate: com.ringcentral.definitions.CompanyAnsweringRuleUpdate): com.ringcentral.definitions.CompanyAnsweringRuleInfo? { if (this.ruleId == null) { - throw NullPointerException("ruleId") + throw NullPointerException("ruleId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), companyAnsweringRuleUpdate) @@ -74,7 +74,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val ruleId: */ fun delete(): String? { if (this.ruleId == null) { - throw NullPointerException("ruleId") + throw NullPointerException("ruleId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/calllog/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/calllog/Index.kt index 7c68352b..7098cc09 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/calllog/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/calllog/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val callRec */ fun get(): com.ringcentral.definitions.CompanyCallLogRecord? { if (this.callRecordId == null) { - throw NullPointerException("callRecordId") + throw NullPointerException("callRecordId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/Index.kt index e24ae94e..b84bc5aa 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val groupId */ fun put(createCallMonitoringGroupRequest: com.ringcentral.definitions.CreateCallMonitoringGroupRequest): com.ringcentral.definitions.CallMonitoringGroup? { if (this.groupId == null) { - throw NullPointerException("groupId") + throw NullPointerException("groupId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), createCallMonitoringGroupRequest) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val groupId */ fun delete(): String? { if (this.groupId == null) { - throw NullPointerException("groupId") + throw NullPointerException("groupId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callrecording/customgreetings/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callrecording/customgreetings/Index.kt index 82d0c61a..f2c92c7f 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callrecording/customgreetings/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callrecording/customgreetings/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.callrecording.Inde */ fun delete(): String? { if (this.greetingId == null) { - throw NullPointerException("greetingId") + throw NullPointerException("greetingId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/device/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/device/Index.kt index 78a8cfd1..cd1e044c 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/device/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/device/Index.kt @@ -19,7 +19,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val deviceI @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadDeviceParameters? = null): com.ringcentral.definitions.GetDeviceInfoResponse? { if (this.deviceId == null) { - throw NullPointerException("deviceId") + throw NullPointerException("deviceId"); } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) @@ -35,7 +35,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val deviceI */ fun put(accountDeviceUpdate: com.ringcentral.definitions.AccountDeviceUpdate): com.ringcentral.definitions.DeviceResource? { if (this.deviceId == null) { - throw NullPointerException("deviceId") + throw NullPointerException("deviceId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), accountDeviceUpdate) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/directory/entries/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/directory/entries/Index.kt index ffbd86d6..41fa3095 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/directory/entries/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/directory/entries/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.directory.Index, v */ fun get(): com.ringcentral.definitions.ContactResource? { if (this.entryId == null) { - throw NullPointerException("entryId") + throw NullPointerException("entryId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/networks/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/networks/Index.kt index 8baf8d84..d1a3e9a7 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/networks/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/networks/Index.kt @@ -42,7 +42,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun get(): com.ringcentral.definitions.NetworkInfo? { if (this.networkId == null) { - throw NullPointerException("networkId") + throw NullPointerException("networkId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -58,7 +58,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun put(updateNetworkRequest: com.ringcentral.definitions.UpdateNetworkRequest): String? { if (this.networkId == null) { - throw NullPointerException("networkId") + throw NullPointerException("networkId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateNetworkRequest) @@ -74,7 +74,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun delete(): String? { if (this.networkId == null) { - throw NullPointerException("networkId") + throw NullPointerException("networkId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switches/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switches/Index.kt index 7e041d9d..82e6e644 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switches/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switches/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun get(): com.ringcentral.definitions.SwitchInfo? { if (this.switchId == null) { - throw NullPointerException("switchId") + throw NullPointerException("switchId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun put(updateSwitchInfo: com.ringcentral.definitions.UpdateSwitchInfo): com.ringcentral.definitions.SwitchInfo? { if (this.switchId == null) { - throw NullPointerException("switchId") + throw NullPointerException("switchId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateSwitchInfo) @@ -75,7 +75,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun delete(): String? { if (this.switchId == null) { - throw NullPointerException("switchId") + throw NullPointerException("switchId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/tasks/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/tasks/Index.kt index e47217d4..1c96190d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/tasks/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/tasks/Index.kt @@ -18,7 +18,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun get(): com.ringcentral.definitions.AutomaticLocationUpdatesTaskInfo? { if (this.taskId == null) { - throw NullPointerException("taskId") + throw NullPointerException("taskId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspoints/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspoints/Index.kt index c5377897..e4d11059 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspoints/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspoints/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun get(): com.ringcentral.definitions.WirelessPointInfo? { if (this.pointId == null) { - throw NullPointerException("pointId") + throw NullPointerException("pointId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun put(updateWirelessPoint: com.ringcentral.definitions.UpdateWirelessPoint): com.ringcentral.definitions.WirelessPointInfo? { if (this.pointId == null) { - throw NullPointerException("pointId") + throw NullPointerException("pointId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateWirelessPoint) @@ -75,7 +75,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressau */ fun delete(): String? { if (this.pointId == null) { - throw NullPointerException("pointId") + throw NullPointerException("pointId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencylocations/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencylocations/Index.kt index d69c31f8..8629db70 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencylocations/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencylocations/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val locatio */ fun get(): com.ringcentral.definitions.EmergencyLocationInfo? { if (this.locationId == null) { - throw NullPointerException("locationId") + throw NullPointerException("locationId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val locatio */ fun put(emergencyLocationInfoRequest: com.ringcentral.definitions.EmergencyLocationInfoRequest): com.ringcentral.definitions.EmergencyLocationInfo? { if (this.locationId == null) { - throw NullPointerException("locationId") + throw NullPointerException("locationId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), emergencyLocationInfoRequest) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/Index.kt index 02365f9c..f3a01c90 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val extensi */ fun get(): com.ringcentral.definitions.GetExtensionInfoResponse? { if (this.extensionId == null) { - throw NullPointerException("extensionId") + throw NullPointerException("extensionId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val extensi */ fun put(extensionUpdateRequest: com.ringcentral.definitions.ExtensionUpdateRequest): com.ringcentral.definitions.GetExtensionInfoResponse? { if (this.extensionId == null) { - throw NullPointerException("extensionId") + throw NullPointerException("extensionId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), extensionUpdateRequest) @@ -76,7 +76,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val extensi @JvmOverloads fun delete(queryParams: com.ringcentral.definitions.DeleteExtensionParameters? = null): String? { if (this.extensionId == null) { - throw NullPointerException("extensionId") + throw NullPointerException("extensionId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path(), queryParams) @@ -239,6 +239,11 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val extensi } + fun callqueues(): com.ringcentral.paths.restapi.account.extension.callqueues.Index { + return com.ringcentral.paths.restapi.account.extension.callqueues.Index(this) + } + + fun features(): com.ringcentral.paths.restapi.account.extension.features.Index { return com.ringcentral.paths.restapi.account.extension.features.Index(this) } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbook/contact/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbook/contact/Index.kt index 41c89011..251266ef 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbook/contact/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbook/contact/Index.kt @@ -44,7 +44,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.addressb */ fun get(): com.ringcentral.definitions.PersonalContactResource? { if (this.contactId == null) { - throw NullPointerException("contactId") + throw NullPointerException("contactId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -61,7 +61,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.addressb @JvmOverloads fun put(personalContactRequest: com.ringcentral.definitions.PersonalContactRequest, queryParams: com.ringcentral.definitions.UpdateContactParameters? = null): com.ringcentral.definitions.PersonalContactResource? { if (this.contactId == null) { - throw NullPointerException("contactId") + throw NullPointerException("contactId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), personalContactRequest, queryParams) @@ -77,7 +77,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.addressb */ fun delete(): String? { if (this.contactId == null) { - throw NullPointerException("contactId") + throw NullPointerException("contactId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/answeringrule/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/answeringrule/Index.kt index 367194e1..957dfa18 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/answeringrule/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/answeringrule/Index.kt @@ -44,7 +44,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadAnsweringRuleParameters? = null): com.ringcentral.definitions.AnsweringRuleInfo? { if (this.ruleId == null) { - throw NullPointerException("ruleId") + throw NullPointerException("ruleId"); } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) @@ -60,7 +60,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun put(updateAnsweringRuleRequest: com.ringcentral.definitions.UpdateAnsweringRuleRequest): com.ringcentral.definitions.AnsweringRuleInfo? { if (this.ruleId == null) { - throw NullPointerException("ruleId") + throw NullPointerException("ruleId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateAnsweringRuleRequest) @@ -76,7 +76,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun delete(): String? { if (this.ruleId == null) { - throw NullPointerException("ruleId") + throw NullPointerException("ruleId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/callerblocking/phonenumbers/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/callerblocking/phonenumbers/Index.kt index e6b798e2..bcfad1d6 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/callerblocking/phonenumbers/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/callerblocking/phonenumbers/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.callerbl */ fun get(): com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo? { if (this.blockedNumberId == null) { - throw NullPointerException("blockedNumberId") + throw NullPointerException("blockedNumberId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.callerbl */ fun delete(): String? { if (this.blockedNumberId == null) { - throw NullPointerException("blockedNumberId") + throw NullPointerException("blockedNumberId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) @@ -75,7 +75,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.callerbl */ fun put(addBlockedAllowedPhoneNumber: com.ringcentral.definitions.AddBlockedAllowedPhoneNumber): com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo? { if (this.blockedNumberId == null) { - throw NullPointerException("blockedNumberId") + throw NullPointerException("blockedNumberId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), addBlockedAllowedPhoneNumber) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/calllog/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/calllog/Index.kt index 7e2f5ef1..2fa02c47 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/calllog/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/calllog/Index.kt @@ -45,7 +45,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadUserCallRecordParameters? = null): com.ringcentral.definitions.UserCallLogRecord? { if (this.callRecordId == null) { - throw NullPointerException("callRecordId") + throw NullPointerException("callRecordId"); } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/callqueues/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/callqueues/Index.kt new file mode 100644 index 00000000..a6c0ff4b --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/callqueues/Index.kt @@ -0,0 +1,22 @@ +package com.ringcentral.paths.restapi.account.extension.callqueues + +class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/call-queues" + } + + /** + * Operation: Update User Call Queues + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-queues + */ + fun put(userCallQueues: com.ringcentral.definitions.UserCallQueues): com.ringcentral.definitions.UserCallQueues? { + val rb: okhttp3.ResponseBody = rc.put(this.path(), userCallQueues) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserCallQueues::class.java) + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/forwardingnumber/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/forwardingnumber/Index.kt index c6d9d67c..9ecd259f 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/forwardingnumber/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/forwardingnumber/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun get(): com.ringcentral.definitions.ForwardingNumberInfo? { if (this.forwardingNumberId == null) { - throw NullPointerException("forwardingNumberId") + throw NullPointerException("forwardingNumberId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun put(updateForwardingNumberRequest: com.ringcentral.definitions.UpdateForwardingNumberRequest): com.ringcentral.definitions.ForwardingNumberInfo? { if (this.forwardingNumberId == null) { - throw NullPointerException("forwardingNumberId") + throw NullPointerException("forwardingNumberId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateForwardingNumberRequest) @@ -75,7 +75,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun delete(): String? { if (this.forwardingNumberId == null) { - throw NullPointerException("forwardingNumberId") + throw NullPointerException("forwardingNumberId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/greeting/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/greeting/Index.kt index 20b20a36..9926a53b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/greeting/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/greeting/Index.kt @@ -30,7 +30,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun get(): com.ringcentral.definitions.CustomUserGreetingInfo? { if (this.greetingId == null) { - throw NullPointerException("greetingId") + throw NullPointerException("greetingId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/Index.kt index 55887126..e43a3ec2 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/Index.kt @@ -42,7 +42,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun get(): com.ringcentral.definitions.MeetingResponseResource? { if (this.meetingId == null) { - throw NullPointerException("meetingId") + throw NullPointerException("meetingId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -58,7 +58,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun put(meetingRequestResource: com.ringcentral.definitions.MeetingRequestResource): com.ringcentral.definitions.MeetingResponseResource? { if (this.meetingId == null) { - throw NullPointerException("meetingId") + throw NullPointerException("meetingId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), meetingRequestResource) @@ -74,7 +74,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun delete(): String? { if (this.meetingId == null) { - throw NullPointerException("meetingId") + throw NullPointerException("meetingId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/messagestore/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/messagestore/Index.kt index 19ea461c..f5459be3 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/messagestore/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/messagestore/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun get(): com.ringcentral.definitions.GetMessageInfoResponse? { if (this.messageId == null) { - throw NullPointerException("messageId") + throw NullPointerException("messageId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -47,7 +47,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun put(updateMessageRequest: com.ringcentral.definitions.UpdateMessageRequest): com.ringcentral.definitions.GetMessageInfoResponse? { if (this.messageId == null) { - throw NullPointerException("messageId") + throw NullPointerException("messageId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateMessageRequest) @@ -64,7 +64,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v @JvmOverloads fun delete(queryParams: com.ringcentral.definitions.DeleteMessageParameters? = null): String? { if (this.messageId == null) { - throw NullPointerException("messageId") + throw NullPointerException("messageId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path(), queryParams) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/messagestore/content/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/messagestore/content/Index.kt index 08b2b50b..469e20f6 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/messagestore/content/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/messagestore/content/Index.kt @@ -19,7 +19,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.messages @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadMessageContentParameters? = null): ByteArray? { if (this.attachmentId == null) { - throw NullPointerException("attachmentId") + throw NullPointerException("attachmentId"); } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/profileimage/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/profileimage/Index.kt index 067e7a26..8376ff8f 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/profileimage/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/profileimage/Index.kt @@ -54,7 +54,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun get(): ByteArray? { if (this.scaleSize == null) { - throw NullPointerException("scaleSize") + throw NullPointerException("scaleSize"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/ringout/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/ringout/Index.kt index 20132199..7de41304 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/ringout/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/ringout/Index.kt @@ -30,7 +30,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun get(): com.ringcentral.definitions.GetRingOutStatusResponse? { if (this.ringoutId == null) { - throw NullPointerException("ringoutId") + throw NullPointerException("ringoutId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -46,7 +46,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, v */ fun delete(): String? { if (this.ringoutId == null) { - throw NullPointerException("ringoutId") + throw NullPointerException("ringoutId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/ivrmenus/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/ivrmenus/Index.kt index 063c0867..92b5babf 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/ivrmenus/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/ivrmenus/Index.kt @@ -30,7 +30,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val ivrMenu */ fun get(): com.ringcentral.definitions.IVRMenuInfo? { if (this.ivrMenuId == null) { - throw NullPointerException("ivrMenuId") + throw NullPointerException("ivrMenuId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -46,7 +46,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val ivrMenu */ fun put(iVRMenuInfo: com.ringcentral.definitions.IVRMenuInfo): com.ringcentral.definitions.IVRMenuInfo? { if (this.ivrMenuId == null) { - throw NullPointerException("ivrMenuId") + throw NullPointerException("ivrMenuId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), iVRMenuInfo) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/ivrprompts/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/ivrprompts/Index.kt index f8f6afa9..1771acac 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/ivrprompts/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/ivrprompts/Index.kt @@ -42,7 +42,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val promptI */ fun get(): com.ringcentral.definitions.PromptInfo? { if (this.promptId == null) { - throw NullPointerException("promptId") + throw NullPointerException("promptId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -58,7 +58,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val promptI */ fun delete(): String? { if (this.promptId == null) { - throw NullPointerException("promptId") + throw NullPointerException("promptId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) @@ -74,7 +74,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val promptI */ fun put(updateIVRPromptRequest: com.ringcentral.definitions.UpdateIVRPromptRequest): com.ringcentral.definitions.PromptInfo? { if (this.promptId == null) { - throw NullPointerException("promptId") + throw NullPointerException("promptId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateIVRPromptRequest) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/messagestorereport/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/messagestorereport/Index.kt index c3e3352d..22c41119 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/messagestorereport/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/messagestorereport/Index.kt @@ -30,7 +30,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val taskId: */ fun get(): com.ringcentral.definitions.MessageStoreReport? { if (this.taskId == null) { - throw NullPointerException("taskId") + throw NullPointerException("taskId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/messagestorereport/archive/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/messagestorereport/archive/Index.kt index 7d538ab9..bbd50f43 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/messagestorereport/archive/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/messagestorereport/archive/Index.kt @@ -30,7 +30,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.messagestorereport */ fun get(): String? { if (this.archiveId == null) { - throw NullPointerException("archiveId") + throw NullPointerException("archiveId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/phonenumber/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/phonenumber/Index.kt index 2d05acf1..1d47c674 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/phonenumber/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/phonenumber/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val phoneNu */ fun get(): com.ringcentral.definitions.CompanyPhoneNumberInfo? { if (this.phoneNumberId == null) { - throw NullPointerException("phoneNumberId") + throw NullPointerException("phoneNumberId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/recording/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/recording/Index.kt index 5fbdff9e..31109ac7 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/recording/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/recording/Index.kt @@ -18,7 +18,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val recordi */ fun get(): com.ringcentral.definitions.GetCallRecordingResponse? { if (this.recordingId == null) { - throw NullPointerException("recordingId") + throw NullPointerException("recordingId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/Index.kt index cc527e49..7a2064fa 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/Index.kt @@ -19,7 +19,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.telephony.Index, v @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadCallSessionStatusParameters? = null): com.ringcentral.definitions.CallSession? { if (this.telephonySessionId == null) { - throw NullPointerException("telephonySessionId") + throw NullPointerException("telephonySessionId"); } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) @@ -35,7 +35,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.telephony.Index, v */ fun delete(): String? { if (this.telephonySessionId == null) { - throw NullPointerException("telephonySessionId") + throw NullPointerException("telephonySessionId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/Index.kt index 4b55e788..ed54b703 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/Index.kt @@ -18,7 +18,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions */ fun get(): com.ringcentral.definitions.CallParty? { if (this.partyId == null) { - throw NullPointerException("partyId") + throw NullPointerException("partyId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -34,7 +34,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions */ fun patch(partyUpdateRequest: com.ringcentral.definitions.PartyUpdateRequest): com.ringcentral.definitions.CallParty? { if (this.partyId == null) { - throw NullPointerException("partyId") + throw NullPointerException("partyId"); } val rb: okhttp3.ResponseBody = rc.patch(this.path(), partyUpdateRequest) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/recordings/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/recordings/Index.kt index a7634a8d..87a7506a 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/recordings/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/recordings/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions @JvmOverloads fun patch(callRecordingUpdate: com.ringcentral.definitions.CallRecordingUpdate, queryParams: com.ringcentral.definitions.PauseResumeCallRecordingParameters? = null): com.ringcentral.definitions.CallRecording? { if (this.recordingId == null) { - throw NullPointerException("recordingId") + throw NullPointerException("recordingId"); } val rb: okhttp3.ResponseBody = rc.patch(this.path(), callRecordingUpdate, queryParams) diff --git a/src/main/java/com/ringcentral/paths/restapi/account/templates/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/templates/Index.kt index 6cfd4903..58b6b2bb 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/templates/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/templates/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.account.Index, val templat */ fun get(): com.ringcentral.definitions.TemplateInfo? { if (this.templateId == null) { - throw NullPointerException("templateId") + throw NullPointerException("templateId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/country/Index.kt b/src/main/java/com/ringcentral/paths/restapi/dictionary/country/Index.kt index 8aeaa3a6..12d514c1 100644 --- a/src/main/java/com/ringcentral/paths/restapi/dictionary/country/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/country/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val coun */ fun get(): com.ringcentral.definitions.GetCountryInfoDictionaryResponse? { if (this.countryId == null) { - throw NullPointerException("countryId") + throw NullPointerException("countryId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/greeting/Index.kt b/src/main/java/com/ringcentral/paths/restapi/dictionary/greeting/Index.kt index 3e2ed2c6..2db990a2 100644 --- a/src/main/java/com/ringcentral/paths/restapi/dictionary/greeting/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/greeting/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val gree */ fun get(): com.ringcentral.definitions.DictionaryGreetingInfo? { if (this.greetingId == null) { - throw NullPointerException("greetingId") + throw NullPointerException("greetingId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/language/Index.kt b/src/main/java/com/ringcentral/paths/restapi/dictionary/language/Index.kt index 11681460..9be24604 100644 --- a/src/main/java/com/ringcentral/paths/restapi/dictionary/language/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/language/Index.kt @@ -30,7 +30,7 @@ class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val lang */ fun get(): com.ringcentral.definitions.LanguageInfo? { if (this.languageId == null) { - throw NullPointerException("languageId") + throw NullPointerException("languageId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/state/Index.kt b/src/main/java/com/ringcentral/paths/restapi/dictionary/state/Index.kt index a7f46b85..5dc725f7 100644 --- a/src/main/java/com/ringcentral/paths/restapi/dictionary/state/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/state/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val stat */ fun get(): com.ringcentral.definitions.GetStateInfoResponse? { if (this.stateId == null) { - throw NullPointerException("stateId") + throw NullPointerException("stateId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/timezone/Index.kt b/src/main/java/com/ringcentral/paths/restapi/dictionary/timezone/Index.kt index a20fdbd2..2128b627 100644 --- a/src/main/java/com/ringcentral/paths/restapi/dictionary/timezone/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/timezone/Index.kt @@ -32,7 +32,7 @@ class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val time @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadTimezoneParameters? = null): com.ringcentral.definitions.GetTimezoneInfoResponse? { if (this.timezoneId == null) { - throw NullPointerException("timezoneId") + throw NullPointerException("timezoneId"); } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/cards/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/cards/Index.kt index 8b7b7182..e8b381ad 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/cards/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/cards/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val cardId: St */ fun get(): com.ringcentral.definitions.GlipMessageAttachmentInfo? { if (this.cardId == null) { - throw NullPointerException("cardId") + throw NullPointerException("cardId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -47,7 +47,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val cardId: St */ fun put(glipMessageAttachmentInfoRequest: com.ringcentral.definitions.GlipMessageAttachmentInfoRequest): String? { if (this.cardId == null) { - throw NullPointerException("cardId") + throw NullPointerException("cardId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), glipMessageAttachmentInfoRequest) @@ -63,7 +63,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val cardId: St */ fun delete(): String? { if (this.cardId == null) { - throw NullPointerException("cardId") + throw NullPointerException("cardId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/chats/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/chats/Index.kt index 5701c1e0..68cbc6e1 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/chats/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/chats/Index.kt @@ -31,7 +31,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val chatId: St */ fun get(): com.ringcentral.definitions.GlipChatInfo? { if (this.chatId == null) { - throw NullPointerException("chatId") + throw NullPointerException("chatId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/chats/posts/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/chats/posts/Index.kt index 27bbac17..73010544 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/chats/posts/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/chats/posts/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index, val post */ fun get(): com.ringcentral.definitions.GlipPostInfo? { if (this.postId == null) { - throw NullPointerException("postId") + throw NullPointerException("postId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index, val post */ fun patch(glipPatchPostBody: com.ringcentral.definitions.GlipPatchPostBody): com.ringcentral.definitions.GlipPostInfo? { if (this.postId == null) { - throw NullPointerException("postId") + throw NullPointerException("postId"); } val rb: okhttp3.ResponseBody = rc.patch(this.path(), glipPatchPostBody) @@ -75,7 +75,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index, val post */ fun delete(): String? { if (this.postId == null) { - throw NullPointerException("postId") + throw NullPointerException("postId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/companies/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/companies/Index.kt index ec8fc2ce..7de4739b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/companies/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/companies/Index.kt @@ -18,7 +18,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val companyId: */ fun get(): com.ringcentral.definitions.GlipCompany? { if (this.companyId == null) { - throw NullPointerException("companyId") + throw NullPointerException("companyId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/conversations/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/conversations/Index.kt index 35ff1069..bd865245 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/conversations/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/conversations/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val chatId: St */ fun get(): com.ringcentral.definitions.GlipConversationInfo? { if (this.chatId == null) { - throw NullPointerException("chatId") + throw NullPointerException("chatId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/dataexport/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/dataexport/Index.kt index 9330d14c..6b740819 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/dataexport/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/dataexport/Index.kt @@ -24,13 +24,26 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val taskId: St } + /** + * Operation: Get Data Export Task List + * Http Get /restapi/v1.0/glip/data-export + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListDataExportTasksParameters? = null): com.ringcentral.definitions.DataExportTaskList? { + val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.DataExportTaskList::class.java) + + } + + /** * Operation: Get Data Export Task * Http Get /restapi/v1.0/glip/data-export/{taskId} */ fun get(): com.ringcentral.definitions.DataExportTask? { if (this.taskId == null) { - throw NullPointerException("taskId") + throw NullPointerException("taskId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -39,4 +52,10 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val taskId: St } + + @JvmOverloads + fun datasets(datasetId: String? = null): com.ringcentral.paths.restapi.glip.dataexport.datasets.Index { + return com.ringcentral.paths.restapi.glip.dataexport.datasets.Index(this, datasetId) + } + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/dataexport/datasets/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/dataexport/datasets/Index.kt new file mode 100644 index 00000000..56d3bd19 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/glip/dataexport/datasets/Index.kt @@ -0,0 +1,30 @@ +package com.ringcentral.paths.restapi.glip.dataexport.datasets + +class Index(val parent: com.ringcentral.paths.restapi.glip.dataexport.Index, val datasetId: String? = null) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(withParameter: Boolean = true): String { + if (withParameter && datasetId != null) { + return "${parent.path()}/datasets/${datasetId}" + } + + return "${parent.path()}/datasets" + } + + /** + * Operation: Get Data Export Task Dataset + * Http Get /restapi/v1.0/glip/data-export/{taskId}/datasets/{datasetId} + */ + fun get(): ByteArray? { + if (this.datasetId == null) { + throw NullPointerException("datasetId"); + } + + val rb: okhttp3.ResponseBody = rc.get(this.path()) + + return rb.bytes() + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/events/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/events/Index.kt index d4158afc..d100fc02 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/events/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/events/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val eventId: S */ fun get(): com.ringcentral.definitions.GlipEventInfo? { if (this.eventId == null) { - throw NullPointerException("eventId") + throw NullPointerException("eventId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val eventId: S */ fun put(glipEventCreate: com.ringcentral.definitions.GlipEventCreate): com.ringcentral.definitions.GlipEventInfo? { if (this.eventId == null) { - throw NullPointerException("eventId") + throw NullPointerException("eventId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), glipEventCreate) @@ -75,7 +75,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val eventId: S */ fun delete(): String? { if (this.eventId == null) { - throw NullPointerException("eventId") + throw NullPointerException("eventId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/groups/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/groups/Index.kt index 26b1cc1d..3bcc4a3c 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/groups/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/groups/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val groupId: S */ fun get(): com.ringcentral.definitions.GlipGroupInfo? { if (this.groupId == null) { - throw NullPointerException("groupId") + throw NullPointerException("groupId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/notes/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/notes/Index.kt index d2c3f122..67bf995a 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/notes/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/notes/Index.kt @@ -18,7 +18,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val noteId: St */ fun get(): com.ringcentral.definitions.GetGlipNoteInfo? { if (this.noteId == null) { - throw NullPointerException("noteId") + throw NullPointerException("noteId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -34,7 +34,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val noteId: St */ fun patch(glipNoteCreate: com.ringcentral.definitions.GlipNoteCreate): com.ringcentral.definitions.GlipNoteInfo? { if (this.noteId == null) { - throw NullPointerException("noteId") + throw NullPointerException("noteId"); } val rb: okhttp3.ResponseBody = rc.patch(this.path(), glipNoteCreate) @@ -50,7 +50,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val noteId: St */ fun delete(): String? { if (this.noteId == null) { - throw NullPointerException("noteId") + throw NullPointerException("noteId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/persons/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/persons/Index.kt index 72acdf00..0a9936df 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/persons/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/persons/Index.kt @@ -18,7 +18,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val personId: */ fun get(): com.ringcentral.definitions.GlipPersonInfo? { if (this.personId == null) { - throw NullPointerException("personId") + throw NullPointerException("personId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/tasks/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/tasks/Index.kt index 40a2e609..3ac85f8a 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/tasks/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/tasks/Index.kt @@ -18,7 +18,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val taskId: St */ fun get(): com.ringcentral.definitions.GlipTaskInfo? { if (this.taskId == null) { - throw NullPointerException("taskId") + throw NullPointerException("taskId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -34,7 +34,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val taskId: St */ fun patch(glipUpdateTask: com.ringcentral.definitions.GlipUpdateTask): com.ringcentral.definitions.GlipTaskList? { if (this.taskId == null) { - throw NullPointerException("taskId") + throw NullPointerException("taskId"); } val rb: okhttp3.ResponseBody = rc.patch(this.path(), glipUpdateTask) @@ -50,7 +50,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val taskId: St */ fun delete(): String? { if (this.taskId == null) { - throw NullPointerException("taskId") + throw NullPointerException("taskId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/teams/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/teams/Index.kt index 17e36f8f..1cec4c0d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/teams/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/teams/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val chatId: St */ fun get(): com.ringcentral.definitions.GlipTeamInfo? { if (this.chatId == null) { - throw NullPointerException("chatId") + throw NullPointerException("chatId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val chatId: St */ fun patch(glipPatchTeamBody: com.ringcentral.definitions.GlipPatchTeamBody): com.ringcentral.definitions.GlipTeamInfo? { if (this.chatId == null) { - throw NullPointerException("chatId") + throw NullPointerException("chatId"); } val rb: okhttp3.ResponseBody = rc.patch(this.path(), glipPatchTeamBody) @@ -75,7 +75,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val chatId: St */ fun delete(): String? { if (this.chatId == null) { - throw NullPointerException("chatId") + throw NullPointerException("chatId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/Index.kt index 4a0d25de..d35c5a76 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/Index.kt @@ -30,7 +30,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val webhookId: */ fun get(): com.ringcentral.definitions.GlipWebhookList? { if (this.webhookId == null) { - throw NullPointerException("webhookId") + throw NullPointerException("webhookId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -46,7 +46,7 @@ class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val webhookId: */ fun delete(): String? { if (this.webhookId == null) { - throw NullPointerException("webhookId") + throw NullPointerException("webhookId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/restapi/subscription/Index.kt b/src/main/java/com/ringcentral/paths/restapi/subscription/Index.kt index 53a11e26..eda3ac1e 100644 --- a/src/main/java/com/ringcentral/paths/restapi/subscription/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/subscription/Index.kt @@ -42,7 +42,7 @@ class Index(val parent: com.ringcentral.paths.restapi.Index, val subscriptionId: */ fun get(): com.ringcentral.definitions.SubscriptionInfo? { if (this.subscriptionId == null) { - throw NullPointerException("subscriptionId") + throw NullPointerException("subscriptionId"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.restapi.Index, val subscriptionId: @JvmOverloads fun put(modifySubscriptionRequest: com.ringcentral.definitions.ModifySubscriptionRequest, queryParams: com.ringcentral.definitions.UpdateSubscriptionParameters? = null): com.ringcentral.definitions.SubscriptionInfo? { if (this.subscriptionId == null) { - throw NullPointerException("subscriptionId") + throw NullPointerException("subscriptionId"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), modifySubscriptionRequest, queryParams) @@ -75,7 +75,7 @@ class Index(val parent: com.ringcentral.paths.restapi.Index, val subscriptionId: */ fun delete(): String? { if (this.subscriptionId == null) { - throw NullPointerException("subscriptionId") + throw NullPointerException("subscriptionId"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) diff --git a/src/main/java/com/ringcentral/paths/scim/users/Index.kt b/src/main/java/com/ringcentral/paths/scim/users/Index.kt index 8b7b975c..4d111ffb 100644 --- a/src/main/java/com/ringcentral/paths/scim/users/Index.kt +++ b/src/main/java/com/ringcentral/paths/scim/users/Index.kt @@ -43,7 +43,7 @@ class Index(val parent: com.ringcentral.paths.scim.Index, val id: String? = null */ fun get(): com.ringcentral.definitions.UserResponse? { if (this.id == null) { - throw NullPointerException("id") + throw NullPointerException("id"); } val rb: okhttp3.ResponseBody = rc.get(this.path()) @@ -59,7 +59,7 @@ class Index(val parent: com.ringcentral.paths.scim.Index, val id: String? = null */ fun put(user: com.ringcentral.definitions.User): com.ringcentral.definitions.UserResponse? { if (this.id == null) { - throw NullPointerException("id") + throw NullPointerException("id"); } val rb: okhttp3.ResponseBody = rc.put(this.path(), user) @@ -75,7 +75,7 @@ class Index(val parent: com.ringcentral.paths.scim.Index, val id: String? = null */ fun delete(): String? { if (this.id == null) { - throw NullPointerException("id") + throw NullPointerException("id"); } val rb: okhttp3.ResponseBody = rc.delete(this.path()) @@ -91,7 +91,7 @@ class Index(val parent: com.ringcentral.paths.scim.Index, val id: String? = null */ fun patch(userPatch: com.ringcentral.definitions.UserPatch): com.ringcentral.definitions.UserResponse? { if (this.id == null) { - throw NullPointerException("id") + throw NullPointerException("id"); } val rb: okhttp3.ResponseBody = rc.patch(this.path(), userPatch) diff --git a/src/test/java/com/ringcentral/FaxTest.java b/src/test/java/com/ringcentral/FaxTest.java index 7db7dad1..51d59551 100644 --- a/src/test/java/com/ringcentral/FaxTest.java +++ b/src/test/java/com/ringcentral/FaxTest.java @@ -3,7 +3,7 @@ import com.ringcentral.definitions.Attachment; import com.ringcentral.definitions.CreateFaxMessageRequest; import com.ringcentral.definitions.FaxResponse; -import com.ringcentral.definitions.MessageStoreCallerInfoRequest; +import com.ringcentral.definitions.MessageStoreCalleeInfoRequest; import org.junit.Test; import java.io.IOException; @@ -30,8 +30,8 @@ public void sendFax() throws IOException, RestException { FaxResponse r = rc.restapi().account().extension().fax().post( new CreateFaxMessageRequest() - .to(new MessageStoreCallerInfoRequest[]{ - new MessageStoreCallerInfoRequest() + .to(new MessageStoreCalleeInfoRequest[]{ + new MessageStoreCalleeInfoRequest() .phoneNumber(System.getenv("RINGCENTRAL_USERNAME")) }) .attachments(