From 076455aa4cf666af11677b06af97720e5632332b Mon Sep 17 00:00:00 2001 From: Tyler Long Date: Fri, 27 Dec 2019 14:42:17 -0800 Subject: [PATCH] Re-generate code --- .vscode/settings.json | 4 +- samples.md | 435 ++++++++++++++++-- .../AccountBusinessAddressResource.java | 9 + .../definitions/AccountCallLogResponse.java | 16 +- .../definitions/AccountPhoneNumbers.java | 9 + .../ActiveCallsRecordExtensionInfo.java | 24 - .../definitions/ActiveCallsResponse.java | 36 -- .../ringcentral/definitions/AddonInfo.java | 4 +- .../definitions/AnsweringRuleInfo.java | 2 +- .../definitions/AudioPromptInfo.java | 4 +- .../ringcentral/definitions/BillingInfo.java | 24 + .../BulkAccountCallRecordingsResource.java | 12 +- .../definitions/CallLogRecord.java | 193 -------- .../definitions/CallLogRecordLegInfo.java | 105 ++++- .../ringcentral/definitions/CallLogSync.java | 4 +- .../definitions/CallMonitoringBulkAssign.java | 22 +- ....java => CallMonitoringExtensionInfo.java} | 8 +- .../definitions/CallMonitoringGroup.java | 9 + .../CallMonitoringGroupMemberInfo.java | 7 +- .../definitions/CallPartyReply.java | 24 + .../definitions/CallQueueMemberInfo.java | 4 +- .../definitions/CallerIdDeviceInfo.java | 6 +- .../ringcentral/definitions/CallerInfoTo.java | 2 +- .../CompanyActiveCallsResponse.java | 45 ++ .../CompanyAnsweringRuleUpdate.java | 17 +- .../definitions/CompanyCallLogRecord.java | 75 ++- .../definitions/CompanyPhoneNumberInfo.java | 13 +- .../ContactInfoCreationRequest.java | 1 - .../CreateCallMonitoringGroupRequest.java | 9 - .../CreateForwardingNumberRequest.java | 9 + .../CreateGlipConversationRequest.java | 6 +- .../definitions/CreateGlipMember.java | 24 + .../definitions/CreateNetworkRequest.java | 4 +- .../CreateSipRegistrationRequest.java | 2 - .../CreateSipRegistrationResponse.java | 31 +- .../definitions/CreateSwitchInfo.java | 4 +- .../ringcentral/definitions/CreateUser.java | 100 ++++ .../definitions/CreateWirelessPoint.java | 4 +- .../definitions/CustomAnsweringRuleInfo.java | 153 ++++++ .../CustomCompanyGreetingInfo.java | 4 +- .../definitions/CustomUserGreetingInfo.java | 6 +- .../DeleteExtensionParameters.java | 24 + .../DeleteUserCallLogParameters.java | 2 +- .../definitions/DepartmentMemberList.java | 9 + .../definitions/DeviceAddonInfo.java | 33 ++ ...DeviceEmergencyServiceAddressResource.java | 132 ++++++ .../definitions/DeviceExtensionInfo.java | 33 ++ .../definitions/DeviceInfoRequest.java | 4 +- .../definitions/DeviceModelInfo.java | 43 ++ .../DevicePhoneLinesEmergencyAddressInfo.java | 24 + .../definitions/DevicePhoneLinesInfo.java | 34 ++ .../DevicePhoneNumberCountryInfo.java | 33 ++ .../definitions/DevicePhoneNumberInfo.java | 62 +++ .../definitions/DeviceResource.java | 22 +- .../EmergencyLocationAddressInfo.java | 114 +++++ .../EmergencyLocationAddressInfoRequest.java | 60 +++ .../definitions/EmergencyLocationInfo.java | 24 + .../EmergencyLocationInfoRequest.java | 24 + .../definitions/EmergencyLocationList.java | 33 ++ ...mergencyServiceAddressResourceRequest.java | 44 +- .../ExtensionCreationResponse.java | 4 +- .../definitions/ExtensionDeviceResponse.java | 181 ++++++++ .../definitions/ExtensionInfoCallLog.java | 4 +- .../definitions/ExtensionInfoGrants.java | 11 +- .../ExtensionServiceFeatureInfo.java | 2 +- .../definitions/ExtensionStatusInfo.java | 2 +- .../definitions/FavoriteContactResource.java | 9 + .../ringcentral/definitions/FeatureInfo.java | 42 ++ .../ringcentral/definitions/FeatureList.java | 15 + .../definitions/ForwardingNumberInfo.java | 13 +- .../definitions/ForwardingNumberResource.java | 70 --- .../definitions/GetCountryListResponse.java | 9 + .../definitions/GetDeviceInfoResponse.java | 24 +- .../GetExtensionDevicesResponse.java | 13 +- ...ExtensionForwardingNumberListResponse.java | 9 + .../GetExtensionGrantListResponse.java | 9 + .../definitions/GetExtensionInfoResponse.java | 23 +- .../GetExtensionPhoneNumbersResponse.java | 9 + .../definitions/GetGlipNoteInfo.java | 115 +++++ .../definitions/GetMessageInfoResponse.java | 34 +- .../definitions/GetMessageList.java | 9 + .../definitions/GetMessageSyncResponse.java | 9 + .../definitions/GetPresenceExtensionInfo.java | 4 +- .../definitions/GetRingOutStatusResponse.java | 4 +- .../definitions/GetServiceInfoResponse.java | 27 ++ .../definitions/GetStateListResponse.java | 10 + .../definitions/GetTimezoneInfoResponse.java | 9 + .../ringcentral/definitions/GlipChatInfo.java | 4 +- .../definitions/GlipConversationInfo.java | 6 +- .../definitions/GlipCreateGroup.java | 6 +- .../definitions/GlipGroupInfo.java | 2 +- .../definitions/GlipGroupsEvent.java | 6 +- ...hatMemberInfo.java => GlipMemberInfo.java} | 4 +- .../definitions/GlipNoteCreate.java | 25 + .../ringcentral/definitions/GlipNoteInfo.java | 106 +++++ .../definitions/GlipNotesInfo.java | 24 + .../GlipPostMembersIdsListBody.java | 4 +- .../definitions/GlipPostMembersListBody.java | 6 +- .../definitions/GlipPostTeamBody.java | 6 +- .../ringcentral/definitions/GrantInfo.java | 18 + .../definitions/HostInfoRequest.java | 9 + .../definitions/IVRMenuExtensionInfo.java | 9 + .../definitions/IVRMenuPromptInfo.java | 8 +- .../definitions/IgnoreRequestBody.java | 16 + .../ringcentral/definitions/LanguageInfo.java | 9 + .../definitions/LastModifiedByInfo.java | 15 + ...istAccountMeetingRecordingsParameters.java | 53 +++ .../ListAccountPhoneNumbersParameters.java | 10 + .../definitions/ListChatNotesParameters.java | 63 +++ .../ListCompanyAnsweringRuleInfo.java | 18 + .../ListEmergencyLocationsParameters.java | 44 ++ .../ListExtensionGrantsParameters.java | 10 + .../ListExtensionPhoneNumbersParameters.java | 10 + .../definitions/ListExtensionsParameters.java | 2 +- .../ListMeetingRecordingsResponse.java | 33 ++ .../ListUserMeetingRecordingsParameters.java | 53 +++ .../LocationUpdatesEmergencyAddressInfo.java | 9 + ...ionUpdatesEmergencyAddressInfoRequest.java | 60 +++ .../ringcentral/definitions/LockedByInfo.java | 15 + .../ringcentral/definitions/MeetingInfo.java | 33 ++ .../definitions/MeetingRecordingInfo.java | 69 +++ .../definitions/MeetingRecordings.java | 24 + .../MeetingRecordingsNavigationInfo.java | 42 ++ .../MeetingRecordingsNavigationInfoUri.java | 15 + .../MeetingRecordingsPagingInfo.java | 60 +++ .../definitions/MessageAttachmentInfo.java | 28 +- ...> MessageStoreCallerInfoResponseFrom.java} | 36 +- .../MessageStoreCallerInfoResponseTo.java | 80 ++++ .../ringcentral/definitions/ModelInfo.java | 9 + .../ModifyAccountBusinessAddressRequest.java | 9 + .../definitions/NoteCreatorInfo.java | 15 + .../definitions/NotificationDeliveryMode.java | 38 +- .../NotificationDeliveryModeRequest.java | 6 +- .../ringcentral/definitions/OriginInfo.java | 2 +- .../ringcentral/definitions/OwnerInfo.java | 4 +- .../definitions/PagerCallerInfoRequest.java | 10 +- .../definitions/PagingOnlyGroupDevices.java | 9 + .../definitions/PagingOnlyGroupUsers.java | 11 +- .../ringcentral/definitions/ParamsInfo.java | 24 + .../definitions/PartySuperviseRequest.java | 37 ++ .../definitions/PartySuperviseResponse.java | 97 ++++ .../definitions/PermissionIdResource.java | 18 + .../definitions/PhoneLinesInfo.java | 18 + .../ringcentral/definitions/PlayResource.java | 33 -- .../ringcentral/definitions/PlayTarget.java | 45 -- .../PrivateIpRangeInfoRequest.java | 60 +++ .../definitions/PronouncedNameInfo.java | 9 + .../definitions/PronouncedNamePromptInfo.java | 15 + .../ReadCompanyCallLogParameters.java | 6 +- .../ReadUserCallLogParameters.java | 4 +- .../ReadUserFeaturesParameters.java | 24 + .../ringcentral/definitions/ReasonInfo.java | 25 + .../ringcentral/definitions/ReplyParty.java | 88 ++++ .../definitions/ReplyWithPattern.java | 35 ++ .../definitions/SIPFlagsResponse.java | 36 ++ .../definitions/ServiceFeatureInfo.java | 2 +- .../com/ringcentral/definitions/Shipping.java | 51 ++ .../definitions/ShippingAddressInfo.java | 56 ++- .../ringcentral/definitions/ShippingInfo.java | 2 +- .../definitions/ShippingResource.java | 4 +- .../SipRegistrationDeviceInfo.java | 179 +++++++ .../definitions/SubscriptionInfo.java | 28 ++ .../definitions/SuperviseCallSession.java | 18 + .../SyncAccountCallLogParameters.java | 2 +- .../definitions/SyncInfoCallLog.java | 2 +- .../definitions/SyncInfoMessages.java | 9 + .../SyncUserCallLogParameters.java | 4 +- .../ringcentral/definitions/TimezoneInfo.java | 9 + .../definitions/UnifiedPresence.java | 43 ++ .../definitions/UnifiedPresenceGlip.java | 37 ++ .../definitions/UnifiedPresenceListEntry.java | 33 ++ .../definitions/UnifiedPresenceMeeting.java | 17 + .../definitions/UnifiedPresenceTelephony.java | 37 ++ .../definitions/UpdateIVRPromptRequest.java | 2 +- .../definitions/UpdateNetworkRequest.java | 4 +- .../definitions/UpdateSwitchInfo.java | 4 +- .../definitions/UpdateUnifiedPresence.java | 24 + .../UpdateUnifiedPresenceGlip.java | 26 ++ .../UpdateUnifiedPresenceTelephony.java | 16 + .../definitions/UpdateWirelessPoint.java | 4 +- .../definitions/UserActiveCallsResponse.java | 45 ++ .../UserBusinessHoursUpdateRequest.java | 1 - .../definitions/UserCallLogRecord.java | 77 +++- .../definitions/UserCallLogResponse.java | 4 +- .../UserPhoneNumberExtensionInfo.java | 70 +++ .../definitions/UserPhoneNumberInfo.java | 26 +- ...ValidateMultipleWirelessPointsRequest.java | 4 +- .../definitions/VoicemailsInfo.java | 9 + .../definitions/WirelessPointInfoRequest.java | 60 +++ .../java/com/ringcentral/paths/media/Index.kt | 18 - .../com/ringcentral/paths/media/v1/Index.kt | 18 - .../ringcentral/paths/media/v1/glip/Index.kt | 18 - .../paths/media/v1/glip/dataexport/Index.kt | 23 - .../media/v1/glip/dataexport/archive/Index.kt | 34 -- .../com/ringcentral/paths/restapi/Index.kt | 110 ++--- .../paths/restapi/account/Index.kt | 223 ++++----- .../restapi/account/activecalls/Index.kt | 31 +- .../restapi/account/answeringrule/Index.kt | 130 +++--- .../restapi/account/businessaddress/Index.kt | 51 +- .../restapi/account/businesshours/Index.kt | 51 +- .../paths/restapi/account/calllog/Index.kt | 60 ++- .../restapi/account/calllogsync/Index.kt | 29 +- .../account/callmonitoringgroups/Index.kt | 119 +++-- .../callmonitoringgroups/bulkassign/Index.kt | 28 +- .../callmonitoringgroups/members/Index.kt | 29 +- .../paths/restapi/account/callqueues/Index.kt | 48 +- .../account/callqueues/bulkassign/Index.kt | 28 +- .../account/callqueues/members/Index.kt | 29 +- .../restapi/account/callrecording/Index.kt | 72 ++- .../account/callrecording/bulkassign/Index.kt | 28 +- .../callrecording/customgreetings/Index.kt | 60 ++- .../account/callrecording/extensions/Index.kt | 28 +- .../paths/restapi/account/department/Index.kt | 31 +- .../account/department/bulkassign/Index.kt | 28 +- .../account/department/members/Index.kt | 29 +- .../paths/restapi/account/device/Index.kt | 67 ++- .../paths/restapi/account/directory/Index.kt | 27 +- .../account/directory/entries/Index.kt | 68 ++- .../account/directory/entries/search/Index.kt | 28 +- .../account/directory/federation/Index.kt | 28 +- .../emergencyaddressautoupdate/Index.kt | 90 ++-- .../devices/Index.kt | 41 +- .../devices/bulkassign/Index.kt | 28 +- .../networks/Index.kt | 130 +++--- .../switches/Index.kt | 131 +++--- .../switchesbulkcreate/Index.kt | 28 +- .../switchesbulkupdate/Index.kt | 28 +- .../switchesbulkvalidate/Index.kt | 28 +- .../emergencyaddressautoupdate/tasks/Index.kt | 40 +- .../emergencyaddressautoupdate/users/Index.kt | 41 +- .../users/bulkassign/Index.kt | 28 +- .../wirelesspoints/Index.kt | 131 +++--- .../wirelesspointsbulkcreate/Index.kt | 28 +- .../wirelesspointsbulkupdate/Index.kt | 28 +- .../wirelesspointsbulkvalidate/Index.kt | 28 +- .../account/emergencylocations/Index.kt | 71 +++ .../paths/restapi/account/extension/Index.kt | 331 ++++++------- .../account/extension/activecalls/Index.kt | 31 +- .../account/extension/addressbook/Index.kt | 21 +- .../extension/addressbook/contact/Index.kt | 133 +++--- .../extension/addressbooksync/Index.kt | 29 +- .../account/extension/answeringrule/Index.kt | 134 +++--- .../account/extension/authzprofile/Index.kt | 40 +- .../extension/authzprofile/check/Index.kt | 29 +- .../account/extension/businesshours/Index.kt | 51 +- .../account/extension/callerblocking/Index.kt | 60 ++- .../callerblocking/phonenumbers/Index.kt | 131 +++--- .../account/extension/callerid/Index.kt | 51 +- .../account/extension/calllog/Index.kt | 81 ++-- .../account/extension/calllogsync/Index.kt | 29 +- .../account/extension/companypager/Index.kt | 28 +- .../account/extension/conferencing/Index.kt | 52 +-- .../restapi/account/extension/device/Index.kt | 29 +- .../account/extension/favorite/Index.kt | 51 +- .../restapi/account/extension/fax/Index.kt | 28 +- .../account/extension/features/Index.kt | 23 + .../extension/forwardingnumber/Index.kt | 133 +++--- .../restapi/account/extension/grant/Index.kt | 29 +- .../account/extension/greeting/Index.kt | 59 ++- .../account/extension/meeting/Index.kt | 144 +++--- .../account/extension/meeting/end/Index.kt | 28 +- .../extension/meeting/serviceinfo/Index.kt | 28 +- .../extension/meetingrecordings/Index.kt | 23 + .../extension/meetingsconfiguration/Index.kt | 26 +- .../meetingsconfiguration/assistants/Index.kt | 28 +- .../meetingsconfiguration/assisted/Index.kt | 28 +- .../account/extension/messagestore/Index.kt | 122 +++-- .../extension/messagestore/content/Index.kt | 41 +- .../account/extension/messagesync/Index.kt | 29 +- .../restapi/account/extension/mms/Index.kt | 36 +- .../extension/notificationsettings/Index.kt | 51 +- .../account/extension/phonenumber/Index.kt | 29 +- .../account/extension/presence/Index.kt | 52 +-- .../account/extension/profileimage/Index.kt | 97 ++-- .../account/extension/ringout/Index.kt | 85 ++-- .../restapi/account/extension/sms/Index.kt | 28 +- .../extension/unifiedpresence/Index.kt | 34 ++ .../paths/restapi/account/greeting/Index.kt | 28 +- .../paths/restapi/account/ivrmenus/Index.kt | 85 ++-- .../paths/restapi/account/ivrprompts/Index.kt | 138 +++--- .../account/ivrprompts/content/Index.kt | 28 +- .../account/meetingrecordings/Index.kt | 23 + .../messagestoreconfiguration/Index.kt | 51 +- .../account/messagestorereport/Index.kt | 68 ++- .../messagestorereport/archive/Index.kt | 59 ++- .../restapi/account/pagingonlygroups/Index.kt | 37 +- .../pagingonlygroups/bulkassign/Index.kt | 28 +- .../account/pagingonlygroups/devices/Index.kt | 29 +- .../account/pagingonlygroups/users/Index.kt | 29 +- .../restapi/account/phonenumber/Index.kt | 60 ++- .../paths/restapi/account/presence/Index.kt | 29 +- .../paths/restapi/account/recording/Index.kt | 48 +- .../account/recording/content/Index.kt | 28 +- .../restapi/account/serviceinfo/Index.kt | 28 +- .../paths/restapi/account/telephony/Index.kt | 27 +- .../account/telephony/callout/Index.kt | 28 +- .../account/telephony/sessions/Index.kt | 82 ++-- .../telephony/sessions/parties/Index.kt | 146 +++--- .../sessions/parties/answer/Index.kt | 28 +- .../telephony/sessions/parties/flip/Index.kt | 28 +- .../sessions/parties/forward/Index.kt | 28 +- .../telephony/sessions/parties/hold/Index.kt | 28 +- .../sessions/parties/ignore/Index.kt | 22 + .../telephony/sessions/parties/park/Index.kt | 22 + .../sessions/parties/pickup/Index.kt | 28 +- .../telephony/sessions/parties/play/Index.kt | 24 - .../sessions/parties/recordings/Index.kt | 60 ++- .../sessions/parties/reject/Index.kt | 28 +- .../telephony/sessions/parties/reply/Index.kt | 22 + .../sessions/parties/supervise/Index.kt | 22 + .../sessions/parties/transfer/Index.kt | 28 +- .../sessions/parties/unhold/Index.kt | 28 +- .../telephony/sessions/supervise/Index.kt | 28 +- .../paths/restapi/account/templates/Index.kt | 60 ++- .../paths/restapi/clientinfo/Index.kt | 20 +- .../restapi/clientinfo/sipprovision/Index.kt | 28 +- .../paths/restapi/dictionary/Index.kt | 61 ++- .../paths/restapi/dictionary/country/Index.kt | 60 ++- .../restapi/dictionary/faxcoverpage/Index.kt | 29 +- .../restapi/dictionary/greeting/Index.kt | 60 ++- .../restapi/dictionary/language/Index.kt | 59 ++- .../restapi/dictionary/location/Index.kt | 29 +- .../paths/restapi/dictionary/state/Index.kt | 60 ++- .../restapi/dictionary/timezone/Index.kt | 61 ++- .../ringcentral/paths/restapi/glip/Index.kt | 127 +++-- .../paths/restapi/glip/cards/Index.kt | 112 +++-- .../paths/restapi/glip/chats/Index.kt | 104 ++--- .../restapi/glip/chats/favorite/Index.kt | 28 +- .../paths/restapi/glip/chats/notes/Index.kt | 35 ++ .../paths/restapi/glip/chats/posts/Index.kt | 131 +++--- .../paths/restapi/glip/chats/read/Index.kt | 28 +- .../paths/restapi/glip/chats/tasks/Index.kt | 52 +-- .../restapi/glip/chats/unfavorite/Index.kt | 28 +- .../paths/restapi/glip/chats/unread/Index.kt | 28 +- .../paths/restapi/glip/companies/Index.kt | 40 +- .../paths/restapi/glip/conversations/Index.kt | 79 ++-- .../paths/restapi/glip/dataexport/Index.kt | 59 ++- .../paths/restapi/glip/events/Index.kt | 131 +++--- .../paths/restapi/glip/everyone/Index.kt | 51 +- .../paths/restapi/glip/favorites/Index.kt | 29 +- .../paths/restapi/glip/groups/Index.kt | 106 ++--- .../restapi/glip/groups/bulkassign/Index.kt | 28 +- .../paths/restapi/glip/groups/events/Index.kt | 51 +- .../paths/restapi/glip/groups/posts/Index.kt | 61 ++- .../restapi/glip/groups/posts/text/Index.kt | 28 +- .../restapi/glip/groups/webhooks/Index.kt | 51 +- .../paths/restapi/glip/notes/Index.kt | 77 ++++ .../paths/restapi/glip/notes/lock/Index.kt | 22 + .../paths/restapi/glip/notes/publish/Index.kt | 22 + .../paths/restapi/glip/notes/unlock/Index.kt | 22 + .../paths/restapi/glip/persons/Index.kt | 40 +- .../paths/restapi/glip/posts/Index.kt | 52 +-- .../paths/restapi/glip/preferences/Index.kt | 28 +- .../paths/restapi/glip/recent/Index.kt | 20 +- .../paths/restapi/glip/recent/chats/Index.kt | 29 +- .../paths/restapi/glip/tasks/Index.kt | 100 ++-- .../restapi/glip/tasks/complete/Index.kt | 28 +- .../paths/restapi/glip/teams/Index.kt | 169 +++---- .../paths/restapi/glip/teams/add/Index.kt | 28 +- .../paths/restapi/glip/teams/archive/Index.kt | 28 +- .../paths/restapi/glip/teams/join/Index.kt | 28 +- .../paths/restapi/glip/teams/leave/Index.kt | 28 +- .../paths/restapi/glip/teams/remove/Index.kt | 28 +- .../restapi/glip/teams/unarchive/Index.kt | 28 +- .../paths/restapi/glip/webhooks/Index.kt | 99 ++-- .../restapi/glip/webhooks/activate/Index.kt | 28 +- .../restapi/glip/webhooks/suspend/Index.kt | 28 +- .../paths/restapi/numberparser/Index.kt | 20 +- .../paths/restapi/numberparser/parse/Index.kt | 29 +- .../ringcentral/paths/restapi/oauth/Index.kt | 26 +- .../paths/restapi/oauth/revoke/Index.kt | 28 +- .../paths/restapi/oauth/token/Index.kt | 28 +- .../ringcentral/paths/restapi/status/Index.kt | 28 +- .../paths/restapi/subscription/Index.kt | 139 +++--- .../paths/restapi/subscription/renew/Index.kt | 28 +- .../java/com/ringcentral/paths/scim/Index.kt | 37 +- .../ringcentral/paths/scim/health/Index.kt | 28 +- .../paths/scim/serviceproviderconfig/Index.kt | 28 +- .../com/ringcentral/paths/scim/users/Index.kt | 167 ++++--- .../paths/scim/users/dotsearch/Index.kt | 28 +- .../ringcentral/CheckSubscriptionTest.java | 2 - .../java/com/ringcentral/ConsumeTextTest.java | 3 - 382 files changed, 9568 insertions(+), 5902 deletions(-) delete mode 100644 src/main/java/com/ringcentral/definitions/ActiveCallsRecordExtensionInfo.java delete mode 100644 src/main/java/com/ringcentral/definitions/ActiveCallsResponse.java create mode 100644 src/main/java/com/ringcentral/definitions/BillingInfo.java delete mode 100644 src/main/java/com/ringcentral/definitions/CallLogRecord.java rename src/main/java/com/ringcentral/definitions/{CallMonitoringExtensionUpdate.java => CallMonitoringExtensionInfo.java} (57%) create mode 100644 src/main/java/com/ringcentral/definitions/CallPartyReply.java create mode 100644 src/main/java/com/ringcentral/definitions/CompanyActiveCallsResponse.java create mode 100644 src/main/java/com/ringcentral/definitions/CreateGlipMember.java create mode 100644 src/main/java/com/ringcentral/definitions/CreateUser.java create mode 100644 src/main/java/com/ringcentral/definitions/CustomAnsweringRuleInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/DeleteExtensionParameters.java create mode 100644 src/main/java/com/ringcentral/definitions/DeviceAddonInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/DeviceEmergencyServiceAddressResource.java create mode 100644 src/main/java/com/ringcentral/definitions/DeviceExtensionInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/DeviceModelInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/DevicePhoneLinesEmergencyAddressInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/DevicePhoneLinesInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/DevicePhoneNumberCountryInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/DevicePhoneNumberInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/EmergencyLocationAddressInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/EmergencyLocationAddressInfoRequest.java create mode 100644 src/main/java/com/ringcentral/definitions/EmergencyLocationInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/EmergencyLocationInfoRequest.java create mode 100644 src/main/java/com/ringcentral/definitions/EmergencyLocationList.java create mode 100644 src/main/java/com/ringcentral/definitions/ExtensionDeviceResponse.java create mode 100644 src/main/java/com/ringcentral/definitions/FeatureInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/FeatureList.java delete mode 100644 src/main/java/com/ringcentral/definitions/ForwardingNumberResource.java create mode 100644 src/main/java/com/ringcentral/definitions/GetGlipNoteInfo.java rename src/main/java/com/ringcentral/definitions/{GlipChatMemberInfo.java => GlipMemberInfo.java} (67%) create mode 100644 src/main/java/com/ringcentral/definitions/GlipNoteCreate.java create mode 100644 src/main/java/com/ringcentral/definitions/GlipNoteInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/GlipNotesInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/IgnoreRequestBody.java create mode 100644 src/main/java/com/ringcentral/definitions/LastModifiedByInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/ListAccountMeetingRecordingsParameters.java create mode 100644 src/main/java/com/ringcentral/definitions/ListChatNotesParameters.java create mode 100644 src/main/java/com/ringcentral/definitions/ListEmergencyLocationsParameters.java create mode 100644 src/main/java/com/ringcentral/definitions/ListMeetingRecordingsResponse.java create mode 100644 src/main/java/com/ringcentral/definitions/ListUserMeetingRecordingsParameters.java create mode 100644 src/main/java/com/ringcentral/definitions/LocationUpdatesEmergencyAddressInfoRequest.java create mode 100644 src/main/java/com/ringcentral/definitions/LockedByInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/MeetingInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/MeetingRecordingInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/MeetingRecordings.java create mode 100644 src/main/java/com/ringcentral/definitions/MeetingRecordingsNavigationInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/MeetingRecordingsNavigationInfoUri.java create mode 100644 src/main/java/com/ringcentral/definitions/MeetingRecordingsPagingInfo.java rename src/main/java/com/ringcentral/definitions/{MessageStoreCallerInfoResponse.java => MessageStoreCallerInfoResponseFrom.java} (56%) create mode 100644 src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponseTo.java create mode 100644 src/main/java/com/ringcentral/definitions/NoteCreatorInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/ParamsInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/PartySuperviseRequest.java create mode 100644 src/main/java/com/ringcentral/definitions/PartySuperviseResponse.java delete mode 100644 src/main/java/com/ringcentral/definitions/PlayResource.java delete mode 100644 src/main/java/com/ringcentral/definitions/PlayTarget.java create mode 100644 src/main/java/com/ringcentral/definitions/PrivateIpRangeInfoRequest.java create mode 100644 src/main/java/com/ringcentral/definitions/PronouncedNamePromptInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/ReadUserFeaturesParameters.java create mode 100644 src/main/java/com/ringcentral/definitions/ReasonInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/ReplyParty.java create mode 100644 src/main/java/com/ringcentral/definitions/ReplyWithPattern.java create mode 100644 src/main/java/com/ringcentral/definitions/Shipping.java create mode 100644 src/main/java/com/ringcentral/definitions/SipRegistrationDeviceInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/UnifiedPresence.java create mode 100644 src/main/java/com/ringcentral/definitions/UnifiedPresenceGlip.java create mode 100644 src/main/java/com/ringcentral/definitions/UnifiedPresenceListEntry.java create mode 100644 src/main/java/com/ringcentral/definitions/UnifiedPresenceMeeting.java create mode 100644 src/main/java/com/ringcentral/definitions/UnifiedPresenceTelephony.java create mode 100644 src/main/java/com/ringcentral/definitions/UpdateUnifiedPresence.java create mode 100644 src/main/java/com/ringcentral/definitions/UpdateUnifiedPresenceGlip.java create mode 100644 src/main/java/com/ringcentral/definitions/UpdateUnifiedPresenceTelephony.java create mode 100644 src/main/java/com/ringcentral/definitions/UserActiveCallsResponse.java create mode 100644 src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java create mode 100644 src/main/java/com/ringcentral/definitions/WirelessPointInfoRequest.java delete mode 100644 src/main/java/com/ringcentral/paths/media/Index.kt delete mode 100644 src/main/java/com/ringcentral/paths/media/v1/Index.kt delete mode 100644 src/main/java/com/ringcentral/paths/media/v1/glip/Index.kt delete mode 100644 src/main/java/com/ringcentral/paths/media/v1/glip/dataexport/Index.kt delete mode 100644 src/main/java/com/ringcentral/paths/media/v1/glip/dataexport/archive/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/emergencylocations/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/extension/features/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/extension/meetingrecordings/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/extension/unifiedpresence/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/meetingrecordings/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/ignore/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/park/Index.kt delete mode 100644 src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/play/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/reply/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/supervise/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/glip/chats/notes/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/glip/notes/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/glip/notes/lock/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/glip/notes/publish/Index.kt create mode 100644 src/main/java/com/ringcentral/paths/restapi/glip/notes/unlock/Index.kt diff --git a/.vscode/settings.json b/.vscode/settings.json index 11331294..04cd6188 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "java.configuration.updateBuildConfiguration": "automatic" -} \ No newline at end of file + "java.configuration.updateBuildConfiguration": "automatic" +} diff --git a/samples.md b/samples.md index b6a68992..ce6ca16e 100644 --- a/samples.md +++ b/samples.md @@ -1,23 +1,6 @@ # RingCentral Java SDK Code Samples -## Get Glip Data Archive - -HTTP GET `/media/v1/glip/data-export/{taskId}/archive/{archiveId}` - -```cs -RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); -rc.authorize("username", "extension", "password"); -var result = rc.media().v1().glip().dataExport(taskId).archive(archiveId).get(); -rc.revoke(); -``` - - -- `result` is of type `byte[]` - -[Try it out](https://developer.ringcentral.com/api-reference#Glip-Compliance-Exports-readComplianceArchive) in API Explorer. - - ## Get API Versions HTTP GET `/restapi` @@ -118,7 +101,7 @@ rc.revoke(); ``` - Parameter `listCompanyActiveCallsParameters` is of type [ListCompanyActiveCallsParameters](./src/main/java/com/ringcentral/definitions/ListCompanyActiveCallsParameters.java) -- `result` is of type [ActiveCallsResponse](./src/main/java/com/ringcentral/definitions/ActiveCallsResponse.java) +- `result` is of type [CompanyActiveCallsResponse](./src/main/java/com/ringcentral/definitions/CompanyActiveCallsResponse.java) - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` @@ -1284,6 +1267,82 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteWirelessPoint) in API Explorer. +## Add Emergency Location + +HTTP POST `/restapi/v1.0/account/{accountId}/emergency-locations` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).emergencyLocations().post(emergencyLocationInfoRequest); +rc.revoke(); +``` + +- Parameter `emergencyLocationInfoRequest` is of type [EmergencyLocationInfoRequest](./src/main/java/com/ringcentral/definitions/EmergencyLocationInfoRequest.java) +- `result` is `null` +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` + +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createEmergencyLocation) in API Explorer. + + +## Get Emergency Location List + +HTTP GET `/restapi/v1.0/account/{accountId}/emergency-locations` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).emergencyLocations().list(listEmergencyLocationsParameters); +rc.revoke(); +``` + +- Parameter `listEmergencyLocationsParameters` is of type [ListEmergencyLocationsParameters](./src/main/java/com/ringcentral/definitions/ListEmergencyLocationsParameters.java) +- `result` is of type [EmergencyLocationList](./src/main/java/com/ringcentral/definitions/EmergencyLocationList.java) +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` + +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listEmergencyLocations) in API Explorer. + + +## Get Emergency Location + +HTTP GET `/restapi/v1.0/account/{accountId}/emergency-locations/{locationId}` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).emergencyLocations(locationId).get(); +rc.revoke(); +``` + + +- `result` is of type [EmergencyLocationInfo](./src/main/java/com/ringcentral/definitions/EmergencyLocationInfo.java) +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` + +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readEmergencyLocation) in API Explorer. + + +## Update Emergency Location + +HTTP PUT `/restapi/v1.0/account/{accountId}/emergency-locations/{locationId}` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).emergencyLocations(locationId).put(emergencyLocationInfoRequest); +rc.revoke(); +``` + +- Parameter `emergencyLocationInfoRequest` is of type [EmergencyLocationInfoRequest](./src/main/java/com/ringcentral/definitions/EmergencyLocationInfoRequest.java) +- `result` is of type [EmergencyLocationInfo](./src/main/java/com/ringcentral/definitions/EmergencyLocationInfo.java) +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` + +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateEmergencyLocation) in API Explorer. + + ## Get Extension List HTTP GET `/restapi/v1.0/account/{accountId}/extension` @@ -1369,11 +1428,11 @@ HTTP DELETE `/restapi/v1.0/account/{accountId}/extension/{extensionId}` ```cs RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); rc.authorize("username", "extension", "password"); -var result = rc.restapi(apiVersion).account(accountId).extension(extensionId).delete(); +var result = rc.restapi(apiVersion).account(accountId).extension(extensionId).delete(deleteExtensionParameters); rc.revoke(); ``` - +- Parameter `deleteExtensionParameters` is of type [DeleteExtensionParameters](./src/main/java/com/ringcentral/definitions/DeleteExtensionParameters.java) - `result` is `null` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` @@ -1394,7 +1453,7 @@ rc.revoke(); ``` - Parameter `listExtensionActiveCallsParameters` is of type [ListExtensionActiveCallsParameters](./src/main/java/com/ringcentral/definitions/ListExtensionActiveCallsParameters.java) -- `result` is of type [ActiveCallsResponse](./src/main/java/com/ringcentral/definitions/ActiveCallsResponse.java) +- `result` is of type [UserActiveCallsResponse](./src/main/java/com/ringcentral/definitions/UserActiveCallsResponse.java) - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` @@ -1556,7 +1615,7 @@ rc.revoke(); ``` - Parameter `createAnsweringRuleRequest` is of type [CreateAnsweringRuleRequest](./src/main/java/com/ringcentral/definitions/CreateAnsweringRuleRequest.java) -- `result` is of type [AnsweringRuleInfo](./src/main/java/com/ringcentral/definitions/AnsweringRuleInfo.java) +- `result` is of type [CustomAnsweringRuleInfo](./src/main/java/com/ringcentral/definitions/CustomAnsweringRuleInfo.java) - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` @@ -2104,6 +2163,26 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Fax-createFaxMessage) in API Explorer. +## Get User Features + +HTTP GET `/restapi/v1.0/account/{accountId}/extension/{extensionId}/features` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).extension(extensionId).features().get(readUserFeaturesParameters); +rc.revoke(); +``` + +- Parameter `readUserFeaturesParameters` is of type [ReadUserFeaturesParameters](./src/main/java/com/ringcentral/definitions/ReadUserFeaturesParameters.java) +- `result` is of type [FeatureList](./src/main/java/com/ringcentral/definitions/FeatureList.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#Features-readUserFeatures) in API Explorer. + + ## Get Forwarding Number List HTTP GET `/restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number` @@ -2156,7 +2235,7 @@ rc.revoke(); ``` -- `result` is of type [ForwardingNumberResource](./src/main/java/com/ringcentral/definitions/ForwardingNumberResource.java) +- `result` is of type [ForwardingNumberInfo](./src/main/java/com/ringcentral/definitions/ForwardingNumberInfo.java) - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` @@ -2304,6 +2383,26 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Meeting-Management-createMeeting) in API Explorer. +## Get User Meeting Recordings List + +HTTP GET `/restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting-recordings` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).extension(extensionId).meetingRecordings().get(listUserMeetingRecordingsParameters); +rc.revoke(); +``` + +- Parameter `listUserMeetingRecordingsParameters` is of type [ListUserMeetingRecordingsParameters](./src/main/java/com/ringcentral/definitions/ListUserMeetingRecordingsParameters.java) +- `result` is of type [ListMeetingRecordingsResponse](./src/main/java/com/ringcentral/definitions/ListMeetingRecordingsResponse.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#Meeting-Recordings-listUserMeetingRecordings) in API Explorer. + + ## Get Meeting Service Info HTTP GET `/restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/service-info` @@ -2844,6 +2943,46 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#SMS-createSMSMessage) in API Explorer. +## Get Unified Presence + +HTTP GET `/restapi/v1.0/account/{accountId}/extension/{extensionId}/unified-presence` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).extension(extensionId).unifiedPresence().get(); +rc.revoke(); +``` + + +- `result` is of type [UnifiedPresence](./src/main/java/com/ringcentral/definitions/UnifiedPresence.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#Presence-readUnifiedPresence) in API Explorer. + + +## Update Unified Presence + +HTTP PATCH `/restapi/v1.0/account/{accountId}/extension/{extensionId}/unified-presence` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).extension(extensionId).unifiedPresence().patch(updateUnifiedPresence); +rc.revoke(); +``` + +- Parameter `updateUnifiedPresence` is of type [UpdateUnifiedPresence](./src/main/java/com/ringcentral/definitions/UpdateUnifiedPresence.java) +- `result` is of type [UnifiedPresence](./src/main/java/com/ringcentral/definitions/UnifiedPresence.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#Presence-updateUnifiedPresence) in API Explorer. + + ## Create Company Greeting HTTP POST `/restapi/v1.0/account/{accountId}/greeting` @@ -3034,6 +3173,25 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Call-Routing-readIVRPromptContent) in API Explorer. +## Get Account Meeting Recordings List + +HTTP GET `/restapi/v1.0/account/{accountId}/meeting-recordings` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).meetingRecordings().get(listAccountMeetingRecordingsParameters); +rc.revoke(); +``` + +- Parameter `listAccountMeetingRecordingsParameters` is of type [ListAccountMeetingRecordingsParameters](./src/main/java/com/ringcentral/definitions/ListAccountMeetingRecordingsParameters.java) +- `result` is of type [ListMeetingRecordingsResponse](./src/main/java/com/ringcentral/definitions/ListMeetingRecordingsResponse.java) +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` + +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Recordings-listAccountMeetingRecordings) in API Explorer. + + ## Get Message Store Configuration HTTP GET `/restapi/v1.0/account/{accountId}/message-store-configuration` @@ -3319,7 +3477,7 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountServiceInfo) in API Explorer. -## Create CallOut Call Session +## Make CallOut HTTP POST `/restapi/v1.0/account/{accountId}/telephony/call-out` @@ -3490,42 +3648,61 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Call-Control-holdCallParty) in API Explorer. -## Pickup Call +## Ignore Call in Queue -HTTP POST `/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/pickup` +HTTP POST `/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/ignore` ```cs RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); rc.authorize("username", "extension", "password"); -var result = rc.restapi(apiVersion).account(accountId).telephony().sessions(telephonySessionId).parties(partyId).pickup().post(pickupTarget); +var result = rc.restapi(apiVersion).account(accountId).telephony().sessions(telephonySessionId).parties(partyId).ignore().post(ignoreRequestBody); rc.revoke(); ``` -- Parameter `pickupTarget` is of type [PickupTarget](./src/main/java/com/ringcentral/definitions/PickupTarget.java) +- Parameter `ignoreRequestBody` is of type [IgnoreRequestBody](./src/main/java/com/ringcentral/definitions/IgnoreRequestBody.java) +- `result` is `null` +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` + +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-ignoreCallInQueue) in API Explorer. + + +## Call Park + +HTTP POST `/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/park` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).telephony().sessions(telephonySessionId).parties(partyId).park().post(); +rc.revoke(); +``` + + - `result` is of type [CallParty](./src/main/java/com/ringcentral/definitions/CallParty.java) - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-pickupCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-callParkParty) in API Explorer. -## Play audio files into a party. +## Pickup Call -HTTP POST `/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/play` +HTTP POST `/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/pickup` ```cs RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); rc.authorize("username", "extension", "password"); -var result = rc.restapi(apiVersion).account(accountId).telephony().sessions(telephonySessionId).parties(partyId).play().post(playTarget); +var result = rc.restapi(apiVersion).account(accountId).telephony().sessions(telephonySessionId).parties(partyId).pickup().post(pickupTarget); rc.revoke(); ``` -- Parameter `playTarget` is of type [PlayTarget](./src/main/java/com/ringcentral/definitions/PlayTarget.java) -- `result` is `null` +- Parameter `pickupTarget` is of type [PickupTarget](./src/main/java/com/ringcentral/definitions/PickupTarget.java) +- `result` is of type [CallParty](./src/main/java/com/ringcentral/definitions/CallParty.java) - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-playCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-pickupCallParty) in API Explorer. ## Create Recording @@ -3586,6 +3763,44 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Call-Control-rejectParty) in API Explorer. +## Reply with Text + +HTTP POST `/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/reply` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).telephony().sessions(telephonySessionId).parties(partyId).reply().post(callPartyReply); +rc.revoke(); +``` + +- Parameter `callPartyReply` is of type [CallPartyReply](./src/main/java/com/ringcentral/definitions/CallPartyReply.java) +- `result` is of type [ReplyParty](./src/main/java/com/ringcentral/definitions/ReplyParty.java) +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` + +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-replyParty) in API Explorer. + + +## Supervise Call Party + +HTTP POST `/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/supervise` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).account(accountId).telephony().sessions(telephonySessionId).parties(partyId).supervise().post(partySuperviseRequest); +rc.revoke(); +``` + +- Parameter `partySuperviseRequest` is of type [PartySuperviseRequest](./src/main/java/com/ringcentral/definitions/PartySuperviseRequest.java) +- `result` is of type [PartySuperviseResponse](./src/main/java/com/ringcentral/definitions/PartySuperviseResponse.java) +- Parameter `apiVersion` is optional with default value `v1.0` +- Parameter `accountId` is optional with default value `~` + +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-superviseCallParty) in API Explorer. + + ## Transfer Call Party HTTP POST `/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/transfer` @@ -3624,7 +3839,7 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Call-Control-unholdCallParty) in API Explorer. -## Supervise Call +## Supervise Call Session HTTP POST `/restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/supervise` @@ -4042,6 +4257,42 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Chats-favoriteGlipChat) in API Explorer. +## Create Note + +HTTP POST `/restapi/v1.0/glip/chats/{chatId}/notes` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().chats(chatId).notes().post(glipNoteCreate); +rc.revoke(); +``` + +- Parameter `glipNoteCreate` is of type [GlipNoteCreate](./src/main/java/com/ringcentral/definitions/GlipNoteCreate.java) +- `result` is of type [GlipNoteInfo](./src/main/java/com/ringcentral/definitions/GlipNoteInfo.java) +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Notes-createChatNote) in API Explorer. + + +## Get Chat Notes + +HTTP GET `/restapi/v1.0/glip/chats/{chatId}/notes` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().chats(chatId).notes().get(listChatNotesParameters); +rc.revoke(); +``` + +- Parameter `listChatNotesParameters` is of type [ListChatNotesParameters](./src/main/java/com/ringcentral/definitions/ListChatNotesParameters.java) +- `result` is of type [GlipNotesInfo](./src/main/java/com/ringcentral/definitions/GlipNotesInfo.java) +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Notes-listChatNotes) in API Explorer. + + ## Get Posts HTTP GET `/restapi/v1.0/glip/chats/{chatId}/posts` @@ -4672,6 +4923,114 @@ rc.revoke(); [Try it out](https://developer.ringcentral.com/api-reference#Glip-Webhooks-listGlipGroupWebhooks) in API Explorer. +## Get Note + +HTTP GET `/restapi/v1.0/glip/notes/{noteId}` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().notes(noteId).get(); +rc.revoke(); +``` + + +- `result` is of type [GetGlipNoteInfo](./src/main/java/com/ringcentral/definitions/GetGlipNoteInfo.java) +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Notes-readUserNote) in API Explorer. + + +## Update Note + +HTTP PATCH `/restapi/v1.0/glip/notes/{noteId}` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().notes(noteId).patch(glipNoteCreate); +rc.revoke(); +``` + +- Parameter `glipNoteCreate` is of type [GlipNoteCreate](./src/main/java/com/ringcentral/definitions/GlipNoteCreate.java) +- `result` is of type [GlipNoteInfo](./src/main/java/com/ringcentral/definitions/GlipNoteInfo.java) +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Notes-patchNote) in API Explorer. + + +## Delete Note + +HTTP DELETE `/restapi/v1.0/glip/notes/{noteId}` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().notes(noteId).delete(); +rc.revoke(); +``` + + +- `result` is `null` +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Notes-deleteNote) in API Explorer. + + +## Lock Note + +HTTP POST `/restapi/v1.0/glip/notes/{noteId}/lock` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().notes(noteId).lock().post(); +rc.revoke(); +``` + + +- `result` is `null` +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Notes-lockNote) in API Explorer. + + +## Publish Note + +HTTP POST `/restapi/v1.0/glip/notes/{noteId}/publish` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().notes(noteId).publish().post(); +rc.revoke(); +``` + + +- `result` is `null` +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Notes-publishNote) in API Explorer. + + +## Unlock Note + +HTTP POST `/restapi/v1.0/glip/notes/{noteId}/unlock` + +```cs +RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); +rc.authorize("username", "extension", "password"); +var result = rc.restapi(apiVersion).glip().notes(noteId).unlock().post(); +rc.revoke(); +``` + + +- `result` is `null` +- Parameter `apiVersion` is optional with default value `v1.0` + +[Try it out](https://developer.ringcentral.com/api-reference#Notes-unlockNote) in API Explorer. + + ## Get Person HTTP GET `/restapi/v1.0/glip/persons/{personId}` @@ -5311,11 +5670,11 @@ HTTP POST `/scim/v2/Users` ```cs RestClient rc = new RestClient("clientID", "clientSecret", "serverURL"); rc.authorize("username", "extension", "password"); -var result = rc.scim(version).users().post(user); +var result = rc.scim(version).users().post(createUser); rc.revoke(); ``` -- Parameter `user` is of type [User](./src/main/java/com/ringcentral/definitions/User.java) +- Parameter `createUser` is of type [CreateUser](./src/main/java/com/ringcentral/definitions/CreateUser.java) - `result` is of type [UserResponse](./src/main/java/com/ringcentral/definitions/UserResponse.java) - Parameter `version` is optional with default value `v2` diff --git a/src/main/java/com/ringcentral/definitions/AccountBusinessAddressResource.java b/src/main/java/com/ringcentral/definitions/AccountBusinessAddressResource.java index c895b5d1..fb38936d 100644 --- a/src/main/java/com/ringcentral/definitions/AccountBusinessAddressResource.java +++ b/src/main/java/com/ringcentral/definitions/AccountBusinessAddressResource.java @@ -18,6 +18,10 @@ public class AccountBusinessAddressResource { * */ public String email; + /** + * Custom site name + */ + public String mainSiteName; public AccountBusinessAddressResource uri(String uri) { this.uri = uri; @@ -39,4 +43,9 @@ public AccountBusinessAddressResource email(String email) { return this; } + public AccountBusinessAddressResource mainSiteName(String mainSiteName) { + this.mainSiteName = mainSiteName; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/AccountCallLogResponse.java b/src/main/java/com/ringcentral/definitions/AccountCallLogResponse.java index 6a1ed87a..aee60a7c 100644 --- a/src/main/java/com/ringcentral/definitions/AccountCallLogResponse.java +++ b/src/main/java/com/ringcentral/definitions/AccountCallLogResponse.java @@ -2,23 +2,29 @@ public class AccountCallLogResponse { + /** + * Link to the list of company call log records + */ + public String uri; /** * List of call log records - * Required */ - public CallLogRecord[] records; + public CompanyCallLogRecord[] records; /** * Information on navigation - * Required */ public CallLogNavigationInfo navigation; /** * Information on paging - * Required */ public CallLogPagingInfo paging; - public AccountCallLogResponse records(CallLogRecord[] records) { + public AccountCallLogResponse uri(String uri) { + this.uri = uri; + return this; + } + + public AccountCallLogResponse records(CompanyCallLogRecord[] records) { this.records = records; return this; } diff --git a/src/main/java/com/ringcentral/definitions/AccountPhoneNumbers.java b/src/main/java/com/ringcentral/definitions/AccountPhoneNumbers.java index 2fa60b0c..c874cca1 100644 --- a/src/main/java/com/ringcentral/definitions/AccountPhoneNumbers.java +++ b/src/main/java/com/ringcentral/definitions/AccountPhoneNumbers.java @@ -2,6 +2,10 @@ public class AccountPhoneNumbers { + /** + * Link to the list of account phone numbers + */ + public String uri; /** * List of account phone numbers */ @@ -15,6 +19,11 @@ public class AccountPhoneNumbers { */ public ProvisioningPagingInfo paging; + public AccountPhoneNumbers uri(String uri) { + this.uri = uri; + return this; + } + public AccountPhoneNumbers records(CompanyPhoneNumberInfo[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/ActiveCallsRecordExtensionInfo.java b/src/main/java/com/ringcentral/definitions/ActiveCallsRecordExtensionInfo.java deleted file mode 100644 index 1207b5b2..00000000 --- a/src/main/java/com/ringcentral/definitions/ActiveCallsRecordExtensionInfo.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.ringcentral.definitions; - - -public class ActiveCallsRecordExtensionInfo { - /** - * Link to an extension on whose behalf a call is initiated - */ - public String uri; - /** - * Internal identifier of an extension on whose behalf a call is initiated - */ - public String id; - - public ActiveCallsRecordExtensionInfo uri(String uri) { - this.uri = uri; - return this; - } - - public ActiveCallsRecordExtensionInfo id(String id) { - this.id = id; - return this; - } - -} diff --git a/src/main/java/com/ringcentral/definitions/ActiveCallsResponse.java b/src/main/java/com/ringcentral/definitions/ActiveCallsResponse.java deleted file mode 100644 index 3b7e3a3f..00000000 --- a/src/main/java/com/ringcentral/definitions/ActiveCallsResponse.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.ringcentral.definitions; - - -public class ActiveCallsResponse { - /** - * List of call log records - * Required - */ - public CallLogRecord[] records; - /** - * Information on navigation - * Required - */ - public CallLogNavigationInfo navigation; - /** - * Information on paging - * Required - */ - public CallLogPagingInfo paging; - - public ActiveCallsResponse records(CallLogRecord[] records) { - this.records = records; - return this; - } - - public ActiveCallsResponse navigation(CallLogNavigationInfo navigation) { - this.navigation = navigation; - return this; - } - - public ActiveCallsResponse paging(CallLogPagingInfo paging) { - this.paging = paging; - return this; - } - -} diff --git a/src/main/java/com/ringcentral/definitions/AddonInfo.java b/src/main/java/com/ringcentral/definitions/AddonInfo.java index 3718219e..1d0b4a80 100644 --- a/src/main/java/com/ringcentral/definitions/AddonInfo.java +++ b/src/main/java/com/ringcentral/definitions/AddonInfo.java @@ -13,7 +13,7 @@ public class AddonInfo { /** * */ - public String count; + public Long count; public AddonInfo id(String id) { this.id = id; @@ -25,7 +25,7 @@ public AddonInfo name(String name) { return this; } - public AddonInfo count(String count) { + public AddonInfo count(Long count) { this.count = count; return this; } diff --git a/src/main/java/com/ringcentral/definitions/AnsweringRuleInfo.java b/src/main/java/com/ringcentral/definitions/AnsweringRuleInfo.java index 937d9c5c..c9313e09 100644 --- a/src/main/java/com/ringcentral/definitions/AnsweringRuleInfo.java +++ b/src/main/java/com/ringcentral/definitions/AnsweringRuleInfo.java @@ -37,7 +37,7 @@ public class AnsweringRuleInfo { public CallersInfo[] callers; /** * Specifies how incoming calls are forwarded - * Enum: ForwardCalls, UnconditionalForwarding, AgentQueue, TransferToExtension, TakeMessagesOnly, PlayAnnouncementOnly + * Enum: ForwardCalls, UnconditionalForwarding, AgentQueue, TransferToExtension, TakeMessagesOnly, PlayAnnouncementOnly, SharedLines */ public String callHandlingAction; /** diff --git a/src/main/java/com/ringcentral/definitions/AudioPromptInfo.java b/src/main/java/com/ringcentral/definitions/AudioPromptInfo.java index d9ad4589..cdb553ec 100644 --- a/src/main/java/com/ringcentral/definitions/AudioPromptInfo.java +++ b/src/main/java/com/ringcentral/definitions/AudioPromptInfo.java @@ -3,11 +3,11 @@ public class AudioPromptInfo { /** - * Link to an prompt audio file + * Link to a prompt audio file */ public String uri; /** - * Internal identifier of an prompt + * Internal identifier of a prompt */ public String id; diff --git a/src/main/java/com/ringcentral/definitions/BillingInfo.java b/src/main/java/com/ringcentral/definitions/BillingInfo.java new file mode 100644 index 00000000..8cae24e2 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/BillingInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class BillingInfo { + /** + * Cost per minute, paid and already included in your RingCentral Plan. For example International Calls + */ + public Long costIncluded; + /** + * Cost per minute, paid and not included in your RingCentral Plan + */ + public Long costPurchased; + + public BillingInfo costIncluded(Long costIncluded) { + this.costIncluded = costIncluded; + return this; + } + + public BillingInfo costPurchased(Long costPurchased) { + this.costPurchased = costPurchased; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/BulkAccountCallRecordingsResource.java b/src/main/java/com/ringcentral/definitions/BulkAccountCallRecordingsResource.java index 5ec8d3a3..864aa93f 100644 --- a/src/main/java/com/ringcentral/definitions/BulkAccountCallRecordingsResource.java +++ b/src/main/java/com/ringcentral/definitions/BulkAccountCallRecordingsResource.java @@ -5,27 +5,27 @@ public class BulkAccountCallRecordingsResource { /** * */ - public CallRecordingExtensionResource addedExtensions; + public CallRecordingExtensionResource[] addedExtensions; /** * */ - public CallRecordingExtensionResource updatedExtensions; + public CallRecordingExtensionResource[] updatedExtensions; /** * */ - public CallRecordingExtensionResource removedExtensions; + public CallRecordingExtensionResource[] removedExtensions; - public BulkAccountCallRecordingsResource addedExtensions(CallRecordingExtensionResource addedExtensions) { + public BulkAccountCallRecordingsResource addedExtensions(CallRecordingExtensionResource[] addedExtensions) { this.addedExtensions = addedExtensions; return this; } - public BulkAccountCallRecordingsResource updatedExtensions(CallRecordingExtensionResource updatedExtensions) { + public BulkAccountCallRecordingsResource updatedExtensions(CallRecordingExtensionResource[] updatedExtensions) { this.updatedExtensions = updatedExtensions; return this; } - public BulkAccountCallRecordingsResource removedExtensions(CallRecordingExtensionResource removedExtensions) { + public BulkAccountCallRecordingsResource removedExtensions(CallRecordingExtensionResource[] removedExtensions) { this.removedExtensions = removedExtensions; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CallLogRecord.java b/src/main/java/com/ringcentral/definitions/CallLogRecord.java deleted file mode 100644 index 057cb456..00000000 --- a/src/main/java/com/ringcentral/definitions/CallLogRecord.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.ringcentral.definitions; - - -public class CallLogRecord { - /** - * Internal identifier of a cal log record - */ - public String id; - /** - * Canonical URI of a call log record - */ - public String uri; - /** - * Internal identifier of a call session - */ - public String sessionId; - /** - * Caller information - */ - public CallLogCallerInfo from; - /** - * Callee information - */ - public CallLogCallerInfo to; - /** - * Call type - * Enum: Voice, Fax - */ - public String type; - /** - * Call direction - * Enum: Inbound, Outbound - */ - public String direction; - /** - * Action description of the call operation - * Enum: Unknown, Phone Login, Calling Card, VoIP Call, Phone Call, Paging, Hunting, Call Park, Monitoring, Text Relay, External Application, Park Location, CallOut-CallMe, Conference Call, Move, RC Meetings, Accept Call, FindMe, FollowMe, RingMe, Transfer, Call Return, Ring Directly, RingOut Web, RingOut PC, RingOut Mobile, Emergency, E911 Update, Support, Incoming Fax, Outgoing Fax - */ - public String action; - /** - * Status description of the call operation - * Enum: Unknown, Accepted, Call connected, In Progress, Voicemail, Reply, Missed, Busy, Rejected, No Answer, Hang Up, Blocked, Suspended account, Call Failed, Call Failure, Internal Error, IP Phone Offline, No Calling Credit, Restricted Number, Wrong Number, Answered Not Accepted, Stopped, International Disabled, International Restricted, Abandoned, Declined, Received, Fax on Demand, Partial Receive, Receive Error, Fax Receipt Error, Sent, Fax Partially Sent, Send Error, Fax Not Sent, Fax Poor Line - */ - public String result; - /** - * Reason of a call result: * `Accepted` - The call was connected to and accepted by this number * `Connected` - The call was answered, but there was no response on how to handle the call (for example, a voice mail system answered the call and did not push "1" to accept) * `Line Busy` - The phone number you dialed was busy * `Not Answered` - The phone number you dialed was not answered * `No Answer` - You did not answer the call * `Hang Up` - The caller hung up before the call was answered * `Stopped` - This attempt was stopped because the call was answered by another phone * `Internal Error` - An internal error occurred when making the call. Please try again * `No Credit` - There was not enough Calling Credit on your account to make this call * `Restricted Number` - The number you dialed is restricted by RingCentral * `Wrong Number` - The number you dialed has either been disconnected or is not a valid phone number. Please check the number and try again * `International Disabled` - International calling is not enabled on your account. Contact customer service to activate International Calling * `International Restricted` - The country and/or area you attempted to call has been prohibited by your administrator * `Bad Number` - An error occurred when making the call. Please check the number before trying again * `Info 411 Restricted` - Calling to 411 Information Services is restricted * `Customer 611 Restricted` - 611 customer service is not supported. Please contact customer service at <(888) 555-1212> * `No Digital Line` - This DigitalLine was either not plugged in or did not have an internet connection * `Failed Try Again` - Call failed. Please try again * `Max Call Limit` - The number of simultaneous calls to your account has reached its limit * `Too Many Calls` - The number of simultaneous calls for per DigitalLine associated with Other Phone has reached its limit. Please contact customer service * `Calls Not Accepted` - Your account was not accepting calls at this time * `Number Not Allowed` - The number that was dialed to access your account is not allowed * `Number Blocked` - This number is in your Blocked Numbers list * `Number Disabled` - The phone number and/or area you attempted to call has been prohibited by your administrator * `Resource Error` - An error occurred when making the call. Please try again * `Call Loop` - A call loop occurred due to an incorrect call forwarding configuration. Please check that you are not forwarding calls back to your own account * `Fax Not Received` - An incoming fax could not be received because a proper connection with the sender's fax machine could not be established * `Fax Partially Sent` - The fax was only partially sent. Possible explanations include phone line quality to poor to maintain the connection or the call was dropped * `Fax Not Sent` - An attempt to send the fax was made, but could not connect with the receiving fax machine * `Fax Poor Line` - An attempt to send the fax was made, but the phone line quality was too poor to send the fax * `Fax Prepare Error` - An internal error occurred when preparing the fax. Please try again * `Fax Save Error` - An internal error occurred when saving the fax. Please try again * `Fax Send Error` - An error occurred when sending the fax. Please try again - * Enum: Accepted, Connected, line Busy, Not Answered, No Answer, Hang Up, Stopped, Internal Error, No Credit, Restricted Number, Wrong Number, International Disabled, International Restricted, Bad Number, Info 411 Restricted, Customer 611 Restricted, No Digital Line, Failed Try Again, Max Call Limit, Too Many Calls, Calls Not Accepted, Number Not Allowed, Number Blocked, Number Disabled, Resource Error, Call Loop, Fax Not Received, Fax Partially Sent, Fax Not Sent, Fax Poor Line, Fax Prepare Error, Fax Save Error, Fax Send Error - */ - public String reason; - /** - * The call start datetime in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z - */ - public String startTime; - /** - * Call duration in seconds - */ - public Long duration; - /** - * Call recording data. Returned if the call is recorded, the withRecording parameter is set to 'True' in this case - */ - public CallLogRecordingInfo recording; - /** - * For 'Detailed' view only. The datetime when the call log record was modified in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z - */ - public String lastModifiedTime; - /** - * For 'Detailed' view only. Call transport - * Enum: PSTN, VoIP - */ - public String transport; - /** - * Information about extension on whose behalf a call is initiated. For Secretary call log the Boss extension info is returned - */ - public ActiveCallsRecordExtensionInfo extension; - /** - * Information on a delegate extension that actually implemented a call action. For Secretary call log the field is returned if the current extension implemented a call. For Boss call log the field contains information on a Secretary extension which actually implemented a call on behalf of the current extension - */ - public DelegateInfo delegate; - /** - * For 'Detailed' view only. Leg description - * Required - */ - public CallLogRecordLegInfo[] legs; - /** - * - */ - public CallLogRecordMessage message; - /** - * Returned only if this call was deleted. Value is set to 'True' in this case - */ - public Boolean deleted; - - public CallLogRecord id(String id) { - this.id = id; - return this; - } - - public CallLogRecord uri(String uri) { - this.uri = uri; - return this; - } - - public CallLogRecord sessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - public CallLogRecord from(CallLogCallerInfo from) { - this.from = from; - return this; - } - - public CallLogRecord to(CallLogCallerInfo to) { - this.to = to; - return this; - } - - public CallLogRecord type(String type) { - this.type = type; - return this; - } - - public CallLogRecord direction(String direction) { - this.direction = direction; - return this; - } - - public CallLogRecord action(String action) { - this.action = action; - return this; - } - - public CallLogRecord result(String result) { - this.result = result; - return this; - } - - public CallLogRecord reason(String reason) { - this.reason = reason; - return this; - } - - public CallLogRecord startTime(String startTime) { - this.startTime = startTime; - return this; - } - - public CallLogRecord duration(Long duration) { - this.duration = duration; - return this; - } - - public CallLogRecord recording(CallLogRecordingInfo recording) { - this.recording = recording; - return this; - } - - public CallLogRecord lastModifiedTime(String lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - public CallLogRecord transport(String transport) { - this.transport = transport; - return this; - } - - public CallLogRecord extension(ActiveCallsRecordExtensionInfo extension) { - this.extension = extension; - return this; - } - - public CallLogRecord delegate(DelegateInfo delegate) { - this.delegate = delegate; - return this; - } - - public CallLogRecord legs(CallLogRecordLegInfo[] legs) { - this.legs = legs; - return this; - } - - public CallLogRecord message(CallLogRecordMessage message) { - this.message = message; - return this; - } - - public CallLogRecord deleted(Boolean deleted) { - this.deleted = deleted; - return this; - } - -} diff --git a/src/main/java/com/ringcentral/definitions/CallLogRecordLegInfo.java b/src/main/java/com/ringcentral/definitions/CallLogRecordLegInfo.java index 4343e706..5aac5356 100644 --- a/src/main/java/com/ringcentral/definitions/CallLogRecordLegInfo.java +++ b/src/main/java/com/ringcentral/definitions/CallLogRecordLegInfo.java @@ -4,7 +4,7 @@ public class CallLogRecordLegInfo { /** * Action description of the call operation - * Enum: Unknown, Phone Call, Phone Login, Incoming Fax, Accept Call, FindMe, FollowMe, Outgoing Fax, Call Return, Calling Card, Ring Directly, RingOut Web, VoIP Call, RingOut PC, RingMe, Transfer, 411 Info, Emergency, E911 Update, Support, RingOut Mobile + * Enum: Unknown, Phone Call, Phone Login, Incoming Fax, Accept Call, External Application, FindMe, FollowMe, Outgoing Fax, CallOut-CallMe, Call Return, Calling Card, Monitoring, Ring Directly, RingOut Web, Text Relay, VoIP Call, RingOut PC, RingMe, Transfer, 411 Info, Emergency, E911 Update, Support, RingOut Mobile */ public String action; /** @@ -12,6 +12,18 @@ public class CallLogRecordLegInfo { * Enum: Inbound, Outbound */ public String direction; + /** + * Billing information related to the call + */ + public BillingInfo billing; + /** + * Information on a delegate extension that actually implemented a call action. For Secretary call log the field is returned if the current extension implemented a call. For Boss call log the field contains information on a Secretary extension which actually implemented a call on behalf of the current extension + */ + public DelegateInfo delegate; + /** + * Internal identifier of an extension + */ + public String extensionId; /** * Call duration in seconds */ @@ -22,11 +34,11 @@ public class CallLogRecordLegInfo { public ExtensionInfoCallLog extension; /** * Leg type - * Enum: SipForwarding, ServiceMinus2, ServiceMinus3, PstnToSip, Accept, FindMe, FollowMe, TestCall, FaxSent, CallBack, CallingCard, RingDirectly, RingOutWebToSubscriber, RingOutWebToCaller, SipToPstnMetered, RingOutClientToSubscriber, RingOutClientToCaller, RingMe, TransferCall, SipToPstnUnmetered, RingOutDeviceToSubscriber, RingOutDeviceToCaller, RingOutOneLegToCaller, ExtensionToExtension, CallPark, PagingServer, Hunting, OutgoingFreeSpDl, ParkLocation, ConferenceCall, MobileApp, MoveToConference, Unknown + * Enum: SipForwarding, ServiceMinus2, ServiceMinus3, PstnToSip, Accept, FindMe, FollowMe, TestCall, FaxSent, CallBack, CallingCard, RingDirectly, RingOutWebToSubscriber, RingOutWebToCaller, SipToPstnMetered, RingOutClientToSubscriber, RingOutClientToCaller, RingMe, TransferCall, SipToPstnUnmetered, RingOutDeviceToSubscriber, RingOutDeviceToCaller, RingOutOneLegToCaller, ExtensionToExtension, CallPark, PagingServer, Hunting, OutgoingFreeSpDl, ParkLocation, ConferenceCall, MobileApp, Monitoring, MoveToConference, Unknown */ public String legType; /** - * The call start datetime in 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; /** @@ -36,9 +48,51 @@ public class CallLogRecordLegInfo { public String type; /** * Status description of the call operation - * Enum: Unknown, Accepted, Call connected, In Progress, Voicemail, Reply, Missed, Busy, Rejected, No Answer, Hang Up, Blocked, Suspended account, Call Failed, Call Failure, Internal Error, IP Phone Offline, No Calling Credit, Restricted Number, Wrong Number, Answered Not Accepted, Stopped, International Disabled, International Restricted, Abandoned, Declined, Received, Fax on Demand, Partial Receive, Receive Error, Fax Receipt Error, Sent, Fax Partially Sent, Send Error, Fax Not Sent, Fax Poor Line + * Enum: Unknown, Accepted, Call connected, In Progress, Voicemail, Reply, Missed, Busy, Rejected, No Answer, Hang Up, Blocked, Suspended account, Call Failed, Call Failure, Internal Error, IP Phone Offline, No Calling Credit, Not Allowed, Restricted Number, Wrong Number, Answered Not Accepted, Stopped, International Disabled, International Restricted, Abandoned, Declined, Received, Fax on Demand, Partial Receive, Receive Error, Fax Receipt Error, Sent, Fax Partially Sent, Send Error, Fax Not Sent, Fax Poor Line */ public String result; + /** + * Reason of a call result: + * * `Accepted` - The call was connected to and accepted by this number + * * `Connected` - The call was answered, but there was no response on how to handle the call (for example, a voice mail system answered the call and did not push "1" to accept) + * * `Line Busy` - The phone number you dialed was busy + * * `Not Answered` - The phone number you dialed was not answered + * * `No Answer` - You did not answer the call + * * `Hang Up` - The caller hung up before the call was answered + * * `Stopped` - This attempt was stopped because the call was answered by another phone + * * `Internal Error` - An internal error occurred when making the call. Please try again + * * `No Credit` - There was not enough Calling Credit on your account to make this call + * * `Restricted Number` - The number you dialed is restricted by RingCentral + * * `Wrong Number` - The number you dialed has either been disconnected or is not a valid phone number. Please check the number and try again + * * `International Disabled` - International calling is not enabled on your account. Contact customer service to activate International Calling + * * `International Restricted` - The country and/or area you attempted to call has been prohibited by your administrator + * * `Bad Number` - An error occurred when making the call. Please check the number before trying again + * * `Info 411 Restricted` - Calling to 411 Information Services is restricted + * * `Customer 611 Restricted` - 611 customer service is not supported. Please contact customer service at <(888) 555-1212> + * * `No Digital Line` - This DigitalLine was either not plugged in or did not have an internet connection + * * `Failed Try Again` - Call failed. Please try again + * * `Max Call Limit` - The number of simultaneous calls to your account has reached its limit + * * `Too Many Calls` - The number of simultaneous calls for per DigitalLine associated with Other Phone has reached its limit. Please contact customer service + * * `Calls Not Accepted` - Your account was not accepting calls at this time + * * `Number Not Allowed` - The number that was dialed to access your account is not allowed + * * `Number Blocked` - This number is in your Blocked Numbers list + * * `Number Disabled` - The phone number and/or area you attempted to call has been prohibited by your administrator + * * `Resource Error` - An error occurred when making the call. Please try again + * * `Call Loop` - A call loop occurred due to an incorrect call forwarding configuration. Please check that you are not forwarding calls back to your own account + * * `Fax Not Received` - An incoming fax could not be received because a proper connection with the sender's fax machine could not be established + * * `Fax Partially Sent` - The fax was only partially sent. Possible explanations include phone line quality to poor to maintain the connection or the call was dropped + * * `Fax Not Sent` - An attempt to send the fax was made, but could not connect with the receiving fax machine + * * `Fax Poor Line` - An attempt to send the fax was made, but the phone line quality was too poor to send the fax + * * `Fax Prepare Error` - An internal error occurred when preparing the fax. Please try again + * * `Fax Save Error` - An internal error occurred when saving the fax. Please try again + * * `Fax Send Error` - An error occurred when sending the fax. Please try again + * Enum: Accepted, Connected, line Busy, Not Answered, No Answer, Hang Up, Stopped, Internal Error, No Credit, Restricted Number, Wrong Number, International Disabled, International Restricted, Bad Number, Info 411 Restricted, Customer 611 Restricted, No Digital Line, Failed Try Again, Max Call Limit, Too Many Calls, Calls Not Accepted, Number Not Allowed, Number Blocked, Number Disabled, Not Allowed, Resource Error, Call Loop, Fax Not Received, Fax Partially Sent, Fax Not Sent, Fax Poor Line, Fax Prepare Error, Fax Save Error, Fax Send Error + */ + public String reason; + /** + * + */ + public String reasonDescription; /** * Caller information */ @@ -56,10 +110,18 @@ public class CallLogRecordLegInfo { * Call recording data. Returned if the call is recorded */ public CallLogRecordingInfo recording; + /** + * Indicates that the recording is too short and therefore wouldn't be returned. The flag is not returned if the value is false + */ + public Boolean shortRecording; /** * Returned for 'Detailed' call log. Specifies if the leg is master-leg */ public Boolean master; + /** + * + */ + public CallLogRecordMessage message; public CallLogRecordLegInfo action(String action) { this.action = action; @@ -71,6 +133,21 @@ public CallLogRecordLegInfo direction(String direction) { return this; } + public CallLogRecordLegInfo billing(BillingInfo billing) { + this.billing = billing; + return this; + } + + public CallLogRecordLegInfo delegate(DelegateInfo delegate) { + this.delegate = delegate; + return this; + } + + public CallLogRecordLegInfo extensionId(String extensionId) { + this.extensionId = extensionId; + return this; + } + public CallLogRecordLegInfo duration(Long duration) { this.duration = duration; return this; @@ -101,6 +178,16 @@ public CallLogRecordLegInfo result(String result) { return this; } + public CallLogRecordLegInfo reason(String reason) { + this.reason = reason; + return this; + } + + public CallLogRecordLegInfo reasonDescription(String reasonDescription) { + this.reasonDescription = reasonDescription; + return this; + } + public CallLogRecordLegInfo from(CallLogCallerInfo from) { this.from = from; return this; @@ -121,9 +208,19 @@ public CallLogRecordLegInfo recording(CallLogRecordingInfo recording) { return this; } + public CallLogRecordLegInfo shortRecording(Boolean shortRecording) { + this.shortRecording = shortRecording; + return this; + } + public CallLogRecordLegInfo master(Boolean master) { this.master = master; return this; } + public CallLogRecordLegInfo message(CallLogRecordMessage message) { + this.message = message; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/CallLogSync.java b/src/main/java/com/ringcentral/definitions/CallLogSync.java index 02ebafa3..303413aa 100644 --- a/src/main/java/com/ringcentral/definitions/CallLogSync.java +++ b/src/main/java/com/ringcentral/definitions/CallLogSync.java @@ -5,13 +5,13 @@ public class CallLogSync { /** * List of call log records with synchronization information. For ISync the total number of returned records is limited to 250; this includes both new records and the old ones, specified by the recordCount parameter */ - public CallLogRecord[] records; + public UserCallLogRecord[] records; /** * Sync information (type, token and time) */ public SyncInfoCallLog syncInfo; - public CallLogSync records(CallLogRecord[] records) { + public CallLogSync records(UserCallLogRecord[] records) { this.records = records; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CallMonitoringBulkAssign.java b/src/main/java/com/ringcentral/definitions/CallMonitoringBulkAssign.java index 2c881815..b6f470a7 100644 --- a/src/main/java/com/ringcentral/definitions/CallMonitoringBulkAssign.java +++ b/src/main/java/com/ringcentral/definitions/CallMonitoringBulkAssign.java @@ -5,11 +5,29 @@ public class CallMonitoringBulkAssign { /** * */ - public CallMonitoringExtensionUpdate[] updatedExtensions; + public CallMonitoringExtensionInfo[] addedExtensions; + /** + * + */ + public CallMonitoringExtensionInfo[] updatedExtensions; + /** + * + */ + public CallMonitoringExtensionInfo[] removedExtensions; - public CallMonitoringBulkAssign updatedExtensions(CallMonitoringExtensionUpdate[] updatedExtensions) { + public CallMonitoringBulkAssign addedExtensions(CallMonitoringExtensionInfo[] addedExtensions) { + this.addedExtensions = addedExtensions; + return this; + } + + public CallMonitoringBulkAssign updatedExtensions(CallMonitoringExtensionInfo[] updatedExtensions) { this.updatedExtensions = updatedExtensions; return this; } + public CallMonitoringBulkAssign removedExtensions(CallMonitoringExtensionInfo[] removedExtensions) { + this.removedExtensions = removedExtensions; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/CallMonitoringExtensionUpdate.java b/src/main/java/com/ringcentral/definitions/CallMonitoringExtensionInfo.java similarity index 57% rename from src/main/java/com/ringcentral/definitions/CallMonitoringExtensionUpdate.java rename to src/main/java/com/ringcentral/definitions/CallMonitoringExtensionInfo.java index a7b7fd07..5e929ec7 100644 --- a/src/main/java/com/ringcentral/definitions/CallMonitoringExtensionUpdate.java +++ b/src/main/java/com/ringcentral/definitions/CallMonitoringExtensionInfo.java @@ -1,9 +1,9 @@ package com.ringcentral.definitions; -public class CallMonitoringExtensionUpdate { +public class CallMonitoringExtensionInfo { /** - * Only the following extension types are allowed: User, DigitalUser, VirtualUser, FaxUser, Limited + * Internal identifier of an extension. Only the following extension types are allowed: User, DigitalUser, VirtualUser, FaxUser, Limited */ public String id; /** @@ -11,12 +11,12 @@ public class CallMonitoringExtensionUpdate { */ public String[] permissions; - public CallMonitoringExtensionUpdate id(String id) { + public CallMonitoringExtensionInfo id(String id) { this.id = id; return this; } - public CallMonitoringExtensionUpdate permissions(String[] permissions) { + public CallMonitoringExtensionInfo permissions(String[] permissions) { this.permissions = permissions; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CallMonitoringGroup.java b/src/main/java/com/ringcentral/definitions/CallMonitoringGroup.java index 80c0af50..b309178a 100644 --- a/src/main/java/com/ringcentral/definitions/CallMonitoringGroup.java +++ b/src/main/java/com/ringcentral/definitions/CallMonitoringGroup.java @@ -2,6 +2,10 @@ public class CallMonitoringGroup { + /** + * Link to a call monitoring group resource + */ + public String uri; /** * Internal identifier of a group */ @@ -11,6 +15,11 @@ public class CallMonitoringGroup { */ public String name; + public CallMonitoringGroup uri(String uri) { + this.uri = uri; + return this; + } + public CallMonitoringGroup id(String id) { this.id = id; return this; diff --git a/src/main/java/com/ringcentral/definitions/CallMonitoringGroupMemberInfo.java b/src/main/java/com/ringcentral/definitions/CallMonitoringGroupMemberInfo.java index 6942c271..86eb2a23 100644 --- a/src/main/java/com/ringcentral/definitions/CallMonitoringGroupMemberInfo.java +++ b/src/main/java/com/ringcentral/definitions/CallMonitoringGroupMemberInfo.java @@ -15,10 +15,9 @@ public class CallMonitoringGroupMemberInfo { */ public String extensionNumber; /** - * Call monitoring permission; mltiple values allowed: * "Monitoring" - User can monitor a group * "Monitored" - User can be monitored - * Enum: Monitoring, Monitored + * */ - public String permissions; + public String[] permissions; public CallMonitoringGroupMemberInfo uri(String uri) { this.uri = uri; @@ -35,7 +34,7 @@ public CallMonitoringGroupMemberInfo extensionNumber(String extensionNumber) { return this; } - public CallMonitoringGroupMemberInfo permissions(String permissions) { + public CallMonitoringGroupMemberInfo permissions(String[] permissions) { this.permissions = permissions; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CallPartyReply.java b/src/main/java/com/ringcentral/definitions/CallPartyReply.java new file mode 100644 index 00000000..c68a19f8 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/CallPartyReply.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class CallPartyReply { + /** + * Text to reply + */ + public String replyWithText; + /** + * + */ + public ReplyWithPattern replyWithPattern; + + public CallPartyReply replyWithText(String replyWithText) { + this.replyWithText = replyWithText; + return this; + } + + public CallPartyReply replyWithPattern(ReplyWithPattern replyWithPattern) { + this.replyWithPattern = replyWithPattern; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/CallQueueMemberInfo.java b/src/main/java/com/ringcentral/definitions/CallQueueMemberInfo.java index ab130a67..d2db2cfa 100644 --- a/src/main/java/com/ringcentral/definitions/CallQueueMemberInfo.java +++ b/src/main/java/com/ringcentral/definitions/CallQueueMemberInfo.java @@ -9,7 +9,7 @@ public class CallQueueMemberInfo { /** * Internal identifier of a call queue member */ - public String id; + public Long id; /** * Extension number of a call queue member */ @@ -20,7 +20,7 @@ public CallQueueMemberInfo uri(String uri) { return this; } - public CallQueueMemberInfo id(String id) { + public CallQueueMemberInfo id(Long id) { this.id = id; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CallerIdDeviceInfo.java b/src/main/java/com/ringcentral/definitions/CallerIdDeviceInfo.java index 5595f190..03bb486a 100644 --- a/src/main/java/com/ringcentral/definitions/CallerIdDeviceInfo.java +++ b/src/main/java/com/ringcentral/definitions/CallerIdDeviceInfo.java @@ -13,7 +13,7 @@ public class CallerIdDeviceInfo { /** * Name of a device */ - public String phoneNumber; + public String name; public CallerIdDeviceInfo id(String id) { this.id = id; @@ -25,8 +25,8 @@ public CallerIdDeviceInfo uri(String uri) { return this; } - public CallerIdDeviceInfo phoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; + public CallerIdDeviceInfo name(String name) { + this.name = name; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CallerInfoTo.java b/src/main/java/com/ringcentral/definitions/CallerInfoTo.java index 1ae05ec7..dd6d617e 100644 --- a/src/main/java/com/ringcentral/definitions/CallerInfoTo.java +++ b/src/main/java/com/ringcentral/definitions/CallerInfoTo.java @@ -19,7 +19,7 @@ public class CallerInfoTo { */ public String messageStatus; /** - * Enum: Undefined, NoFaxSendPermission, NoInternationalPermission, NoFaxMachine, OutgoingCallError, RenderingFailed, TooManyPages, ReturnToDBQueue, NoCallTime, WrongNumber, ProhibitedNumber, InternalError, FaxSendingProhibited, ThePhoneIsBlacklisted, UserNotFound, ConvertError, DBGeneralError, SkypeBillingFailed, AccountSuspended, ProhibitedDestination, InternationalDisabled + * Enum: Undefined, NoFaxSendPermission, NoInternationalPermission, NoFaxMachine, NoAnswer, LineBusy, CallerHungUp, NotEnoughCredits, SentPartially, InternationalCallingDisabled, DestinationCountryDisabled, UnknownCountryCode, NotAccepted, InvalidNumber, CallDeclined, TooManyCallsPerLine, CallFailed, RenderingFailed, TooManyPages, ReturnToDBQueue, NoCallTime, WrongNumber, ProhibitedNumber, InternalError, FaxSendingProhibited, ThePhoneIsBlacklisted, UserNotFound, ConvertError, DBGeneralError, SkypeBillingFailed, AccountSuspended, ProhibitedDestination, InternationalDisabled */ public String faxErrorCode; diff --git a/src/main/java/com/ringcentral/definitions/CompanyActiveCallsResponse.java b/src/main/java/com/ringcentral/definitions/CompanyActiveCallsResponse.java new file mode 100644 index 00000000..4e948247 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/CompanyActiveCallsResponse.java @@ -0,0 +1,45 @@ +package com.ringcentral.definitions; + + +public class CompanyActiveCallsResponse { + /** + * Link to the list of company active call records + */ + public String uri; + /** + * List of call log records + * Required + */ + public CompanyCallLogRecord[] records; + /** + * Information on navigation + * Required + */ + public CallLogNavigationInfo navigation; + /** + * Information on paging + * Required + */ + public CallLogPagingInfo paging; + + public CompanyActiveCallsResponse uri(String uri) { + this.uri = uri; + return this; + } + + public CompanyActiveCallsResponse records(CompanyCallLogRecord[] records) { + this.records = records; + return this; + } + + public CompanyActiveCallsResponse navigation(CallLogNavigationInfo navigation) { + this.navigation = navigation; + return this; + } + + public CompanyActiveCallsResponse paging(CallLogPagingInfo paging) { + this.paging = paging; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleUpdate.java b/src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleUpdate.java index f88c70b2..f4e43b32 100644 --- a/src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleUpdate.java +++ b/src/main/java/com/ringcentral/definitions/CompanyAnsweringRuleUpdate.java @@ -29,9 +29,15 @@ public class CompanyAnsweringRuleUpdate { */ public String callHandlingAction; /** - * Extension to which the call is forwarded in 'Bypass' mode + * Type of an answering rule + * Default: Custom + * Enum: BusinessHours, AfterHours, Custom */ - public CompanyAnsweringRuleCallersInfoRequest extension; + public String type; + /** + * Internal identifier of the extension the call is forwarded to. Supported for 'Bypass' mode only (that should be specified in `callHandlingAction` field) + */ + public String extension; /** * Greetings applied for an answering rule; only predefined greetings can be applied, see Dictionary Greeting List */ @@ -67,7 +73,12 @@ public CompanyAnsweringRuleUpdate callHandlingAction(String callHandlingAction) return this; } - public CompanyAnsweringRuleUpdate extension(CompanyAnsweringRuleCallersInfoRequest extension) { + public CompanyAnsweringRuleUpdate type(String type) { + this.type = type; + return this; + } + + public CompanyAnsweringRuleUpdate extension(String extension) { this.extension = extension; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CompanyCallLogRecord.java b/src/main/java/com/ringcentral/definitions/CompanyCallLogRecord.java index f7610ba5..b4c1473b 100644 --- a/src/main/java/com/ringcentral/definitions/CompanyCallLogRecord.java +++ b/src/main/java/com/ringcentral/definitions/CompanyCallLogRecord.java @@ -14,6 +14,19 @@ public class CompanyCallLogRecord { * Internal identifier of a call session */ public String sessionId; + /** + * + */ + public ExtensionInfoCallLog extension; + /** + * Telephony identifier of a call session + */ + public String telephonySessionId; + /** + * Call transport + * Enum: PSTN, VoIP + */ + public String transport; /** * Caller information */ @@ -51,7 +64,11 @@ public class CompanyCallLogRecord { */ public String reason; /** - * The call start datetime in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z + * + */ + public String reasonDescription; + /** + * 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; /** @@ -62,6 +79,22 @@ public class CompanyCallLogRecord { * Call recording data. Returned if a call is recorded */ public CallLogRecordingInfo recording; + /** + * Indicates that the recording is too short and therefore wouldn't be returned. The flag is not returned if the value is false + */ + public Boolean shortRecording; + /** + * For 'Detailed' view only. Leg description + */ + public CallLogRecordLegInfo[] legs; + /** + * Billing information related to the call. Returned for 'Detailed' view only + */ + public BillingInfo billing; + /** + * For 'Detailed' view only. The datetime when the call log record was modified in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z + */ + public String lastModifiedTime; public CompanyCallLogRecord id(String id) { this.id = id; @@ -78,6 +111,21 @@ public CompanyCallLogRecord sessionId(String sessionId) { return this; } + public CompanyCallLogRecord extension(ExtensionInfoCallLog extension) { + this.extension = extension; + return this; + } + + public CompanyCallLogRecord telephonySessionId(String telephonySessionId) { + this.telephonySessionId = telephonySessionId; + return this; + } + + public CompanyCallLogRecord transport(String transport) { + this.transport = transport; + return this; + } + public CompanyCallLogRecord from(CallLogCallerInfo from) { this.from = from; return this; @@ -118,6 +166,11 @@ public CompanyCallLogRecord reason(String reason) { return this; } + public CompanyCallLogRecord reasonDescription(String reasonDescription) { + this.reasonDescription = reasonDescription; + return this; + } + public CompanyCallLogRecord startTime(String startTime) { this.startTime = startTime; return this; @@ -133,4 +186,24 @@ public CompanyCallLogRecord recording(CallLogRecordingInfo recording) { return this; } + public CompanyCallLogRecord shortRecording(Boolean shortRecording) { + this.shortRecording = shortRecording; + return this; + } + + public CompanyCallLogRecord legs(CallLogRecordLegInfo[] legs) { + this.legs = legs; + return this; + } + + public CompanyCallLogRecord billing(BillingInfo billing) { + this.billing = billing; + return this; + } + + public CompanyCallLogRecord lastModifiedTime(String lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java b/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java index 42eddfec..27335de1 100644 --- a/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java +++ b/src/main/java/com/ringcentral/definitions/CompanyPhoneNumberInfo.java @@ -2,10 +2,14 @@ public class CompanyPhoneNumberInfo { + /** + * Link to a company phone number resource + */ + public String uri; /** * Internal identifier of a phone number */ - public String id; + public Long id; /** * Brief information on a phone number country */ @@ -54,7 +58,12 @@ public class CompanyPhoneNumberInfo { */ public ContactCenterProvider contactCenterProvider; - public CompanyPhoneNumberInfo id(String id) { + public CompanyPhoneNumberInfo uri(String uri) { + this.uri = uri; + return this; + } + + public CompanyPhoneNumberInfo id(Long id) { this.id = id; return this; } diff --git a/src/main/java/com/ringcentral/definitions/ContactInfoCreationRequest.java b/src/main/java/com/ringcentral/definitions/ContactInfoCreationRequest.java index 90a36d3e..4977962e 100644 --- a/src/main/java/com/ringcentral/definitions/ContactInfoCreationRequest.java +++ b/src/main/java/com/ringcentral/definitions/ContactInfoCreationRequest.java @@ -4,7 +4,6 @@ public class ContactInfoCreationRequest { /** * For User extension type only. Extension user first name - * Required */ public String firstName; /** diff --git a/src/main/java/com/ringcentral/definitions/CreateCallMonitoringGroupRequest.java b/src/main/java/com/ringcentral/definitions/CreateCallMonitoringGroupRequest.java index c4a6d473..d6977a0d 100644 --- a/src/main/java/com/ringcentral/definitions/CreateCallMonitoringGroupRequest.java +++ b/src/main/java/com/ringcentral/definitions/CreateCallMonitoringGroupRequest.java @@ -2,21 +2,12 @@ public class CreateCallMonitoringGroupRequest { - /** - * Internal identifier of a group - */ - public String id; /** * Name of a group * Required */ public String name; - public CreateCallMonitoringGroupRequest id(String id) { - this.id = id; - return this; - } - public CreateCallMonitoringGroupRequest name(String name) { this.name = name; return this; diff --git a/src/main/java/com/ringcentral/definitions/CreateForwardingNumberRequest.java b/src/main/java/com/ringcentral/definitions/CreateForwardingNumberRequest.java index cb32e17f..1488609f 100644 --- a/src/main/java/com/ringcentral/definitions/CreateForwardingNumberRequest.java +++ b/src/main/java/com/ringcentral/definitions/CreateForwardingNumberRequest.java @@ -2,6 +2,10 @@ public class CreateForwardingNumberRequest { + /** + * Number assigned to the call flip phone number, corresponds to the shortcut dial number + */ + public Long flipNumber; /** * Forwarding/Call flip phone number */ @@ -20,6 +24,11 @@ public class CreateForwardingNumberRequest { */ public CreateForwardingNumberDeviceInfo device; + public CreateForwardingNumberRequest flipNumber(Long flipNumber) { + this.flipNumber = flipNumber; + return this; + } + public CreateForwardingNumberRequest phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; diff --git a/src/main/java/com/ringcentral/definitions/CreateGlipConversationRequest.java b/src/main/java/com/ringcentral/definitions/CreateGlipConversationRequest.java index 1fde5040..f1797895 100644 --- a/src/main/java/com/ringcentral/definitions/CreateGlipConversationRequest.java +++ b/src/main/java/com/ringcentral/definitions/CreateGlipConversationRequest.java @@ -3,12 +3,12 @@ public class CreateGlipConversationRequest { /** - * Identifier(s) of chat member(s). The maximum supported number of IDs is 15. User's own ID is optional. If `members` section is omitted then 'Personal' chat will be returned + * List of glip members. The maximum supported number of IDs is 15. User's own ID is optional. If `members` section is omitted then 'Personal' chat will be returned * Required */ - public Object[] members; + public CreateGlipMember[] members; - public CreateGlipConversationRequest members(Object[] members) { + public CreateGlipConversationRequest members(CreateGlipMember[] members) { this.members = members; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CreateGlipMember.java b/src/main/java/com/ringcentral/definitions/CreateGlipMember.java new file mode 100644 index 00000000..611cc246 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/CreateGlipMember.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class CreateGlipMember { + /** + * Internal identifier of a user + */ + public String id; + /** + * Email of a user + */ + public String email; + + public CreateGlipMember id(String id) { + this.id = id; + return this; + } + + public CreateGlipMember email(String email) { + this.email = email; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/CreateNetworkRequest.java b/src/main/java/com/ringcentral/definitions/CreateNetworkRequest.java index 40e823f7..0d0200e6 100644 --- a/src/main/java/com/ringcentral/definitions/CreateNetworkRequest.java +++ b/src/main/java/com/ringcentral/definitions/CreateNetworkRequest.java @@ -17,7 +17,7 @@ public class CreateNetworkRequest { /** * */ - public PrivateIpRangeInfo[] privateIpRanges; + public PrivateIpRangeInfoRequest[] privateIpRanges; public CreateNetworkRequest name(String name) { this.name = name; @@ -34,7 +34,7 @@ public CreateNetworkRequest publicIpRanges(PublicIpRangeInfo[] publicIpRanges) { return this; } - public CreateNetworkRequest privateIpRanges(PrivateIpRangeInfo[] privateIpRanges) { + public CreateNetworkRequest privateIpRanges(PrivateIpRangeInfoRequest[] privateIpRanges) { this.privateIpRanges = privateIpRanges; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CreateSipRegistrationRequest.java b/src/main/java/com/ringcentral/definitions/CreateSipRegistrationRequest.java index 9e089602..fc3704bb 100644 --- a/src/main/java/com/ringcentral/definitions/CreateSipRegistrationRequest.java +++ b/src/main/java/com/ringcentral/definitions/CreateSipRegistrationRequest.java @@ -4,12 +4,10 @@ public class CreateSipRegistrationRequest { /** * Device unique description - * Required */ public DeviceInfoRequest device; /** * SIP settings for device - * Required */ public SIPInfoRequest[] sipInfo; diff --git a/src/main/java/com/ringcentral/definitions/CreateSipRegistrationResponse.java b/src/main/java/com/ringcentral/definitions/CreateSipRegistrationResponse.java index 43d5a094..27858880 100644 --- a/src/main/java/com/ringcentral/definitions/CreateSipRegistrationResponse.java +++ b/src/main/java/com/ringcentral/definitions/CreateSipRegistrationResponse.java @@ -2,37 +2,41 @@ public class CreateSipRegistrationResponse { - /** - * Suggested interval in seconds to periodically call SIP-provision API and update the local cache - */ - public Long pollingInterval; /** * */ - public String[] sipErrorCodes; + public SipRegistrationDeviceInfo device; /** * SIP settings for device * Required */ public SIPInfoResponse[] sipInfo; + /** + * SIP PSTN settings for device + */ + public SIPInfoResponse[] sipInfoPstn; /** * SIP flags data * Required */ public SIPFlagsResponse[] sipFlags; + /** + * + */ + public String[] sipErrorCodes; - public CreateSipRegistrationResponse pollingInterval(Long pollingInterval) { - this.pollingInterval = pollingInterval; + public CreateSipRegistrationResponse device(SipRegistrationDeviceInfo device) { + this.device = device; return this; } - public CreateSipRegistrationResponse sipErrorCodes(String[] sipErrorCodes) { - this.sipErrorCodes = sipErrorCodes; + public CreateSipRegistrationResponse sipInfo(SIPInfoResponse[] sipInfo) { + this.sipInfo = sipInfo; return this; } - public CreateSipRegistrationResponse sipInfo(SIPInfoResponse[] sipInfo) { - this.sipInfo = sipInfo; + public CreateSipRegistrationResponse sipInfoPstn(SIPInfoResponse[] sipInfoPstn) { + this.sipInfoPstn = sipInfoPstn; return this; } @@ -41,4 +45,9 @@ public CreateSipRegistrationResponse sipFlags(SIPFlagsResponse[] sipFlags) { return this; } + public CreateSipRegistrationResponse sipErrorCodes(String[] sipErrorCodes) { + this.sipErrorCodes = sipErrorCodes; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/CreateSwitchInfo.java b/src/main/java/com/ringcentral/definitions/CreateSwitchInfo.java index fb3f0c34..54636eba 100644 --- a/src/main/java/com/ringcentral/definitions/CreateSwitchInfo.java +++ b/src/main/java/com/ringcentral/definitions/CreateSwitchInfo.java @@ -19,7 +19,7 @@ public class CreateSwitchInfo { * Emergency address assigned to the switch. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned * Required */ - public LocationUpdatesEmergencyAddressInfo emergencyAddress; + public LocationUpdatesEmergencyAddressInfoRequest emergencyAddress; /** * Emergency response location (address) internal identifier. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned */ @@ -40,7 +40,7 @@ public CreateSwitchInfo site(SwitchSiteInfo site) { return this; } - public CreateSwitchInfo emergencyAddress(LocationUpdatesEmergencyAddressInfo emergencyAddress) { + public CreateSwitchInfo emergencyAddress(LocationUpdatesEmergencyAddressInfoRequest emergencyAddress) { this.emergencyAddress = emergencyAddress; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CreateUser.java b/src/main/java/com/ringcentral/definitions/CreateUser.java new file mode 100644 index 00000000..74b52575 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/CreateUser.java @@ -0,0 +1,100 @@ +package com.ringcentral.definitions; + +import com.alibaba.fastjson.annotation.JSONField; + + +public class CreateUser { + /** + * User status + */ + public Boolean active; + /** + * + */ + public UserAddress[] addresses; + /** + * Required + */ + public Email[] emails; + /** + * external unique resource id defined by provisioning client + */ + public String externalId; + /** + * Required + */ + public Name name; + /** + * + */ + public PhoneNumber[] phoneNumbers; + /** + * + */ + public Photo[] photos; + /** + * Required + */ + public String[] schemas; + /** + * + */ + @JSONField(name = "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User") + public EnterpriseUser urn_ietf_params_scim_schemas_extension_enterprise_2_0_User; + /** + * MUST be same as work type email address + * Required + */ + public String userName; + + public CreateUser active(Boolean active) { + this.active = active; + return this; + } + + public CreateUser addresses(UserAddress[] addresses) { + this.addresses = addresses; + return this; + } + + public CreateUser emails(Email[] emails) { + this.emails = emails; + return this; + } + + public CreateUser externalId(String externalId) { + this.externalId = externalId; + return this; + } + + public CreateUser name(Name name) { + this.name = name; + return this; + } + + public CreateUser phoneNumbers(PhoneNumber[] phoneNumbers) { + this.phoneNumbers = phoneNumbers; + return this; + } + + public CreateUser photos(Photo[] photos) { + this.photos = photos; + return this; + } + + public CreateUser schemas(String[] schemas) { + this.schemas = schemas; + return this; + } + + public CreateUser urn_ietf_params_scim_schemas_extension_enterprise_2_0_User(EnterpriseUser urn_ietf_params_scim_schemas_extension_enterprise_2_0_User) { + this.urn_ietf_params_scim_schemas_extension_enterprise_2_0_User = urn_ietf_params_scim_schemas_extension_enterprise_2_0_User; + return this; + } + + public CreateUser userName(String userName) { + this.userName = userName; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/CreateWirelessPoint.java b/src/main/java/com/ringcentral/definitions/CreateWirelessPoint.java index 59961cb8..aa5bd744 100644 --- a/src/main/java/com/ringcentral/definitions/CreateWirelessPoint.java +++ b/src/main/java/com/ringcentral/definitions/CreateWirelessPoint.java @@ -20,7 +20,7 @@ public class CreateWirelessPoint { * Emergency address information. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned * Required */ - public LocationUpdatesEmergencyAddressInfo emergencyAddress; + public LocationUpdatesEmergencyAddressInfoRequest emergencyAddress; /** * Internal identifier of the emergency response location (address). Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned */ @@ -41,7 +41,7 @@ public CreateWirelessPoint site(AutomaticLocationUpdatesSiteInfo site) { return this; } - public CreateWirelessPoint emergencyAddress(LocationUpdatesEmergencyAddressInfo emergencyAddress) { + public CreateWirelessPoint emergencyAddress(LocationUpdatesEmergencyAddressInfoRequest emergencyAddress) { this.emergencyAddress = emergencyAddress; return this; } diff --git a/src/main/java/com/ringcentral/definitions/CustomAnsweringRuleInfo.java b/src/main/java/com/ringcentral/definitions/CustomAnsweringRuleInfo.java new file mode 100644 index 00000000..876af0d2 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/CustomAnsweringRuleInfo.java @@ -0,0 +1,153 @@ +package com.ringcentral.definitions; + + +public class CustomAnsweringRuleInfo { + /** + * Canonical URI to an answering rule resource + */ + public String uri; + /** + * Internal identifier of an answering rule + */ + public String id; + /** + * Type of an answering rule + * Enum: BusinessHours, AfterHours, Custom + */ + public String type; + /** + * Name of an answering rule specified by user + */ + public String name; + /** + * Specifies if an answering rule is active or inactive + */ + public Boolean enabled; + /** + * Schedule when an answering rule should be applied + */ + public ScheduleInfo schedule; + /** + * Answering rules are applied when calling to selected number(s) + */ + public CalledNumberInfo[] calledNumbers; + /** + * Answering rules are applied when calls are received from specified caller(s) + */ + public CallersInfo[] callers; + /** + * Specifies how incoming calls are forwarded + * Enum: ForwardCalls, UnconditionalForwarding, AgentQueue, TransferToExtension, TakeMessagesOnly, PlayAnnouncementOnly + */ + public String callHandlingAction; + /** + * Forwarding parameters. Returned if 'ForwardCalls' is specified in 'callHandlingAction'. These settings determine the forwarding numbers to which the call will be forwarded + */ + public ForwardingInfo forwarding; + /** + * Unconditional forwarding parameters. Returned if 'UnconditionalForwarding' is specified in 'callHandlingAction' + */ + public UnconditionalForwardingInfo unconditionalForwarding; + /** + * Queue settings applied for department (call queue) extension type, with the 'AgentQueue' value specified as a call handling action + */ + public QueueInfo queue; + /** + * Transfer settings applied for department (call queue) extension type, with 'TransferToExtension' call handling action + */ + public TransferredExtensionInfo transfer; + /** + * Specifies whether to take a voicemail and who should do it + */ + public VoicemailInfo voicemail; + /** + * Greetings applied for an answering rule; only predefined greetings can be applied, see Dictionary Greeting List + */ + public GreetingInfo[] greetings; + /** + * Call screening status. 'Off' - no call screening; 'NoCallerId' - if caller ID is missing, then callers are asked to say their name before connecting; 'UnknownCallerId' - if caller ID is not in contact list, then callers are asked to say their name before connecting; 'Always' - the callers are always asked to say their name before connecting. The default value is 'Off' + * Enum: Off, NoCallerId, UnknownCallerId, Always + */ + public String screening; + + public CustomAnsweringRuleInfo uri(String uri) { + this.uri = uri; + return this; + } + + public CustomAnsweringRuleInfo id(String id) { + this.id = id; + return this; + } + + public CustomAnsweringRuleInfo type(String type) { + this.type = type; + return this; + } + + public CustomAnsweringRuleInfo name(String name) { + this.name = name; + return this; + } + + public CustomAnsweringRuleInfo enabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + public CustomAnsweringRuleInfo schedule(ScheduleInfo schedule) { + this.schedule = schedule; + return this; + } + + public CustomAnsweringRuleInfo calledNumbers(CalledNumberInfo[] calledNumbers) { + this.calledNumbers = calledNumbers; + return this; + } + + public CustomAnsweringRuleInfo callers(CallersInfo[] callers) { + this.callers = callers; + return this; + } + + public CustomAnsweringRuleInfo callHandlingAction(String callHandlingAction) { + this.callHandlingAction = callHandlingAction; + return this; + } + + public CustomAnsweringRuleInfo forwarding(ForwardingInfo forwarding) { + this.forwarding = forwarding; + return this; + } + + public CustomAnsweringRuleInfo unconditionalForwarding(UnconditionalForwardingInfo unconditionalForwarding) { + this.unconditionalForwarding = unconditionalForwarding; + return this; + } + + public CustomAnsweringRuleInfo queue(QueueInfo queue) { + this.queue = queue; + return this; + } + + public CustomAnsweringRuleInfo transfer(TransferredExtensionInfo transfer) { + this.transfer = transfer; + return this; + } + + public CustomAnsweringRuleInfo voicemail(VoicemailInfo voicemail) { + this.voicemail = voicemail; + return this; + } + + public CustomAnsweringRuleInfo greetings(GreetingInfo[] greetings) { + this.greetings = greetings; + return this; + } + + public CustomAnsweringRuleInfo screening(String screening) { + this.screening = screening; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/CustomCompanyGreetingInfo.java b/src/main/java/com/ringcentral/definitions/CustomCompanyGreetingInfo.java index 0c517f76..25efca19 100644 --- a/src/main/java/com/ringcentral/definitions/CustomCompanyGreetingInfo.java +++ b/src/main/java/com/ringcentral/definitions/CustomCompanyGreetingInfo.java @@ -16,8 +16,8 @@ public class CustomCompanyGreetingInfo { */ public String type; /** - * Content media type in WAV/MP3 format - * Enum: WAV, MP3 + * Content media type + * Enum: audio/mpeg, audio/wav */ public String contentType; /** diff --git a/src/main/java/com/ringcentral/definitions/CustomUserGreetingInfo.java b/src/main/java/com/ringcentral/definitions/CustomUserGreetingInfo.java index 9891c4a7..05b7b133 100644 --- a/src/main/java/com/ringcentral/definitions/CustomUserGreetingInfo.java +++ b/src/main/java/com/ringcentral/definitions/CustomUserGreetingInfo.java @@ -12,12 +12,12 @@ public class CustomUserGreetingInfo { public String id; /** * Type of a custom user greeting - * Enum: Introductory, Announcement, ConnectingAudio, ConnectingMessage, Voicemail, Unavailable, HoldMusic + * Enum: Introductory, Announcement, InterruptPrompt, ConnectingAudio, ConnectingMessage, Voicemail, Unavailable, HoldMusic, PronouncedName */ public String type; /** - * Content media type in WAV/MP3 format - * Enum: WAV, MP3 + * Content media type + * Enum: audio/mpeg, audio/wav */ public String contentType; /** diff --git a/src/main/java/com/ringcentral/definitions/DeleteExtensionParameters.java b/src/main/java/com/ringcentral/definitions/DeleteExtensionParameters.java new file mode 100644 index 00000000..885479bc --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DeleteExtensionParameters.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class DeleteExtensionParameters { + /** + * + */ + public Boolean savePhoneLines; + /** + * + */ + public Boolean savePhoneNumbers; + + public DeleteExtensionParameters savePhoneLines(Boolean savePhoneLines) { + this.savePhoneLines = savePhoneLines; + return this; + } + + public DeleteExtensionParameters savePhoneNumbers(Boolean savePhoneNumbers) { + this.savePhoneNumbers = savePhoneNumbers; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DeleteUserCallLogParameters.java b/src/main/java/com/ringcentral/definitions/DeleteUserCallLogParameters.java index 38307b5d..84f2a1f7 100644 --- a/src/main/java/com/ringcentral/definitions/DeleteUserCallLogParameters.java +++ b/src/main/java/com/ringcentral/definitions/DeleteUserCallLogParameters.java @@ -3,7 +3,7 @@ public class DeleteUserCallLogParameters { /** - * The end datetime for records deletion in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is current time + * The end datetime for records deletion in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is current time */ public String dateTo; /** diff --git a/src/main/java/com/ringcentral/definitions/DepartmentMemberList.java b/src/main/java/com/ringcentral/definitions/DepartmentMemberList.java index 94c708b6..49516e70 100644 --- a/src/main/java/com/ringcentral/definitions/DepartmentMemberList.java +++ b/src/main/java/com/ringcentral/definitions/DepartmentMemberList.java @@ -2,6 +2,10 @@ public class DepartmentMemberList { + /** + * Link to the list of department members + */ + public String uri; /** * List of department members extensions */ @@ -15,6 +19,11 @@ public class DepartmentMemberList { */ public ProvisioningPagingInfo paging; + public DepartmentMemberList uri(String uri) { + this.uri = uri; + return this; + } + public DepartmentMemberList records(ExtensionInfo[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/DeviceAddonInfo.java b/src/main/java/com/ringcentral/definitions/DeviceAddonInfo.java new file mode 100644 index 00000000..7e446acf --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DeviceAddonInfo.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class DeviceAddonInfo { + /** + * + */ + public String id; + /** + * + */ + public String name; + /** + * + */ + public String count; + + public DeviceAddonInfo id(String id) { + this.id = id; + return this; + } + + public DeviceAddonInfo name(String name) { + this.name = name; + return this; + } + + public DeviceAddonInfo count(String count) { + this.count = count; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DeviceEmergencyServiceAddressResource.java b/src/main/java/com/ringcentral/definitions/DeviceEmergencyServiceAddressResource.java new file mode 100644 index 00000000..bb15aa35 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DeviceEmergencyServiceAddressResource.java @@ -0,0 +1,132 @@ +package com.ringcentral.definitions; + + +public class DeviceEmergencyServiceAddressResource { + /** + * + */ + public String street; + /** + * + */ + public String street2; + /** + * + */ + public String city; + /** + * + */ + public String zip; + /** + * + */ + public String customerName; + /** + * State/province name + */ + public String state; + /** + * Internal identifier of a state + */ + public String stateId; + /** + * ISO code of a state + */ + public String stateIsoCode; + /** + * Full name of a state + */ + public String stateName; + /** + * Internal identifier of a country + */ + public String countryId; + /** + * ISO code of a country + */ + public String countryIsoCode; + /** + * Country name + */ + public String country; + /** + * Full name of a country + */ + public String countryName; + /** + * Specifies if emergency address is out of country + */ + public Boolean outOfCountry; + + public DeviceEmergencyServiceAddressResource street(String street) { + this.street = street; + return this; + } + + public DeviceEmergencyServiceAddressResource street2(String street2) { + this.street2 = street2; + return this; + } + + public DeviceEmergencyServiceAddressResource city(String city) { + this.city = city; + return this; + } + + public DeviceEmergencyServiceAddressResource zip(String zip) { + this.zip = zip; + return this; + } + + public DeviceEmergencyServiceAddressResource customerName(String customerName) { + this.customerName = customerName; + return this; + } + + public DeviceEmergencyServiceAddressResource state(String state) { + this.state = state; + return this; + } + + public DeviceEmergencyServiceAddressResource stateId(String stateId) { + this.stateId = stateId; + return this; + } + + public DeviceEmergencyServiceAddressResource stateIsoCode(String stateIsoCode) { + this.stateIsoCode = stateIsoCode; + return this; + } + + public DeviceEmergencyServiceAddressResource stateName(String stateName) { + this.stateName = stateName; + return this; + } + + public DeviceEmergencyServiceAddressResource countryId(String countryId) { + this.countryId = countryId; + return this; + } + + public DeviceEmergencyServiceAddressResource countryIsoCode(String countryIsoCode) { + this.countryIsoCode = countryIsoCode; + return this; + } + + public DeviceEmergencyServiceAddressResource country(String country) { + this.country = country; + return this; + } + + public DeviceEmergencyServiceAddressResource countryName(String countryName) { + this.countryName = countryName; + return this; + } + + public DeviceEmergencyServiceAddressResource outOfCountry(Boolean outOfCountry) { + this.outOfCountry = outOfCountry; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DeviceExtensionInfo.java b/src/main/java/com/ringcentral/definitions/DeviceExtensionInfo.java new file mode 100644 index 00000000..9b34ff9b --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DeviceExtensionInfo.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class DeviceExtensionInfo { + /** + * Internal identifier of an extension + */ + public Long id; + /** + * Link to an extension resource + */ + public String uri; + /** + * Number of extension + */ + public String extensionNumber; + + public DeviceExtensionInfo id(Long id) { + this.id = id; + return this; + } + + public DeviceExtensionInfo uri(String uri) { + this.uri = uri; + return this; + } + + public DeviceExtensionInfo extensionNumber(String extensionNumber) { + this.extensionNumber = extensionNumber; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DeviceInfoRequest.java b/src/main/java/com/ringcentral/definitions/DeviceInfoRequest.java index ad792d56..ed75417a 100644 --- a/src/main/java/com/ringcentral/definitions/DeviceInfoRequest.java +++ b/src/main/java/com/ringcentral/definitions/DeviceInfoRequest.java @@ -7,11 +7,11 @@ public class DeviceInfoRequest { */ public String id; /** - * For iOS devices only Certificate name (used by iOS applications for APNS subscription) + * Supported for iOS devices only. Certificate name (used by iOS applications for APNS subscription) */ public String appExternalId; /** - * For SoftPhone only Computer name + * Supported for SoftPhone only. Computer name */ public String computerName; diff --git a/src/main/java/com/ringcentral/definitions/DeviceModelInfo.java b/src/main/java/com/ringcentral/definitions/DeviceModelInfo.java new file mode 100644 index 00000000..6d94410b --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DeviceModelInfo.java @@ -0,0 +1,43 @@ +package com.ringcentral.definitions; + + +public class DeviceModelInfo { + /** + * Addon identifier. For HardPhones of certain types, which are compatible with this addon identifier + */ + public String id; + /** + * Device name + */ + public String name; + /** + * Addons description + * Required + */ + public DeviceAddonInfo[] addons; + /** + * Device feature or multiple features supported + */ + public String[] features; + + public DeviceModelInfo id(String id) { + this.id = id; + return this; + } + + public DeviceModelInfo name(String name) { + this.name = name; + return this; + } + + public DeviceModelInfo addons(DeviceAddonInfo[] addons) { + this.addons = addons; + return this; + } + + public DeviceModelInfo features(String[] features) { + this.features = features; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DevicePhoneLinesEmergencyAddressInfo.java b/src/main/java/com/ringcentral/definitions/DevicePhoneLinesEmergencyAddressInfo.java new file mode 100644 index 00000000..e28e07cc --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DevicePhoneLinesEmergencyAddressInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class DevicePhoneLinesEmergencyAddressInfo { + /** + * 'True' if specifying of emergency address is required + */ + public Boolean required; + /** + * 'True' if only local emergency address can be specified + */ + public Boolean localOnly; + + public DevicePhoneLinesEmergencyAddressInfo required(Boolean required) { + this.required = required; + return this; + } + + public DevicePhoneLinesEmergencyAddressInfo localOnly(Boolean localOnly) { + this.localOnly = localOnly; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DevicePhoneLinesInfo.java b/src/main/java/com/ringcentral/definitions/DevicePhoneLinesInfo.java new file mode 100644 index 00000000..70879391 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DevicePhoneLinesInfo.java @@ -0,0 +1,34 @@ +package com.ringcentral.definitions; + + +public class DevicePhoneLinesInfo { + /** + * Type of phone line + * Enum: Standalone, StandaloneFree, BlaPrimary, BlaSecondary + */ + public String lineType; + /** + * + */ + public DevicePhoneLinesEmergencyAddressInfo emergencyAddress; + /** + * Phone number information + */ + public DevicePhoneNumberInfo phoneInfo; + + public DevicePhoneLinesInfo lineType(String lineType) { + this.lineType = lineType; + return this; + } + + public DevicePhoneLinesInfo emergencyAddress(DevicePhoneLinesEmergencyAddressInfo emergencyAddress) { + this.emergencyAddress = emergencyAddress; + return this; + } + + public DevicePhoneLinesInfo phoneInfo(DevicePhoneNumberInfo phoneInfo) { + this.phoneInfo = phoneInfo; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DevicePhoneNumberCountryInfo.java b/src/main/java/com/ringcentral/definitions/DevicePhoneNumberCountryInfo.java new file mode 100644 index 00000000..11559137 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DevicePhoneNumberCountryInfo.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class DevicePhoneNumberCountryInfo { + /** + * Internal identifier of a home country + */ + public String id; + /** + * Canonical URI of a home country + */ + public String uri; + /** + * Official name of a home country + */ + public String name; + + public DevicePhoneNumberCountryInfo id(String id) { + this.id = id; + return this; + } + + public DevicePhoneNumberCountryInfo uri(String uri) { + this.uri = uri; + return this; + } + + public DevicePhoneNumberCountryInfo name(String name) { + this.name = name; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DevicePhoneNumberInfo.java b/src/main/java/com/ringcentral/definitions/DevicePhoneNumberInfo.java new file mode 100644 index 00000000..0355f1a1 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/DevicePhoneNumberInfo.java @@ -0,0 +1,62 @@ +package com.ringcentral.definitions; + + +public class DevicePhoneNumberInfo { + /** + * Internal identifier of a phone number + */ + public Long id; + /** + * Brief information on a phone number country + */ + public DevicePhoneNumberCountryInfo country; + /** + * Payment type. 'External' is returned for forwarded numbers which are not terminated in the RingCentral phone system = ['External', 'TollFree', 'Local'], + * Enum: External, TollFree, Local + */ + public String paymentType; + /** + * Phone number + */ + public String phoneNumber; + /** + * Enum: CompanyNumber, MainCompanyNumber, AdditionalCompanyNumber, DirectNumber, CompanyFaxNumber, ForwardedNumber, ForwardedCompanyNumber, ContactCenterNumber + */ + public String usageType; + /** + * Type of a phone number + * Enum: VoiceFax, FaxOnly, VoiceOnly + */ + public String type; + + public DevicePhoneNumberInfo id(Long id) { + this.id = id; + return this; + } + + public DevicePhoneNumberInfo country(DevicePhoneNumberCountryInfo country) { + this.country = country; + return this; + } + + public DevicePhoneNumberInfo paymentType(String paymentType) { + this.paymentType = paymentType; + return this; + } + + public DevicePhoneNumberInfo phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + public DevicePhoneNumberInfo usageType(String usageType) { + this.usageType = usageType; + return this; + } + + public DevicePhoneNumberInfo type(String type) { + this.type = type; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/DeviceResource.java b/src/main/java/com/ringcentral/definitions/DeviceResource.java index f25f758c..021d1da2 100644 --- a/src/main/java/com/ringcentral/definitions/DeviceResource.java +++ b/src/main/java/com/ringcentral/definitions/DeviceResource.java @@ -17,7 +17,7 @@ public class DeviceResource { /** * Device type * Default: HardPhone - * Enum: HardPhone, SoftPhone, OtherPhone, Paging, WebPhone + * Enum: BLA, HardPhone, SoftPhone, OtherPhone, Paging, WebPhone */ public String type; /** @@ -54,7 +54,7 @@ public class DeviceResource { */ public EmergencyServiceAddressResource emergencyServiceAddress; /** - * Shipping information, according to which devices (in case of HardPhone ) or e911 stickers (in case of SoftPhone and OtherPhone ) will be delivered to the customer + * Shipping information, according to which devices (in case of HardPhone) or e911 stickers (in case of SoftPhone and OtherPhone) will be delivered to the customer */ public ShippingResource shipping; /** @@ -70,6 +70,14 @@ public class DeviceResource { * Supported only for devices assigned to Limited extensions. If true, enables users to log in to this phone as a common phone. */ public Boolean useAsCommonPhone; + /** + * Network location status. 'True' if device is located in the configured corporate network, in this case `bssid` or public/private IP addresses (`hostIp`) must be found in the corporate maps. If `bssid` is not found in the Wireless Access Points map, then the search is performed by public/private IP addresses in the IP Networks map. 'False' if network parameters are not found in corporate maps (`bssid` and public/private IP addresses for wi-fi or for Ethernet connection) + */ + public Boolean inCompanyNet; + /** + * Datetime of receiving last location report in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z + */ + public String lastLocationReportTime; public DeviceResource id(String id) { this.id = id; @@ -151,4 +159,14 @@ public DeviceResource useAsCommonPhone(Boolean useAsCommonPhone) { return this; } + public DeviceResource inCompanyNet(Boolean inCompanyNet) { + this.inCompanyNet = inCompanyNet; + return this; + } + + public DeviceResource lastLocationReportTime(String lastLocationReportTime) { + this.lastLocationReportTime = lastLocationReportTime; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/EmergencyLocationAddressInfo.java b/src/main/java/com/ringcentral/definitions/EmergencyLocationAddressInfo.java new file mode 100644 index 00000000..206116c4 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/EmergencyLocationAddressInfo.java @@ -0,0 +1,114 @@ +package com.ringcentral.definitions; + + +public class EmergencyLocationAddressInfo { + /** + * Country name + */ + public String country; + /** + * Internal identifier of a country + */ + public String countryId; + /** + * ISO code of a country + */ + public String countryIsoCode; + /** + * Full name of a country + */ + public String countryName; + /** + * State/Province name. Mandatory for the USA, the UK and Canada + */ + public String state; + /** + * Internal identifier of a state + */ + public String stateId; + /** + * ISO code of a state + */ + public String stateIsoCode; + /** + * Full name of a state + */ + public String stateName; + /** + * City name + */ + public String city; + /** + * First line address + */ + public String street; + /** + * Second line address (apartment, suite, unit, building, floor, etc.) + */ + public String street2; + /** + * Postal (Zip) code + */ + public String zip; + + public EmergencyLocationAddressInfo country(String country) { + this.country = country; + return this; + } + + public EmergencyLocationAddressInfo countryId(String countryId) { + this.countryId = countryId; + return this; + } + + public EmergencyLocationAddressInfo countryIsoCode(String countryIsoCode) { + this.countryIsoCode = countryIsoCode; + return this; + } + + public EmergencyLocationAddressInfo countryName(String countryName) { + this.countryName = countryName; + return this; + } + + public EmergencyLocationAddressInfo state(String state) { + this.state = state; + return this; + } + + public EmergencyLocationAddressInfo stateId(String stateId) { + this.stateId = stateId; + return this; + } + + public EmergencyLocationAddressInfo stateIsoCode(String stateIsoCode) { + this.stateIsoCode = stateIsoCode; + return this; + } + + public EmergencyLocationAddressInfo stateName(String stateName) { + this.stateName = stateName; + return this; + } + + public EmergencyLocationAddressInfo city(String city) { + this.city = city; + return this; + } + + public EmergencyLocationAddressInfo street(String street) { + this.street = street; + return this; + } + + public EmergencyLocationAddressInfo street2(String street2) { + this.street2 = street2; + return this; + } + + public EmergencyLocationAddressInfo zip(String zip) { + this.zip = zip; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/EmergencyLocationAddressInfoRequest.java b/src/main/java/com/ringcentral/definitions/EmergencyLocationAddressInfoRequest.java new file mode 100644 index 00000000..63c7d368 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/EmergencyLocationAddressInfoRequest.java @@ -0,0 +1,60 @@ +package com.ringcentral.definitions; + + +public class EmergencyLocationAddressInfoRequest { + /** + * Country name + */ + public String country; + /** + * State/Province name. Mandatory for the USA, the UK and Canada + */ + public String state; + /** + * City name + */ + public String city; + /** + * First line address + */ + public String street; + /** + * Second line address (apartment, suite, unit, building, floor, etc.) + */ + public String street2; + /** + * Postal (Zip) code + */ + public String zip; + + public EmergencyLocationAddressInfoRequest country(String country) { + this.country = country; + return this; + } + + public EmergencyLocationAddressInfoRequest state(String state) { + this.state = state; + return this; + } + + public EmergencyLocationAddressInfoRequest city(String city) { + this.city = city; + return this; + } + + public EmergencyLocationAddressInfoRequest street(String street) { + this.street = street; + return this; + } + + public EmergencyLocationAddressInfoRequest street2(String street2) { + this.street2 = street2; + return this; + } + + public EmergencyLocationAddressInfoRequest zip(String zip) { + this.zip = zip; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/EmergencyLocationInfo.java b/src/main/java/com/ringcentral/definitions/EmergencyLocationInfo.java new file mode 100644 index 00000000..5f41ddb7 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/EmergencyLocationInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class EmergencyLocationInfo { + /** + * Internal identifier of the emergency response location + */ + public String id; + /** + * + */ + public EmergencyLocationAddressInfo address; + + public EmergencyLocationInfo id(String id) { + this.id = id; + return this; + } + + public EmergencyLocationInfo address(EmergencyLocationAddressInfo address) { + this.address = address; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/EmergencyLocationInfoRequest.java b/src/main/java/com/ringcentral/definitions/EmergencyLocationInfoRequest.java new file mode 100644 index 00000000..45b56402 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/EmergencyLocationInfoRequest.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class EmergencyLocationInfoRequest { + /** + * Internal identifier of the emergency response location + */ + public String id; + /** + * + */ + public EmergencyLocationAddressInfoRequest address; + + public EmergencyLocationInfoRequest id(String id) { + this.id = id; + return this; + } + + public EmergencyLocationInfoRequest address(EmergencyLocationAddressInfoRequest address) { + this.address = address; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/EmergencyLocationList.java b/src/main/java/com/ringcentral/definitions/EmergencyLocationList.java new file mode 100644 index 00000000..f48a848b --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/EmergencyLocationList.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class EmergencyLocationList { + /** + * + */ + public EmergencyLocationInfo[] records; + /** + * Information on navigation + */ + public ProvisioningNavigationInfo navigation; + /** + * Information on paging + */ + public ProvisioningPagingInfo paging; + + public EmergencyLocationList records(EmergencyLocationInfo[] records) { + this.records = records; + return this; + } + + public EmergencyLocationList navigation(ProvisioningNavigationInfo navigation) { + this.navigation = navigation; + return this; + } + + public EmergencyLocationList paging(ProvisioningPagingInfo paging) { + this.paging = paging; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/EmergencyServiceAddressResourceRequest.java b/src/main/java/com/ringcentral/definitions/EmergencyServiceAddressResourceRequest.java index 9dcb4612..8397adc4 100644 --- a/src/main/java/com/ringcentral/definitions/EmergencyServiceAddressResourceRequest.java +++ b/src/main/java/com/ringcentral/definitions/EmergencyServiceAddressResourceRequest.java @@ -30,30 +30,14 @@ public class EmergencyServiceAddressResourceRequest { * Internal identifier of a state */ public String stateId; - /** - * ISO code of a state - */ - public String stateIsoCode; - /** - * Full name of a state - */ - public String stateName; - /** - * Internal identifier of a country - */ - public String countryId; - /** - * ISO code of a country - */ - public String countryIsoCode; /** * Country name */ public String country; /** - * Full name of a country + * Internal identifier of a country */ - public String countryName; + public String countryId; public EmergencyServiceAddressResourceRequest street(String street) { this.street = street; @@ -90,33 +74,13 @@ public EmergencyServiceAddressResourceRequest stateId(String stateId) { return this; } - public EmergencyServiceAddressResourceRequest stateIsoCode(String stateIsoCode) { - this.stateIsoCode = stateIsoCode; - return this; - } - - public EmergencyServiceAddressResourceRequest stateName(String stateName) { - this.stateName = stateName; - return this; - } - - public EmergencyServiceAddressResourceRequest countryId(String countryId) { - this.countryId = countryId; - return this; - } - - public EmergencyServiceAddressResourceRequest countryIsoCode(String countryIsoCode) { - this.countryIsoCode = countryIsoCode; - return this; - } - public EmergencyServiceAddressResourceRequest country(String country) { this.country = country; return this; } - public EmergencyServiceAddressResourceRequest countryName(String countryName) { - this.countryName = countryName; + public EmergencyServiceAddressResourceRequest countryId(String countryId) { + this.countryId = countryId; return this; } diff --git a/src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java b/src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java index 29c5353a..c3ecf5ed 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionCreationResponse.java @@ -19,7 +19,7 @@ public class ExtensionCreationResponse { */ public String extensionNumber; /** - * Extension user name + * Extension name. For user extension types the value is a combination of the specified first name and last name */ public String name; /** @@ -56,7 +56,7 @@ public class ExtensionCreationResponse { */ public String setupWizardState; /** - * Extension current state. If the status is 'Unassigned'. Returned for all extensions + * 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 */ public String status; diff --git a/src/main/java/com/ringcentral/definitions/ExtensionDeviceResponse.java b/src/main/java/com/ringcentral/definitions/ExtensionDeviceResponse.java new file mode 100644 index 00000000..461d9087 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ExtensionDeviceResponse.java @@ -0,0 +1,181 @@ +package com.ringcentral.definitions; + + +public class ExtensionDeviceResponse { + /** + * Internal identifier of a device + */ + public String id; + /** + * Canonical URI of a device + */ + public String uri; + /** + * Device identification number (stock keeping unit) in the format TP-ID [-AT-AC], where TP is device type (HP for RC HardPhone, DV for all other devices including softphone); ID - device model ID; AT -addon type ID; AC - addon count (if any). For example 'HP-56-2-2' + */ + public String sku; + /** + * Device type + * Default: HardPhone + * Enum: SoftPhone, OtherPhone, HardPhone, Paging + */ + public String type; + /** + * Device name. Mandatory if ordering SoftPhone or OtherPhone. Optional for HardPhone. If not specified for HardPhone, then device model name is used as device name + */ + public String name; + /** + * Device status + * Enum: Offline, Online + */ + public String status; + /** + * Serial number for HardPhone (is returned only when the phone is shipped and provisioned); endpoint_id for softphone and mobile applications + */ + public String serial; + /** + * PC name for softphone + */ + public String computerName; + /** + * HardPhone model information + */ + public ModelInfo model; + /** + * This attribute can be omitted for unassigned devices + */ + public ExtensionInfoIntId extension; + /** + * Address for emergency cases. The same emergency address is assigned to all the numbers of one device + */ + public EmergencyServiceAddressResource emergencyServiceAddress; + /** + * Phone lines information + */ + public PhoneLinesInfo[] phoneLines; + /** + * Shipping information, according to which devices (in case of HardPhone ) or e911 stickers (in case of SoftPhone and OtherPhone ) will be delivered to the customer + */ + public ShippingInfo shipping; + /** + * Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. EitherT? model structure, or boxBillingId must be specified forT?HardPhone + */ + public Long boxBillingId; + /** + * Supported only for devices assigned to Limited extensions. If true, enables users to log in to this phone as a common phone. + */ + public Boolean useAsCommonPhone; + /** + * Pooling type of a deviceHost - device with standalone paid phone line which can be linked to Glip/Softphone instanceGuest - device with a linked phone lineNone - device without a phone line or with specific line (free, BLA, etc.) = ['Host', 'Guest', 'None'] + * Enum: Host, Guest, None + */ + public String linePooling; + /** + * Network location status. 'True' if the device is located in the configured corporate network (On-Net); 'False' for Off-Net location. Parameter is not returned if `EmergencyAddressAutoUpdate` feature is not enabled for the account/user, or if device network location is not determined + */ + public Boolean inCompanyNet; + /** + * Site data + */ + public DeviceSiteInfo site; + /** + * Datetime of receiving last location report in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z + */ + public String lastLocationReportTime; + + public ExtensionDeviceResponse id(String id) { + this.id = id; + return this; + } + + public ExtensionDeviceResponse uri(String uri) { + this.uri = uri; + return this; + } + + public ExtensionDeviceResponse sku(String sku) { + this.sku = sku; + return this; + } + + public ExtensionDeviceResponse type(String type) { + this.type = type; + return this; + } + + public ExtensionDeviceResponse name(String name) { + this.name = name; + return this; + } + + public ExtensionDeviceResponse status(String status) { + this.status = status; + return this; + } + + public ExtensionDeviceResponse serial(String serial) { + this.serial = serial; + return this; + } + + public ExtensionDeviceResponse computerName(String computerName) { + this.computerName = computerName; + return this; + } + + public ExtensionDeviceResponse model(ModelInfo model) { + this.model = model; + return this; + } + + public ExtensionDeviceResponse extension(ExtensionInfoIntId extension) { + this.extension = extension; + return this; + } + + public ExtensionDeviceResponse emergencyServiceAddress(EmergencyServiceAddressResource emergencyServiceAddress) { + this.emergencyServiceAddress = emergencyServiceAddress; + return this; + } + + public ExtensionDeviceResponse phoneLines(PhoneLinesInfo[] phoneLines) { + this.phoneLines = phoneLines; + return this; + } + + public ExtensionDeviceResponse shipping(ShippingInfo shipping) { + this.shipping = shipping; + return this; + } + + public ExtensionDeviceResponse boxBillingId(Long boxBillingId) { + this.boxBillingId = boxBillingId; + return this; + } + + public ExtensionDeviceResponse useAsCommonPhone(Boolean useAsCommonPhone) { + this.useAsCommonPhone = useAsCommonPhone; + return this; + } + + public ExtensionDeviceResponse linePooling(String linePooling) { + this.linePooling = linePooling; + return this; + } + + public ExtensionDeviceResponse inCompanyNet(Boolean inCompanyNet) { + this.inCompanyNet = inCompanyNet; + return this; + } + + public ExtensionDeviceResponse site(DeviceSiteInfo site) { + this.site = site; + return this; + } + + public ExtensionDeviceResponse lastLocationReportTime(String lastLocationReportTime) { + this.lastLocationReportTime = lastLocationReportTime; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ExtensionInfoCallLog.java b/src/main/java/com/ringcentral/definitions/ExtensionInfoCallLog.java index 18fff43b..0136dc3c 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionInfoCallLog.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionInfoCallLog.java @@ -5,13 +5,13 @@ public class ExtensionInfoCallLog { /** * Internal identifier of an extension */ - public String id; + public Long id; /** * Canonical URI of an extension */ public String uri; - public ExtensionInfoCallLog id(String id) { + public ExtensionInfoCallLog id(Long id) { this.id = id; return this; } diff --git a/src/main/java/com/ringcentral/definitions/ExtensionInfoGrants.java b/src/main/java/com/ringcentral/definitions/ExtensionInfoGrants.java index 5b5fa043..045909e6 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionInfoGrants.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionInfoGrants.java @@ -14,9 +14,13 @@ public class ExtensionInfoGrants { * Extension short number (usually 3 or 4 digits) */ public String extensionNumber; + /** + * Name of extension + */ + public String name; /** * Extension type - * Enum: User, Fax User, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnly, IvrMenu, ApplicationExtension, Park Location + * Enum: User, Fax User, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnly, IvrMenu, ApplicationExtension, ParkLocation */ public String type; @@ -35,6 +39,11 @@ public ExtensionInfoGrants extensionNumber(String extensionNumber) { return this; } + public ExtensionInfoGrants name(String name) { + this.name = name; + return this; + } + public ExtensionInfoGrants type(String type) { this.type = type; return this; diff --git a/src/main/java/com/ringcentral/definitions/ExtensionServiceFeatureInfo.java b/src/main/java/com/ringcentral/definitions/ExtensionServiceFeatureInfo.java index 0bf66df7..e37a82f1 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionServiceFeatureInfo.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionServiceFeatureInfo.java @@ -8,7 +8,7 @@ public class ExtensionServiceFeatureInfo { public Boolean enabled; /** * Feature name - * Enum: AccountFederation, Archiver, AutomaticCallRecordingMute, AutomaticInboundCallRecording, AutomaticOutboundCallRecording, BlockedMessageForwarding, Calendar, CallerIdControl, CallForwarding, CallPark, CallParkLocations, CallSupervision, CallSwitch, CallQualitySurvey, Conferencing, ConfigureDelegates, DeveloperPortal, DND, DynamicConference, EmergencyAddressAutoUpdate, EmergencyCalling, EncryptionAtRest, ExternalDirectoryIntegration, Fax, FaxReceiving, FreeSoftPhoneLines, HDVoice, HipaaCompliance, Intercom, InternationalCalling, InternationalSMS, LinkedSoftphoneLines, MMS, OnDemandCallRecording, Pager, PagerReceiving, Paging, PasswordAuth, PromoMessage, Reports, Presence, RCTeams, RingOut, SalesForce, SharedLines, SingleExtensionUI, SiteCodes, SMS, SMSReceiving, SoftPhoneUpdate, TelephonySessions, UserManagement, VideoConferencing, VoipCalling, VoipCallingOnMobile, Voicemail, VoicemailToText, WebPhone + * Enum: AccountFederation, Archiver, AutomaticCallRecordingMute, AutomaticInboundCallRecording, AutomaticOutboundCallRecording, BlockedMessageForwarding, Calendar, CallerIdControl, CallForwarding, CallPark, CallParkLocations, CallSupervision, CallSwitch, CallQualitySurvey, Conferencing, ConferencingNumber, ConfigureDelegates, DeveloperPortal, DND, DynamicConference, EmergencyAddressAutoUpdate, EmergencyCalling, EncryptionAtRest, ExternalDirectoryIntegration, Fax, FaxReceiving, FreeSoftPhoneLines, HDVoice, HipaaCompliance, Intercom, InternationalCalling, InternationalSMS, LinkedSoftphoneLines, MMS, MobileVoipEmergencyCalling, OnDemandCallRecording, Pager, PagerReceiving, Paging, PasswordAuth, PromoMessage, Reports, Presence, RCTeams, RingOut, SalesForce, SharedLines, SingleExtensionUI, SiteCodes, SMS, SMSReceiving, SoftPhoneUpdate, TelephonySessions, UserManagement, VideoConferencing, VoipCalling, VoipCallingOnMobile, Voicemail, VoicemailToText, WebPhone */ public String featureName; /** diff --git a/src/main/java/com/ringcentral/definitions/ExtensionStatusInfo.java b/src/main/java/com/ringcentral/definitions/ExtensionStatusInfo.java index b700186c..bfcf85c3 100644 --- a/src/main/java/com/ringcentral/definitions/ExtensionStatusInfo.java +++ b/src/main/java/com/ringcentral/definitions/ExtensionStatusInfo.java @@ -8,7 +8,7 @@ public class ExtensionStatusInfo { public String comment; /** * Type of suspension - * Enum: Voluntarily, Involuntarily + * Enum: Voluntarily, Involuntarily, SuspendedVoluntarily */ public String reason; diff --git a/src/main/java/com/ringcentral/definitions/FavoriteContactResource.java b/src/main/java/com/ringcentral/definitions/FavoriteContactResource.java index 851a64f4..3554b887 100644 --- a/src/main/java/com/ringcentral/definitions/FavoriteContactResource.java +++ b/src/main/java/com/ringcentral/definitions/FavoriteContactResource.java @@ -10,6 +10,10 @@ public class FavoriteContactResource { * */ public String extensionId; + /** + * + */ + public String accountId; /** * */ @@ -25,6 +29,11 @@ public FavoriteContactResource extensionId(String extensionId) { return this; } + public FavoriteContactResource accountId(String accountId) { + this.accountId = accountId; + return this; + } + public FavoriteContactResource contactId(String contactId) { this.contactId = contactId; return this; diff --git a/src/main/java/com/ringcentral/definitions/FeatureInfo.java b/src/main/java/com/ringcentral/definitions/FeatureInfo.java new file mode 100644 index 00000000..ae571513 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/FeatureInfo.java @@ -0,0 +1,42 @@ +package com.ringcentral.definitions; + + +public class FeatureInfo { + /** + * Internal identifier of a feature + */ + public String id; + /** + * Specifies if the feature is available for the current user according to services enabled for the account, type, entitlements and permissions of the extension. If the authorized user gets features of the other extension, only features that can be delegated are returned (such as configuration by administrators). + */ + public Boolean available; + /** + * + */ + public ParamsInfo params; + /** + * Reason of the feature unavailability. Returned only if `available` is set to 'false' + */ + public ReasonInfo reason; + + public FeatureInfo id(String id) { + this.id = id; + return this; + } + + public FeatureInfo available(Boolean available) { + this.available = available; + return this; + } + + public FeatureInfo params(ParamsInfo params) { + this.params = params; + return this; + } + + public FeatureInfo reason(ReasonInfo reason) { + this.reason = reason; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/FeatureList.java b/src/main/java/com/ringcentral/definitions/FeatureList.java new file mode 100644 index 00000000..6762bcd4 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/FeatureList.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +public class FeatureList { + /** + * + */ + public FeatureInfo[] records; + + public FeatureList records(FeatureInfo[] records) { + this.records = records; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ForwardingNumberInfo.java b/src/main/java/com/ringcentral/definitions/ForwardingNumberInfo.java index a931c2ef..5861900e 100644 --- a/src/main/java/com/ringcentral/definitions/ForwardingNumberInfo.java +++ b/src/main/java/com/ringcentral/definitions/ForwardingNumberInfo.java @@ -25,7 +25,11 @@ public class ForwardingNumberInfo { /** * Number assigned to the call flip phone number, corresponds to the shortcut dial number */ - public Long flipNumber; + public String flipNumber; + /** + * Forwarding device information + */ + public CreateForwardingNumberDeviceInfo device; /** * Forwarding phone number type * Enum: Home, Mobile, Work, PhoneLine, Outage, Other @@ -57,11 +61,16 @@ public ForwardingNumberInfo features(String[] features) { return this; } - public ForwardingNumberInfo flipNumber(Long flipNumber) { + public ForwardingNumberInfo flipNumber(String flipNumber) { this.flipNumber = flipNumber; return this; } + public ForwardingNumberInfo device(CreateForwardingNumberDeviceInfo device) { + this.device = device; + return this; + } + public ForwardingNumberInfo type(String type) { this.type = type; return this; diff --git a/src/main/java/com/ringcentral/definitions/ForwardingNumberResource.java b/src/main/java/com/ringcentral/definitions/ForwardingNumberResource.java deleted file mode 100644 index f34212c3..00000000 --- a/src/main/java/com/ringcentral/definitions/ForwardingNumberResource.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.ringcentral.definitions; - - -public class ForwardingNumberResource { - /** - * - */ - public String uri; - /** - * - */ - public String id; - /** - * - */ - public String phoneNumber; - /** - * - */ - public String label; - /** - * - */ - public String[] features; - /** - * - */ - public String flipNumber; - /** - * Forwarding phone number type - * Enum: Home, Mobile, Work, PhoneLine, Outage, Other - */ - public String type; - - public ForwardingNumberResource uri(String uri) { - this.uri = uri; - return this; - } - - public ForwardingNumberResource id(String id) { - this.id = id; - return this; - } - - public ForwardingNumberResource phoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - return this; - } - - public ForwardingNumberResource label(String label) { - this.label = label; - return this; - } - - public ForwardingNumberResource features(String[] features) { - this.features = features; - return this; - } - - public ForwardingNumberResource flipNumber(String flipNumber) { - this.flipNumber = flipNumber; - return this; - } - - public ForwardingNumberResource type(String type) { - this.type = type; - return this; - } - -} diff --git a/src/main/java/com/ringcentral/definitions/GetCountryListResponse.java b/src/main/java/com/ringcentral/definitions/GetCountryListResponse.java index 0464d9e6..8586be28 100644 --- a/src/main/java/com/ringcentral/definitions/GetCountryListResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetCountryListResponse.java @@ -2,6 +2,10 @@ public class GetCountryListResponse { + /** + * Link to the list of countries supported + */ + public String uri; /** * List of countries with the country data * Required @@ -18,6 +22,11 @@ public class GetCountryListResponse { */ public ProvisioningPagingInfo paging; + public GetCountryListResponse uri(String uri) { + this.uri = uri; + return this; + } + public GetCountryListResponse records(GetCountryInfoDictionaryResponse[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java index 8e4fa7ee..c8859e7c 100644 --- a/src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetDeviceInfoResponse.java @@ -17,17 +17,22 @@ public class GetDeviceInfoResponse { /** * Device type * Default: HardPhone - * Enum: SoftPhone, OtherPhone, HardPhone + * Enum: BLA, SoftPhone, OtherPhone, HardPhone, WebPhone, Paging */ public String type; /** - * Device name. Mandatory if ordering SoftPhone or OtherPhone . Optional for HardPhone . If not specified for HardPhone, then device model name is used as device name + * Device name. Mandatory if ordering SoftPhone or OtherPhone. Optional for HardPhone. If not specified for HardPhone, then device model name is used as device name */ public String name; /** * Serial number for HardPhone (is returned only when the phone is shipped and provisioned); endpoint_id for softphone and mobile applications */ public String serial; + /** + * Device status + * Enum: Offline, Online + */ + public String status; /** * PC name for softphone */ @@ -72,6 +77,11 @@ public class GetDeviceInfoResponse { * Datetime of receiving last location report in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z */ public String lastLocationReportTime; + /** + * Pooling type of a deviceHost - device with standalone paid phone line which can be linked to Glip/Softphone instanceGuest - device with a linked phone lineNone - device without a phone line or with specific line (free, BLA, etc.) = ['Host', 'Guest', 'None'] + * Enum: Host, Guest, None + */ + public String linePooling; public GetDeviceInfoResponse id(String id) { this.id = id; @@ -103,6 +113,11 @@ public GetDeviceInfoResponse serial(String serial) { return this; } + public GetDeviceInfoResponse status(String status) { + this.status = status; + return this; + } + public GetDeviceInfoResponse computerName(String computerName) { this.computerName = computerName; return this; @@ -158,4 +173,9 @@ public GetDeviceInfoResponse lastLocationReportTime(String lastLocationReportTim return this; } + public GetDeviceInfoResponse linePooling(String linePooling) { + this.linePooling = linePooling; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/GetExtensionDevicesResponse.java b/src/main/java/com/ringcentral/definitions/GetExtensionDevicesResponse.java index e697e874..99165521 100644 --- a/src/main/java/com/ringcentral/definitions/GetExtensionDevicesResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetExtensionDevicesResponse.java @@ -2,11 +2,15 @@ public class GetExtensionDevicesResponse { + /** + * Link to the list of extension devices + */ + public String uri; /** * List of extension devices * Required */ - public GetDeviceInfoResponse[] records; + public ExtensionDeviceResponse[] records; /** * Information on navigation * Required @@ -18,7 +22,12 @@ public class GetExtensionDevicesResponse { */ public DeviceProvisioningPagingInfo paging; - public GetExtensionDevicesResponse records(GetDeviceInfoResponse[] records) { + public GetExtensionDevicesResponse uri(String uri) { + this.uri = uri; + return this; + } + + public GetExtensionDevicesResponse records(ExtensionDeviceResponse[] records) { this.records = records; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GetExtensionForwardingNumberListResponse.java b/src/main/java/com/ringcentral/definitions/GetExtensionForwardingNumberListResponse.java index 08c9029e..dfd01b20 100644 --- a/src/main/java/com/ringcentral/definitions/GetExtensionForwardingNumberListResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetExtensionForwardingNumberListResponse.java @@ -2,6 +2,10 @@ public class GetExtensionForwardingNumberListResponse { + /** + * Link to the forwarding number list resource + */ + public String uri; /** * List of forwarding phone numbers */ @@ -15,6 +19,11 @@ public class GetExtensionForwardingNumberListResponse { */ public CallHandlingPagingInfo paging; + public GetExtensionForwardingNumberListResponse uri(String uri) { + this.uri = uri; + return this; + } + public GetExtensionForwardingNumberListResponse records(ForwardingNumberInfo[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetExtensionGrantListResponse.java b/src/main/java/com/ringcentral/definitions/GetExtensionGrantListResponse.java index 7b983e36..d28f24a1 100644 --- a/src/main/java/com/ringcentral/definitions/GetExtensionGrantListResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetExtensionGrantListResponse.java @@ -2,6 +2,10 @@ public class GetExtensionGrantListResponse { + /** + * Link to the list of extension grants + */ + public String uri; /** * List of extension grants with details * Required @@ -18,6 +22,11 @@ public class GetExtensionGrantListResponse { */ public ProvisioningPagingInfo paging; + public GetExtensionGrantListResponse uri(String uri) { + this.uri = uri; + return this; + } + public GetExtensionGrantListResponse records(GrantInfo[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java index 0c2a34a8..9f5405d8 100644 --- a/src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetExtensionInfoResponse.java @@ -25,7 +25,7 @@ public class GetExtensionInfoResponse { */ public String extensionNumber; /** - * Extension user name + * Extension name. For user extension types the value is a combination of the specified first name and last name */ public String name; /** @@ -64,9 +64,9 @@ public class GetExtensionInfoResponse { */ public String setupWizardState; /** - * Extension current state. If the status is 'Unassigned'. Returned for all extensions + * 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 + * Enum: Enabled, Disabled, NotActivated, Unassigned, Frozen */ public String status; /** @@ -76,17 +76,21 @@ public class GetExtensionInfoResponse { /** * Extension type * Required - * Enum: User, FaxUser, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnlyGroup, IvrMenu, ApplicationExtension, ParkLocation + * Enum: User, FaxUser, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnlyGroup, IvrMenu, ApplicationExtension, ParkLocation, Bot, Limited, Site */ public String type; /** * For Department extension type only. Call queue settings */ - public CallQueueExtensionInfo callQueueExtensionInfo; + public CallQueueExtensionInfo callQueueInfo; /** * Hides extension from showing in company directory. Supported for extensions of User type only */ public Boolean hidden; + /** + * 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; public GetExtensionInfoResponse id(Long id) { this.id = id; @@ -173,8 +177,8 @@ public GetExtensionInfoResponse type(String type) { return this; } - public GetExtensionInfoResponse callQueueExtensionInfo(CallQueueExtensionInfo callQueueExtensionInfo) { - this.callQueueExtensionInfo = callQueueExtensionInfo; + public GetExtensionInfoResponse callQueueInfo(CallQueueExtensionInfo callQueueInfo) { + this.callQueueInfo = callQueueInfo; return this; } @@ -183,4 +187,9 @@ public GetExtensionInfoResponse hidden(Boolean hidden) { return this; } + public GetExtensionInfoResponse site(AutomaticLocationUpdatesSiteInfo site) { + this.site = site; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/GetExtensionPhoneNumbersResponse.java b/src/main/java/com/ringcentral/definitions/GetExtensionPhoneNumbersResponse.java index 08998818..893731d7 100644 --- a/src/main/java/com/ringcentral/definitions/GetExtensionPhoneNumbersResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetExtensionPhoneNumbersResponse.java @@ -2,6 +2,10 @@ public class GetExtensionPhoneNumbersResponse { + /** + * Link to the user's phone number list resource + */ + public String uri; /** * List of phone numbers * Required @@ -18,6 +22,11 @@ public class GetExtensionPhoneNumbersResponse { */ public ProvisioningPagingInfo paging; + public GetExtensionPhoneNumbersResponse uri(String uri) { + this.uri = uri; + return this; + } + public GetExtensionPhoneNumbersResponse records(UserPhoneNumberInfo[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetGlipNoteInfo.java b/src/main/java/com/ringcentral/definitions/GetGlipNoteInfo.java new file mode 100644 index 00000000..30f7ba6b --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/GetGlipNoteInfo.java @@ -0,0 +1,115 @@ +package com.ringcentral.definitions; + + +public class GetGlipNoteInfo { + /** + * Internal identifier of a note + */ + public String id; + /** + * Title of a note + */ + public String title; + /** + * Internal identifiers of the chat(s) where the note is posted or shared. + */ + public String[] chatIds; + /** + * Preview of a note (first 150 characters of a body) + */ + public String preview; + /** + * Text of a note + */ + public String body; + /** + * Note creator information + */ + public NoteCreatorInfo creator; + /** + * Note last modification information + */ + public LastModifiedByInfo lastModifiedBy; + /** + * Returned for the note being edited (locked) at the current moment. Information on the user editing the note + */ + public LockedByInfo lockedBy; + /** + * Note publishing status. Any note is created in 'Draft' status. After it is posted it becomes 'Active' + * Enum: Active, Draft + */ + public String status; + /** + * Creation time + */ + public String creationTime; + /** + * Datetime of the note last update + */ + public String lastModifiedTime; + /** + * Enum: Note + */ + public String type; + + public GetGlipNoteInfo id(String id) { + this.id = id; + return this; + } + + public GetGlipNoteInfo title(String title) { + this.title = title; + return this; + } + + public GetGlipNoteInfo chatIds(String[] chatIds) { + this.chatIds = chatIds; + return this; + } + + public GetGlipNoteInfo preview(String preview) { + this.preview = preview; + return this; + } + + public GetGlipNoteInfo body(String body) { + this.body = body; + return this; + } + + public GetGlipNoteInfo creator(NoteCreatorInfo creator) { + this.creator = creator; + return this; + } + + public GetGlipNoteInfo lastModifiedBy(LastModifiedByInfo lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + public GetGlipNoteInfo lockedBy(LockedByInfo lockedBy) { + this.lockedBy = lockedBy; + return this; + } + + public GetGlipNoteInfo status(String status) { + this.status = status; + return this; + } + + public GetGlipNoteInfo creationTime(String creationTime) { + this.creationTime = creationTime; + return this; + } + + public GetGlipNoteInfo lastModifiedTime(String lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + public GetGlipNoteInfo type(String type) { + this.type = type; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/GetMessageInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetMessageInfoResponse.java index c69b5528..149b05e6 100644 --- a/src/main/java/com/ringcentral/definitions/GetMessageInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetMessageInfoResponse.java @@ -5,7 +5,7 @@ public class GetMessageInfoResponse { /** * Internal identifier of a message */ - public String id; + public Long id; /** * Canonical URI of a message */ @@ -52,13 +52,13 @@ public class GetMessageInfoResponse { /** * Sender information */ - public MessageStoreCallerInfoResponse from; + public MessageStoreCallerInfoResponseFrom from; /** * The datetime when the message was modified on server in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z */ public String lastModifiedTime; /** - * Message status. Different message types may have different allowed status values.For outbound faxes the aggregated message status is returned: If status for at least one recipient is 'Queued', then 'Queued' value is returned If status for at least one recipient is 'SendingFailed', then 'SendingFailed' value is returned In other cases Sent status is returned + * Message status. Different message types may have different allowed status values. For outbound faxes the aggregated message status is returned: If status for at least one recipient is 'Queued', then 'Queued' value is returned If status for at least one recipient is 'SendingFailed', then 'SendingFailed' value is returned In other cases Sent status is returned * Enum: Queued, Sent, Delivered, DeliveryFailed, SendingFailed, Received */ public String messageStatus; @@ -91,7 +91,7 @@ public class GetMessageInfoResponse { /** * Recipient information */ - public MessageStoreCallerInfoResponse[] to; + public MessageStoreCallerInfoResponseTo[] to; /** * Message type * Enum: Fax, SMS, VoiceMail, Pager, Text @@ -99,11 +99,19 @@ public class GetMessageInfoResponse { public String type; /** * Voicemail only. Status of voicemail to text transcription. If VoicemailToText feature is not activated for account, the 'NotAvailable' value is returned - * Enum: NotAvailable, InProgress, TimedOut, Completed, CompletedPartially, Failed + * Enum: NotAvailable, InProgress, TimedOut, Completed, CompletedPartially, Failed, Unknown */ public String vmTranscriptionStatus; + /** + * Cover page identifier. For the list of available cover page identifiers please call the Fax Cover Pages method + */ + public Long coverIndex; + /** + * Cover page text, entered by the fax sender and printed on the cover page. Maximum length is limited to 1024 symbols + */ + public String coverPageText; - public GetMessageInfoResponse id(String id) { + public GetMessageInfoResponse id(Long id) { this.id = id; return this; } @@ -158,7 +166,7 @@ public GetMessageInfoResponse faxResolution(String faxResolution) { return this; } - public GetMessageInfoResponse from(MessageStoreCallerInfoResponse from) { + public GetMessageInfoResponse from(MessageStoreCallerInfoResponseFrom from) { this.from = from; return this; } @@ -203,7 +211,7 @@ public GetMessageInfoResponse subject(String subject) { return this; } - public GetMessageInfoResponse to(MessageStoreCallerInfoResponse[] to) { + public GetMessageInfoResponse to(MessageStoreCallerInfoResponseTo[] to) { this.to = to; return this; } @@ -218,4 +226,14 @@ public GetMessageInfoResponse vmTranscriptionStatus(String vmTranscriptionStatus return this; } + public GetMessageInfoResponse coverIndex(Long coverIndex) { + this.coverIndex = coverIndex; + return this; + } + + public GetMessageInfoResponse coverPageText(String coverPageText) { + this.coverPageText = coverPageText; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/GetMessageList.java b/src/main/java/com/ringcentral/definitions/GetMessageList.java index a43cfaa7..6791d5fe 100644 --- a/src/main/java/com/ringcentral/definitions/GetMessageList.java +++ b/src/main/java/com/ringcentral/definitions/GetMessageList.java @@ -2,6 +2,10 @@ public class GetMessageList { + /** + * Link to the list of user messages + */ + public String uri; /** * List of records with message information * Required @@ -18,6 +22,11 @@ public class GetMessageList { */ public MessagingPagingInfo paging; + public GetMessageList uri(String uri) { + this.uri = uri; + return this; + } + public GetMessageList records(GetMessageInfoResponse[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetMessageSyncResponse.java b/src/main/java/com/ringcentral/definitions/GetMessageSyncResponse.java index f668f69a..18cc4c17 100644 --- a/src/main/java/com/ringcentral/definitions/GetMessageSyncResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetMessageSyncResponse.java @@ -2,6 +2,10 @@ public class GetMessageSyncResponse { + /** + * Link to the message sync resource + */ + public String uri; /** * List of message records with synchronization information * Required @@ -13,6 +17,11 @@ public class GetMessageSyncResponse { */ public SyncInfoMessages syncInfo; + public GetMessageSyncResponse uri(String uri) { + this.uri = uri; + return this; + } + public GetMessageSyncResponse records(GetMessageInfoResponse[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetPresenceExtensionInfo.java b/src/main/java/com/ringcentral/definitions/GetPresenceExtensionInfo.java index 749f51c4..274de55f 100644 --- a/src/main/java/com/ringcentral/definitions/GetPresenceExtensionInfo.java +++ b/src/main/java/com/ringcentral/definitions/GetPresenceExtensionInfo.java @@ -5,7 +5,7 @@ public class GetPresenceExtensionInfo { /** * Internal identifier of an extension */ - public String id; + public Long id; /** * Canonical URI of an extension */ @@ -15,7 +15,7 @@ public class GetPresenceExtensionInfo { */ public String extensionNumber; - public GetPresenceExtensionInfo id(String id) { + public GetPresenceExtensionInfo id(Long id) { this.id = id; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java b/src/main/java/com/ringcentral/definitions/GetRingOutStatusResponse.java index ce186ebe..76a25ada 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 String id; + public Long id; /** * */ @@ -15,7 +15,7 @@ public class GetRingOutStatusResponse { */ public RingOutStatusInfo status; - public GetRingOutStatusResponse id(String id) { + public GetRingOutStatusResponse id(Long 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 66d4077b..dbe07324 100644 --- a/src/main/java/com/ringcentral/definitions/GetServiceInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetServiceInfoResponse.java @@ -10,6 +10,18 @@ public class GetServiceInfoResponse { * Account Service Plan name */ public String servicePlanName; + /** + * Information on account brand + */ + public BrandInfo brand; + /** + * Information on account service plan + */ + public ServicePlanInfo servicePlan; + /** + * Information on account billing plan + */ + public BillingPlanInfo billingPlan; /** * Service features information, see Service Feature List */ @@ -29,6 +41,21 @@ public GetServiceInfoResponse servicePlanName(String servicePlanName) { return this; } + public GetServiceInfoResponse brand(BrandInfo brand) { + this.brand = brand; + return this; + } + + public GetServiceInfoResponse servicePlan(ServicePlanInfo servicePlan) { + this.servicePlan = servicePlan; + return this; + } + + public GetServiceInfoResponse billingPlan(BillingPlanInfo billingPlan) { + this.billingPlan = billingPlan; + return this; + } + public GetServiceInfoResponse serviceFeatures(ServiceFeatureInfo[] serviceFeatures) { this.serviceFeatures = serviceFeatures; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetStateListResponse.java b/src/main/java/com/ringcentral/definitions/GetStateListResponse.java index 903a0598..e1e08ca5 100644 --- a/src/main/java/com/ringcentral/definitions/GetStateListResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetStateListResponse.java @@ -2,6 +2,11 @@ public class GetStateListResponse { + /** + * Link to the states list resource + * Required + */ + public String uri; /** * List of states * Required @@ -18,6 +23,11 @@ public class GetStateListResponse { */ public ProvisioningPagingInfo paging; + public GetStateListResponse uri(String uri) { + this.uri = uri; + return this; + } + public GetStateListResponse records(GetStateInfoResponse[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/GetTimezoneInfoResponse.java b/src/main/java/com/ringcentral/definitions/GetTimezoneInfoResponse.java index bda6743d..2ba24391 100644 --- a/src/main/java/com/ringcentral/definitions/GetTimezoneInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/GetTimezoneInfoResponse.java @@ -18,6 +18,10 @@ public class GetTimezoneInfoResponse { * Description of a timezone */ public String description; + /** + * + */ + public String bias; public GetTimezoneInfoResponse id(String id) { this.id = id; @@ -39,4 +43,9 @@ public GetTimezoneInfoResponse description(String description) { return this; } + public GetTimezoneInfoResponse bias(String bias) { + this.bias = bias; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/GlipChatInfo.java b/src/main/java/com/ringcentral/definitions/GlipChatInfo.java index 8f111412..575e8c46 100644 --- a/src/main/java/com/ringcentral/definitions/GlipChatInfo.java +++ b/src/main/java/com/ringcentral/definitions/GlipChatInfo.java @@ -42,7 +42,7 @@ public class GlipChatInfo { /** * */ - public GlipChatMemberInfo[] members; + public GlipMemberInfo[] members; public GlipChatInfo id(String id) { this.id = id; @@ -84,7 +84,7 @@ public GlipChatInfo lastModifiedTime(String lastModifiedTime) { return this; } - public GlipChatInfo members(GlipChatMemberInfo[] members) { + public GlipChatInfo members(GlipMemberInfo[] members) { this.members = members; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GlipConversationInfo.java b/src/main/java/com/ringcentral/definitions/GlipConversationInfo.java index a9428813..013047c1 100644 --- a/src/main/java/com/ringcentral/definitions/GlipConversationInfo.java +++ b/src/main/java/com/ringcentral/definitions/GlipConversationInfo.java @@ -20,9 +20,9 @@ public class GlipConversationInfo { */ public String lastModifiedTime; /** - * + * List of glip members */ - public GlipChatMemberInfo[] members; + public CreateGlipMember[] members; public GlipConversationInfo id(String id) { this.id = id; @@ -44,7 +44,7 @@ public GlipConversationInfo lastModifiedTime(String lastModifiedTime) { return this; } - public GlipConversationInfo members(GlipChatMemberInfo[] members) { + public GlipConversationInfo members(CreateGlipMember[] members) { this.members = members; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GlipCreateGroup.java b/src/main/java/com/ringcentral/definitions/GlipCreateGroup.java index a9beef7a..366c3c0c 100644 --- a/src/main/java/com/ringcentral/definitions/GlipCreateGroup.java +++ b/src/main/java/com/ringcentral/definitions/GlipCreateGroup.java @@ -21,9 +21,9 @@ public class GlipCreateGroup { */ public String description; /** - * Identifier(s) of group members. For 'PrivateChat' group type 2 members only are supported + * “List of glip members. For 'PrivateChat' group type 2 members only are supported” */ - public String[] members; + public GlipMemberInfo[] members; public GlipCreateGroup type(String type) { this.type = type; @@ -45,7 +45,7 @@ public GlipCreateGroup description(String description) { return this; } - public GlipCreateGroup members(String[] members) { + public GlipCreateGroup members(GlipMemberInfo[] members) { this.members = members; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GlipGroupInfo.java b/src/main/java/com/ringcentral/definitions/GlipGroupInfo.java index ac1876cc..e5bdca0f 100644 --- a/src/main/java/com/ringcentral/definitions/GlipGroupInfo.java +++ b/src/main/java/com/ringcentral/definitions/GlipGroupInfo.java @@ -24,7 +24,7 @@ public class GlipGroupInfo { */ public String description; /** - * Identifier(s) of group members + * “List of glip members” */ public String[] members; /** diff --git a/src/main/java/com/ringcentral/definitions/GlipGroupsEvent.java b/src/main/java/com/ringcentral/definitions/GlipGroupsEvent.java index 4998edd8..54dd9fc4 100644 --- a/src/main/java/com/ringcentral/definitions/GlipGroupsEvent.java +++ b/src/main/java/com/ringcentral/definitions/GlipGroupsEvent.java @@ -24,9 +24,9 @@ public class GlipGroupsEvent { */ public String description; /** - * Identifier(s) of group members + * “List of glip members” */ - public String[] members; + public GlipMemberInfo[] members; /** * Group creation datetime in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format */ @@ -66,7 +66,7 @@ public GlipGroupsEvent description(String description) { return this; } - public GlipGroupsEvent members(String[] members) { + public GlipGroupsEvent members(GlipMemberInfo[] members) { this.members = members; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GlipChatMemberInfo.java b/src/main/java/com/ringcentral/definitions/GlipMemberInfo.java similarity index 67% rename from src/main/java/com/ringcentral/definitions/GlipChatMemberInfo.java rename to src/main/java/com/ringcentral/definitions/GlipMemberInfo.java index fc29f412..47573677 100644 --- a/src/main/java/com/ringcentral/definitions/GlipChatMemberInfo.java +++ b/src/main/java/com/ringcentral/definitions/GlipMemberInfo.java @@ -1,13 +1,13 @@ package com.ringcentral.definitions; -public class GlipChatMemberInfo { +public class GlipMemberInfo { /** * Internal identifier of a user */ public String id; - public GlipChatMemberInfo id(String id) { + public GlipMemberInfo id(String id) { this.id = id; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GlipNoteCreate.java b/src/main/java/com/ringcentral/definitions/GlipNoteCreate.java new file mode 100644 index 00000000..4bce0fbc --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/GlipNoteCreate.java @@ -0,0 +1,25 @@ +package com.ringcentral.definitions; + + +public class GlipNoteCreate { + /** + * Title of a note. Max allowed legth is 250 characters + * Required + */ + public String title; + /** + * Contents of a note; HTML-markuped text. Max allowed length is 102400 characters (100 Kb). + */ + public String body; + + public GlipNoteCreate title(String title) { + this.title = title; + return this; + } + + public GlipNoteCreate body(String body) { + this.body = body; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/GlipNoteInfo.java b/src/main/java/com/ringcentral/definitions/GlipNoteInfo.java new file mode 100644 index 00000000..04064a02 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/GlipNoteInfo.java @@ -0,0 +1,106 @@ +package com.ringcentral.definitions; + + +public class GlipNoteInfo { + /** + * Internal identifier of a note + */ + public String id; + /** + * Title of a note + */ + public String title; + /** + * Internal identifiers of the chat(s) where the note is posted or shared. + */ + public String[] chatIds; + /** + * Preview of a note (first 150 characters of a body) + */ + public String preview; + /** + * Note creator information + */ + public NoteCreatorInfo creator; + /** + * Note last modification information + */ + public LastModifiedByInfo lastModifiedBy; + /** + * Returned for the note being edited (locked) at the current moment. Information on the user editing the note + */ + public LockedByInfo lockedBy; + /** + * Note publishing status. Any note is created in 'Draft' status. After it is posted it becomes 'Active' + * Enum: Active, Draft + */ + public String status; + /** + * Creation time + */ + public String creationTime; + /** + * Datetime of the note last update + */ + public String lastModifiedTime; + /** + * Enum: Note + */ + public String type; + + public GlipNoteInfo id(String id) { + this.id = id; + return this; + } + + public GlipNoteInfo title(String title) { + this.title = title; + return this; + } + + public GlipNoteInfo chatIds(String[] chatIds) { + this.chatIds = chatIds; + return this; + } + + public GlipNoteInfo preview(String preview) { + this.preview = preview; + return this; + } + + public GlipNoteInfo creator(NoteCreatorInfo creator) { + this.creator = creator; + return this; + } + + public GlipNoteInfo lastModifiedBy(LastModifiedByInfo lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + public GlipNoteInfo lockedBy(LockedByInfo lockedBy) { + this.lockedBy = lockedBy; + return this; + } + + public GlipNoteInfo status(String status) { + this.status = status; + return this; + } + + public GlipNoteInfo creationTime(String creationTime) { + this.creationTime = creationTime; + return this; + } + + public GlipNoteInfo lastModifiedTime(String lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + public GlipNoteInfo type(String type) { + this.type = type; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/GlipNotesInfo.java b/src/main/java/com/ringcentral/definitions/GlipNotesInfo.java new file mode 100644 index 00000000..76069992 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/GlipNotesInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class GlipNotesInfo { + /** + * + */ + public GlipNoteInfo[] records; + /** + * + */ + public GlipNavigationInfo navigation; + + public GlipNotesInfo records(GlipNoteInfo[] records) { + this.records = records; + return this; + } + + public GlipNotesInfo navigation(GlipNavigationInfo navigation) { + this.navigation = navigation; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/GlipPostMembersIdsListBody.java b/src/main/java/com/ringcentral/definitions/GlipPostMembersIdsListBody.java index 5cfd4bcc..fb5765de 100644 --- a/src/main/java/com/ringcentral/definitions/GlipPostMembersIdsListBody.java +++ b/src/main/java/com/ringcentral/definitions/GlipPostMembersIdsListBody.java @@ -6,9 +6,9 @@ public class GlipPostMembersIdsListBody { * Identifier(s) of chat members. * Required */ - public Object[] members; + public GlipMemberInfo[] members; - public GlipPostMembersIdsListBody members(Object[] members) { + public GlipPostMembersIdsListBody members(GlipMemberInfo[] members) { this.members = members; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GlipPostMembersListBody.java b/src/main/java/com/ringcentral/definitions/GlipPostMembersListBody.java index b768a9b4..e1590020 100644 --- a/src/main/java/com/ringcentral/definitions/GlipPostMembersListBody.java +++ b/src/main/java/com/ringcentral/definitions/GlipPostMembersListBody.java @@ -3,12 +3,12 @@ public class GlipPostMembersListBody { /** - * Identifier(s) of chat member(s) + * List of glip members * Required */ - public Object[] members; + public CreateGlipMember[] members; - public GlipPostMembersListBody members(Object[] members) { + public GlipPostMembersListBody members(CreateGlipMember[] members) { this.members = members; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GlipPostTeamBody.java b/src/main/java/com/ringcentral/definitions/GlipPostTeamBody.java index e9b52f9a..ddbe6584 100644 --- a/src/main/java/com/ringcentral/definitions/GlipPostTeamBody.java +++ b/src/main/java/com/ringcentral/definitions/GlipPostTeamBody.java @@ -19,9 +19,9 @@ public class GlipPostTeamBody { */ public String description; /** - * Identifier(s) of team members. + * List of glip members */ - public Object[] members; + public CreateGlipMember[] members; public GlipPostTeamBody _public(Boolean _public) { this._public = _public; @@ -38,7 +38,7 @@ public GlipPostTeamBody description(String description) { return this; } - public GlipPostTeamBody members(Object[] members) { + public GlipPostTeamBody members(CreateGlipMember[] members) { this.members = members; return this; } diff --git a/src/main/java/com/ringcentral/definitions/GrantInfo.java b/src/main/java/com/ringcentral/definitions/GrantInfo.java index fd2f887b..47839786 100644 --- a/src/main/java/com/ringcentral/definitions/GrantInfo.java +++ b/src/main/java/com/ringcentral/definitions/GrantInfo.java @@ -30,6 +30,14 @@ public class GrantInfo { * Specifies whether the current extension is allowed to call Paging Only group referenced to in extension object */ public Boolean groupPaging; + /** + * Specifies whether the current extension is assigned as a Full-Access manager in the call queue referenced in extension object + */ + public Boolean callQueueSetup; + /** + * Specifies whether the current extension is assigned as a Members-Only manager in the call queue referenced in extension object + */ + public Boolean callQueueMembersSetup; public GrantInfo uri(String uri) { this.uri = uri; @@ -66,4 +74,14 @@ public GrantInfo groupPaging(Boolean groupPaging) { return this; } + public GrantInfo callQueueSetup(Boolean callQueueSetup) { + this.callQueueSetup = callQueueSetup; + return this; + } + + public GrantInfo callQueueMembersSetup(Boolean callQueueMembersSetup) { + this.callQueueMembersSetup = callQueueMembersSetup; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/HostInfoRequest.java b/src/main/java/com/ringcentral/definitions/HostInfoRequest.java index 26acfd08..c69f43c0 100644 --- a/src/main/java/com/ringcentral/definitions/HostInfoRequest.java +++ b/src/main/java/com/ringcentral/definitions/HostInfoRequest.java @@ -2,11 +2,20 @@ public class HostInfoRequest { + /** + * Link to the meeting host resource + */ + public String uri; /** * Internal identifier of an extension which is assigned to be a meeting host. The default value is currently logged-in extension identifier */ public String id; + public HostInfoRequest uri(String uri) { + this.uri = uri; + return this; + } + public HostInfoRequest id(String id) { this.id = id; return this; diff --git a/src/main/java/com/ringcentral/definitions/IVRMenuExtensionInfo.java b/src/main/java/com/ringcentral/definitions/IVRMenuExtensionInfo.java index ff43d2de..12e505af 100644 --- a/src/main/java/com/ringcentral/definitions/IVRMenuExtensionInfo.java +++ b/src/main/java/com/ringcentral/definitions/IVRMenuExtensionInfo.java @@ -10,6 +10,10 @@ public class IVRMenuExtensionInfo { * Internal identifier of an extension */ public String id; + /** + * Name of an extension + */ + public String name; public IVRMenuExtensionInfo uri(String uri) { this.uri = uri; @@ -21,4 +25,9 @@ public IVRMenuExtensionInfo id(String id) { return this; } + public IVRMenuExtensionInfo name(String name) { + this.name = name; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/IVRMenuPromptInfo.java b/src/main/java/com/ringcentral/definitions/IVRMenuPromptInfo.java index 49e43961..315086b4 100644 --- a/src/main/java/com/ringcentral/definitions/IVRMenuPromptInfo.java +++ b/src/main/java/com/ringcentral/definitions/IVRMenuPromptInfo.java @@ -10,7 +10,7 @@ public class IVRMenuPromptInfo { /** * For 'Audio' mode only. Prompt media reference */ - public PromptLanguageInfo audio; + public AudioPromptInfo audio; /** * For 'TextToSpeech' mode only. Prompt text */ @@ -18,14 +18,14 @@ public class IVRMenuPromptInfo { /** * For 'TextToSpeech' mode only. Prompt language metadata */ - public AudioPromptInfo language; + public PromptLanguageInfo language; public IVRMenuPromptInfo mode(String mode) { this.mode = mode; return this; } - public IVRMenuPromptInfo audio(PromptLanguageInfo audio) { + public IVRMenuPromptInfo audio(AudioPromptInfo audio) { this.audio = audio; return this; } @@ -35,7 +35,7 @@ public IVRMenuPromptInfo text(String text) { return this; } - public IVRMenuPromptInfo language(AudioPromptInfo language) { + public IVRMenuPromptInfo language(PromptLanguageInfo language) { this.language = language; return this; } diff --git a/src/main/java/com/ringcentral/definitions/IgnoreRequestBody.java b/src/main/java/com/ringcentral/definitions/IgnoreRequestBody.java new file mode 100644 index 00000000..99dda058 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/IgnoreRequestBody.java @@ -0,0 +1,16 @@ +package com.ringcentral.definitions; + + +public class IgnoreRequestBody { + /** + * Internal device identifier + * Required + */ + public String deviceId; + + public IgnoreRequestBody deviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/LanguageInfo.java b/src/main/java/com/ringcentral/definitions/LanguageInfo.java index 5f1104ca..cb92af7c 100644 --- a/src/main/java/com/ringcentral/definitions/LanguageInfo.java +++ b/src/main/java/com/ringcentral/definitions/LanguageInfo.java @@ -22,6 +22,10 @@ public class LanguageInfo { * Localization code of a language */ public String localeCode; + /** + * Country code according to the ISO standard, see [ISO 3166](https://www.iso.org/iso-3166-country-codes.html) + */ + public String isoCode; /** * Official name of a language */ @@ -56,6 +60,11 @@ public LanguageInfo localeCode(String localeCode) { return this; } + public LanguageInfo isoCode(String isoCode) { + this.isoCode = isoCode; + return this; + } + public LanguageInfo name(String name) { this.name = name; return this; diff --git a/src/main/java/com/ringcentral/definitions/LastModifiedByInfo.java b/src/main/java/com/ringcentral/definitions/LastModifiedByInfo.java new file mode 100644 index 00000000..1db3c834 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/LastModifiedByInfo.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +public class LastModifiedByInfo { + /** + * Internal identifier of the user who last updated the note + */ + public String id; + + public LastModifiedByInfo id(String id) { + this.id = id; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ListAccountMeetingRecordingsParameters.java b/src/main/java/com/ringcentral/definitions/ListAccountMeetingRecordingsParameters.java new file mode 100644 index 00000000..479f62ba --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ListAccountMeetingRecordingsParameters.java @@ -0,0 +1,53 @@ +package com.ringcentral.definitions; + + +public class ListAccountMeetingRecordingsParameters { + /** + * Internal identifier of a meeting. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified + */ + public String meetingId; + /** + * Recordings of meetings started after the time specified will be returned. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified + */ + public String meetingStartTimeFrom; + /** + * Recordings of meetings started before the time specified will be returned. The default value is current time. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified + */ + public String meetingStartTimeTo; + /** + * Page number + */ + public Long page; + /** + * Number of items per page. The `max` value is supported to indicate the maximum size - 300 + * Maximum: 300 + * Default: 100 + */ + public Long perPage; + + public ListAccountMeetingRecordingsParameters meetingId(String meetingId) { + this.meetingId = meetingId; + return this; + } + + public ListAccountMeetingRecordingsParameters meetingStartTimeFrom(String meetingStartTimeFrom) { + this.meetingStartTimeFrom = meetingStartTimeFrom; + return this; + } + + public ListAccountMeetingRecordingsParameters meetingStartTimeTo(String meetingStartTimeTo) { + this.meetingStartTimeTo = meetingStartTimeTo; + return this; + } + + public ListAccountMeetingRecordingsParameters page(Long page) { + this.page = page; + return this; + } + + public ListAccountMeetingRecordingsParameters perPage(Long perPage) { + this.perPage = perPage; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ListAccountPhoneNumbersParameters.java b/src/main/java/com/ringcentral/definitions/ListAccountPhoneNumbersParameters.java index 9059378f..62b29eae 100644 --- a/src/main/java/com/ringcentral/definitions/ListAccountPhoneNumbersParameters.java +++ b/src/main/java/com/ringcentral/definitions/ListAccountPhoneNumbersParameters.java @@ -16,6 +16,11 @@ public class ListAccountPhoneNumbersParameters { * Usage type of a phone number */ public String[] usageType; + /** + * Status of a phone number. Multiple values are supported + * Enum: Normal, Pending, PortedIn, Temporary + */ + public String status; public ListAccountPhoneNumbersParameters page(Long page) { this.page = page; @@ -32,4 +37,9 @@ public ListAccountPhoneNumbersParameters usageType(String[] usageType) { return this; } + public ListAccountPhoneNumbersParameters status(String status) { + this.status = status; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/ListChatNotesParameters.java b/src/main/java/com/ringcentral/definitions/ListChatNotesParameters.java new file mode 100644 index 00000000..4cc3227b --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ListChatNotesParameters.java @@ -0,0 +1,63 @@ +package com.ringcentral.definitions; + + +public class ListChatNotesParameters { + /** + * The end datetime for resulting records in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, e.g. 2019-03-10T18:23:45. The default value is Now. + */ + public String creationTimeTo; + /** + * The start datetime for resulting records in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone + */ + public String creationTimeFrom; + /** + * Internal identifier of the user that created the note. Multiple values are supported + */ + public String creatorId; + /** + * Status of notes to be fetched; if not specified all notes are fetched by default. + * Enum: Active, Draft + */ + public String status; + /** + * Pagination token + */ + public String pageToken; + /** + * Max number of notes to be fetched by one request; the value range is 1-250. + * Maximum: 250 + * Default: 30 + */ + public Long recordCount; + + public ListChatNotesParameters creationTimeTo(String creationTimeTo) { + this.creationTimeTo = creationTimeTo; + return this; + } + + public ListChatNotesParameters creationTimeFrom(String creationTimeFrom) { + this.creationTimeFrom = creationTimeFrom; + return this; + } + + public ListChatNotesParameters creatorId(String creatorId) { + this.creatorId = creatorId; + return this; + } + + public ListChatNotesParameters status(String status) { + this.status = status; + return this; + } + + public ListChatNotesParameters pageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public ListChatNotesParameters recordCount(Long recordCount) { + this.recordCount = recordCount; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ListCompanyAnsweringRuleInfo.java b/src/main/java/com/ringcentral/definitions/ListCompanyAnsweringRuleInfo.java index 25c84feb..b649a6a9 100644 --- a/src/main/java/com/ringcentral/definitions/ListCompanyAnsweringRuleInfo.java +++ b/src/main/java/com/ringcentral/definitions/ListCompanyAnsweringRuleInfo.java @@ -24,6 +24,14 @@ public class ListCompanyAnsweringRuleInfo { * Name of an answering rule specified by user. Max number of symbols is 30. The default value is 'My Rule N' where 'N' is the first free number */ public String name; + /** + * Answering rules are applied when calling to selected number(s) + */ + public CalledNumberInfo[] calledNumbers; + /** + * + */ + public CompanyAnsweringRuleExtensionInfo extension; public ListCompanyAnsweringRuleInfo id(String id) { this.id = id; @@ -50,4 +58,14 @@ public ListCompanyAnsweringRuleInfo name(String name) { return this; } + public ListCompanyAnsweringRuleInfo calledNumbers(CalledNumberInfo[] calledNumbers) { + this.calledNumbers = calledNumbers; + return this; + } + + public ListCompanyAnsweringRuleInfo extension(CompanyAnsweringRuleExtensionInfo extension) { + this.extension = extension; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/ListEmergencyLocationsParameters.java b/src/main/java/com/ringcentral/definitions/ListEmergencyLocationsParameters.java new file mode 100644 index 00000000..55d3a6a8 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ListEmergencyLocationsParameters.java @@ -0,0 +1,44 @@ +package com.ringcentral.definitions; + + +public class ListEmergencyLocationsParameters { + /** + * Filters entries containing the specified substring in address fields. The characters range is 0-64; not case-sensitive. If empty then the filter is ignored + */ + public String searchString; + /** + * Comma-separated list of fields to order results prefixed by plus sign '+' (ascending order) or minus sign '-' (descending order). Supported values: 'address' + * Default: address + */ + public String orderBy; + /** + * Indicates the page size (number of items). The values supported: `Max` or numeric value. If not specified, 100 records are returned per one page + */ + public Long perPage; + /** + * Indicates the page number to retrieve. Only positive number values are supported + * Default: 1 + */ + public Long page; + + public ListEmergencyLocationsParameters searchString(String searchString) { + this.searchString = searchString; + return this; + } + + public ListEmergencyLocationsParameters orderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + public ListEmergencyLocationsParameters perPage(Long perPage) { + this.perPage = perPage; + return this; + } + + public ListEmergencyLocationsParameters page(Long page) { + this.page = page; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ListExtensionGrantsParameters.java b/src/main/java/com/ringcentral/definitions/ListExtensionGrantsParameters.java index 1f5015cf..7c02954e 100644 --- a/src/main/java/com/ringcentral/definitions/ListExtensionGrantsParameters.java +++ b/src/main/java/com/ringcentral/definitions/ListExtensionGrantsParameters.java @@ -2,6 +2,11 @@ public class ListExtensionGrantsParameters { + /** + * Type of extension to be returned. Multiple values are supported + * Enum: User, FaxUser, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnly, IvrMenu, ApplicationExtension, ParkLocation, Limited, Bot + */ + public String extensionType; /** * Default: 1 */ @@ -11,6 +16,11 @@ public class ListExtensionGrantsParameters { */ public String perPage; + public ListExtensionGrantsParameters extensionType(String extensionType) { + this.extensionType = extensionType; + return this; + } + public ListExtensionGrantsParameters page(String page) { this.page = page; return this; diff --git a/src/main/java/com/ringcentral/definitions/ListExtensionPhoneNumbersParameters.java b/src/main/java/com/ringcentral/definitions/ListExtensionPhoneNumbersParameters.java index f713a1c3..aef7f2c4 100644 --- a/src/main/java/com/ringcentral/definitions/ListExtensionPhoneNumbersParameters.java +++ b/src/main/java/com/ringcentral/definitions/ListExtensionPhoneNumbersParameters.java @@ -2,6 +2,11 @@ public class ListExtensionPhoneNumbersParameters { + /** + * Status of a phone number. Multiple values are supported + * Enum: Normal, Pending, PortedIn, Temporary + */ + public String status; /** * Usage type of a phone number */ @@ -15,6 +20,11 @@ public class ListExtensionPhoneNumbersParameters { */ public Long perPage; + public ListExtensionPhoneNumbersParameters status(String status) { + this.status = status; + return this; + } + public ListExtensionPhoneNumbersParameters usageType(String[] usageType) { this.usageType = usageType; return this; diff --git a/src/main/java/com/ringcentral/definitions/ListExtensionsParameters.java b/src/main/java/com/ringcentral/definitions/ListExtensionsParameters.java index 201d867e..7bce9a71 100644 --- a/src/main/java/com/ringcentral/definitions/ListExtensionsParameters.java +++ b/src/main/java/com/ringcentral/definitions/ListExtensionsParameters.java @@ -21,7 +21,7 @@ public class ListExtensionsParameters { */ public Long perPage; /** - * Extension current state. Multiple values are supported. If 'Unassigned' is specified, then extensions without extensionNumber are returned. If not specified, then all extensions are returned. + * Extension current state. Multiple values are supported. If 'Unassigned' is specified, then extensions without `extensionNumber` attribute are returned. If not specified, then all extensions are returned. */ public String[] status; /** diff --git a/src/main/java/com/ringcentral/definitions/ListMeetingRecordingsResponse.java b/src/main/java/com/ringcentral/definitions/ListMeetingRecordingsResponse.java new file mode 100644 index 00000000..75305b8f --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ListMeetingRecordingsResponse.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class ListMeetingRecordingsResponse { + /** + * + */ + public MeetingRecordings[] records; + /** + * + */ + public MeetingRecordingsPagingInfo paging; + /** + * + */ + public MeetingRecordingsNavigationInfo navigation; + + public ListMeetingRecordingsResponse records(MeetingRecordings[] records) { + this.records = records; + return this; + } + + public ListMeetingRecordingsResponse paging(MeetingRecordingsPagingInfo paging) { + this.paging = paging; + return this; + } + + public ListMeetingRecordingsResponse navigation(MeetingRecordingsNavigationInfo navigation) { + this.navigation = navigation; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ListUserMeetingRecordingsParameters.java b/src/main/java/com/ringcentral/definitions/ListUserMeetingRecordingsParameters.java new file mode 100644 index 00000000..3441d402 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ListUserMeetingRecordingsParameters.java @@ -0,0 +1,53 @@ +package com.ringcentral.definitions; + + +public class ListUserMeetingRecordingsParameters { + /** + * Internal identifier of a meeting. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified + */ + public String meetingId; + /** + * Recordings of meetings started after the time specified will be returned. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified + */ + public String meetingStartTimeFrom; + /** + * Recordings of meetings started before the time specified will be returned. The default value is current time. Either `meetingId` or `meetingStartTime`/`meetingEndTime` can be specified + */ + public String meetingStartTimeTo; + /** + * Page number + */ + public Long page; + /** + * Number of items per page. The `max` value is supported to indicate the maximum size - 300 + * Maximum: 300 + * Default: 100 + */ + public Long perPage; + + public ListUserMeetingRecordingsParameters meetingId(String meetingId) { + this.meetingId = meetingId; + return this; + } + + public ListUserMeetingRecordingsParameters meetingStartTimeFrom(String meetingStartTimeFrom) { + this.meetingStartTimeFrom = meetingStartTimeFrom; + return this; + } + + public ListUserMeetingRecordingsParameters meetingStartTimeTo(String meetingStartTimeTo) { + this.meetingStartTimeTo = meetingStartTimeTo; + return this; + } + + public ListUserMeetingRecordingsParameters page(Long page) { + this.page = page; + return this; + } + + public ListUserMeetingRecordingsParameters perPage(Long perPage) { + this.perPage = perPage; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/LocationUpdatesEmergencyAddressInfo.java b/src/main/java/com/ringcentral/definitions/LocationUpdatesEmergencyAddressInfo.java index 22a941d0..49e4f2b2 100644 --- a/src/main/java/com/ringcentral/definitions/LocationUpdatesEmergencyAddressInfo.java +++ b/src/main/java/com/ringcentral/definitions/LocationUpdatesEmergencyAddressInfo.java @@ -18,6 +18,10 @@ public class LocationUpdatesEmergencyAddressInfo { * Full name of a country */ public String countryName; + /** + * Customer name + */ + public String customerName; /** * State/Province name. Mandatory for the USA, the UK and Canada */ @@ -71,6 +75,11 @@ public LocationUpdatesEmergencyAddressInfo countryName(String countryName) { return this; } + public LocationUpdatesEmergencyAddressInfo customerName(String customerName) { + this.customerName = customerName; + return this; + } + public LocationUpdatesEmergencyAddressInfo state(String state) { this.state = state; return this; diff --git a/src/main/java/com/ringcentral/definitions/LocationUpdatesEmergencyAddressInfoRequest.java b/src/main/java/com/ringcentral/definitions/LocationUpdatesEmergencyAddressInfoRequest.java new file mode 100644 index 00000000..0a207885 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/LocationUpdatesEmergencyAddressInfoRequest.java @@ -0,0 +1,60 @@ +package com.ringcentral.definitions; + + +public class LocationUpdatesEmergencyAddressInfoRequest { + /** + * Country name + */ + public String country; + /** + * State/Province name. Mandatory for the USA, the UK and Canada + */ + public String state; + /** + * City name + */ + public String city; + /** + * First line address + */ + public String street; + /** + * Second line address (apartment, suite, unit, building, floor, etc.) + */ + public String street2; + /** + * Postal (Zip) code + */ + public String zip; + + public LocationUpdatesEmergencyAddressInfoRequest country(String country) { + this.country = country; + return this; + } + + public LocationUpdatesEmergencyAddressInfoRequest state(String state) { + this.state = state; + return this; + } + + public LocationUpdatesEmergencyAddressInfoRequest city(String city) { + this.city = city; + return this; + } + + public LocationUpdatesEmergencyAddressInfoRequest street(String street) { + this.street = street; + return this; + } + + public LocationUpdatesEmergencyAddressInfoRequest street2(String street2) { + this.street2 = street2; + return this; + } + + public LocationUpdatesEmergencyAddressInfoRequest zip(String zip) { + this.zip = zip; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/LockedByInfo.java b/src/main/java/com/ringcentral/definitions/LockedByInfo.java new file mode 100644 index 00000000..05441fd5 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/LockedByInfo.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +public class LockedByInfo { + /** + * Internal identifier of the user editing the note + */ + public String id; + + public LockedByInfo id(String id) { + this.id = id; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/MeetingInfo.java b/src/main/java/com/ringcentral/definitions/MeetingInfo.java new file mode 100644 index 00000000..5bb42c98 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MeetingInfo.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class MeetingInfo { + /** + * + */ + public String id; + /** + * + */ + public String topic; + /** + * + */ + public String startTime; + + public MeetingInfo id(String id) { + this.id = id; + return this; + } + + public MeetingInfo topic(String topic) { + this.topic = topic; + return this; + } + + public MeetingInfo startTime(String startTime) { + this.startTime = startTime; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/MeetingRecordingInfo.java b/src/main/java/com/ringcentral/definitions/MeetingRecordingInfo.java new file mode 100644 index 00000000..1a0f6a8e --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MeetingRecordingInfo.java @@ -0,0 +1,69 @@ +package com.ringcentral.definitions; + + +public class MeetingRecordingInfo { + /** + * + */ + public String id; + /** + * + */ + public String contentDownloadUri; + /** + * Enum: video/mp4, audio/m4a, text/vtt + */ + public String contentType; + /** + * + */ + public Long size; + /** + * Starting time of a recording + */ + public String startTime; + /** + * Ending time of a recording + */ + public String endTime; + /** + * Enum: Completed, Processing + */ + public String status; + + public MeetingRecordingInfo id(String id) { + this.id = id; + return this; + } + + public MeetingRecordingInfo contentDownloadUri(String contentDownloadUri) { + this.contentDownloadUri = contentDownloadUri; + return this; + } + + public MeetingRecordingInfo contentType(String contentType) { + this.contentType = contentType; + return this; + } + + public MeetingRecordingInfo size(Long size) { + this.size = size; + return this; + } + + public MeetingRecordingInfo startTime(String startTime) { + this.startTime = startTime; + return this; + } + + public MeetingRecordingInfo endTime(String endTime) { + this.endTime = endTime; + return this; + } + + public MeetingRecordingInfo status(String status) { + this.status = status; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/MeetingRecordings.java b/src/main/java/com/ringcentral/definitions/MeetingRecordings.java new file mode 100644 index 00000000..2643a8a2 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MeetingRecordings.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class MeetingRecordings { + /** + * + */ + public MeetingInfo meeting; + /** + * + */ + public MeetingRecordingInfo[] recordings; + + public MeetingRecordings meeting(MeetingInfo meeting) { + this.meeting = meeting; + return this; + } + + public MeetingRecordings recordings(MeetingRecordingInfo[] recordings) { + this.recordings = recordings; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/MeetingRecordingsNavigationInfo.java b/src/main/java/com/ringcentral/definitions/MeetingRecordingsNavigationInfo.java new file mode 100644 index 00000000..9d78a66e --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MeetingRecordingsNavigationInfo.java @@ -0,0 +1,42 @@ +package com.ringcentral.definitions; + + +public class MeetingRecordingsNavigationInfo { + /** + * Canonical URI for the first page of the list + */ + public MeetingRecordingsNavigationInfoUri firstPage; + /** + * Canonical URI for the next page of the list + */ + public MeetingRecordingsNavigationInfoUri nextPage; + /** + * Canonical URI for the previous page of the list + */ + public MeetingRecordingsNavigationInfoUri previousPage; + /** + * Canonical URI for the last page of the list + */ + public MeetingRecordingsNavigationInfoUri lastPage; + + public MeetingRecordingsNavigationInfo firstPage(MeetingRecordingsNavigationInfoUri firstPage) { + this.firstPage = firstPage; + return this; + } + + public MeetingRecordingsNavigationInfo nextPage(MeetingRecordingsNavigationInfoUri nextPage) { + this.nextPage = nextPage; + return this; + } + + public MeetingRecordingsNavigationInfo previousPage(MeetingRecordingsNavigationInfoUri previousPage) { + this.previousPage = previousPage; + return this; + } + + public MeetingRecordingsNavigationInfo lastPage(MeetingRecordingsNavigationInfoUri lastPage) { + this.lastPage = lastPage; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/MeetingRecordingsNavigationInfoUri.java b/src/main/java/com/ringcentral/definitions/MeetingRecordingsNavigationInfoUri.java new file mode 100644 index 00000000..5f7438df --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MeetingRecordingsNavigationInfoUri.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +public class MeetingRecordingsNavigationInfoUri { + /** + * + */ + public String uri; + + public MeetingRecordingsNavigationInfoUri uri(String uri) { + this.uri = uri; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/MeetingRecordingsPagingInfo.java b/src/main/java/com/ringcentral/definitions/MeetingRecordingsPagingInfo.java new file mode 100644 index 00000000..796e632d --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MeetingRecordingsPagingInfo.java @@ -0,0 +1,60 @@ +package com.ringcentral.definitions; + + +public class MeetingRecordingsPagingInfo { + /** + * 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 MeetingRecordingsPagingInfo page(Long page) { + this.page = page; + return this; + } + + public MeetingRecordingsPagingInfo perPage(Long perPage) { + this.perPage = perPage; + return this; + } + + public MeetingRecordingsPagingInfo pageStart(Long pageStart) { + this.pageStart = pageStart; + return this; + } + + public MeetingRecordingsPagingInfo pageEnd(Long pageEnd) { + this.pageEnd = pageEnd; + return this; + } + + public MeetingRecordingsPagingInfo totalPages(Long totalPages) { + this.totalPages = totalPages; + return this; + } + + public MeetingRecordingsPagingInfo totalElements(Long totalElements) { + this.totalElements = totalElements; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/MessageAttachmentInfo.java b/src/main/java/com/ringcentral/definitions/MessageAttachmentInfo.java index 84b64baa..aa63aa5b 100644 --- a/src/main/java/com/ringcentral/definitions/MessageAttachmentInfo.java +++ b/src/main/java/com/ringcentral/definitions/MessageAttachmentInfo.java @@ -5,7 +5,7 @@ public class MessageAttachmentInfo { /** * Internal identifier of a message attachment */ - public String id; + public Long id; /** * Canonical URI of a message attachment */ @@ -26,13 +26,21 @@ public class MessageAttachmentInfo { /** * Name of a file attached */ - public String filename; + public String fileName; /** * Size of attachment in bytes */ public Long size; + /** + * Attachment height in pixels if available + */ + public Long height; + /** + * Attachment width in pixels if available + */ + public Long width; - public MessageAttachmentInfo id(String id) { + public MessageAttachmentInfo id(Long id) { this.id = id; return this; } @@ -57,8 +65,8 @@ public MessageAttachmentInfo vmDuration(Long vmDuration) { return this; } - public MessageAttachmentInfo filename(String filename) { - this.filename = filename; + public MessageAttachmentInfo fileName(String fileName) { + this.fileName = fileName; return this; } @@ -67,4 +75,14 @@ public MessageAttachmentInfo size(Long size) { return this; } + public MessageAttachmentInfo height(Long height) { + this.height = height; + return this; + } + + public MessageAttachmentInfo width(Long width) { + this.width = width; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponse.java b/src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponseFrom.java similarity index 56% rename from src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponse.java rename to src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponseFrom.java index b3dfa75b..9d906ac6 100644 --- a/src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponse.java +++ b/src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponseFrom.java @@ -1,26 +1,19 @@ package com.ringcentral.definitions; -public class MessageStoreCallerInfoResponse { +public class MessageStoreCallerInfoResponseFrom { /** * Extension short number (usually 3 or 4 digits). This property is filled when parties communicate by means of short internal numbers, for example when calling to other extension or sending/receiving Company Pager message - * Required */ public String extensionNumber; /** - * Contains party location (city, state) if one can be determined from phoneNumber. This property is filled only when phoneNumber is not empty and server can calculate location information from it (for example, this information is unavailable for US toll-free numbers) - */ - public String location; - /** - * Status of a message. Returned for outbound fax messages only - * Enum: Queued, Sent, Delivered, DeliveryFailed, SendingFailed, Received + * Internal identifier of an extension */ - public String messageStatus; + public String extensionId; /** - * Fax only. Error code returned in case of fax sending failure. Returned if messageStatus value is 'SendingFailed' - * Enum: InternationalCallingDisabled, DestinationCountryDisabled, NoAnswer, LineBusy, CallerHungUp, UnknownCountryCode, InvalidNumber, NotAccepted, CallDeclined, TooManyCallsPerLine, NotEnoughCredits, SentPartially, CallFailed + * Contains party location (city, state) if one can be determined from phoneNumber. This property is filled only when phoneNumber is not empty and server can calculate location information from it (for example, this information is unavailable for US toll-free numbers) */ - public String faxErrorCode; + public String location; /** * Symbolic name associated with a party. If the phone does not belong to the known extension, only the location is returned, the name is not determined then */ @@ -30,32 +23,27 @@ public class MessageStoreCallerInfoResponse { */ public String phoneNumber; - public MessageStoreCallerInfoResponse extensionNumber(String extensionNumber) { + public MessageStoreCallerInfoResponseFrom extensionNumber(String extensionNumber) { this.extensionNumber = extensionNumber; return this; } - public MessageStoreCallerInfoResponse location(String location) { - this.location = location; + public MessageStoreCallerInfoResponseFrom extensionId(String extensionId) { + this.extensionId = extensionId; return this; } - public MessageStoreCallerInfoResponse messageStatus(String messageStatus) { - this.messageStatus = messageStatus; - return this; - } - - public MessageStoreCallerInfoResponse faxErrorCode(String faxErrorCode) { - this.faxErrorCode = faxErrorCode; + public MessageStoreCallerInfoResponseFrom location(String location) { + this.location = location; return this; } - public MessageStoreCallerInfoResponse name(String name) { + public MessageStoreCallerInfoResponseFrom name(String name) { this.name = name; return this; } - public MessageStoreCallerInfoResponse phoneNumber(String phoneNumber) { + public MessageStoreCallerInfoResponseFrom phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } diff --git a/src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponseTo.java b/src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponseTo.java new file mode 100644 index 00000000..b276ef67 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/MessageStoreCallerInfoResponseTo.java @@ -0,0 +1,80 @@ +package com.ringcentral.definitions; + + +public class MessageStoreCallerInfoResponseTo { + /** + * Extension short number (usually 3 or 4 digits). This property is filled when parties communicate by means of short internal numbers, for example when calling to other extension or sending/receiving Company Pager message + */ + public String extensionNumber; + /** + * + */ + public String extensionId; + /** + * Contains party location (city, state) if one can be determined from phoneNumber. This property is filled only when phoneNumber is not empty and server can calculate location information from it (for example, this information is unavailable for US toll-free numbers) + */ + public String location; + /** + * 'True' specifies that message is sent exactly to this recipient. Returned in to field for group MMS. Useful if one extension has several phone numbers + */ + public Boolean target; + /** + * Status of a message. Returned for outbound fax messages only + * Enum: Queued, Sent, Delivered, DeliveryFailed, SendingFailed, Received + */ + public String messageStatus; + /** + * Error code returned in case of fax sending failure. Returned if messageStatus value is 'SendingFailed'. Supported for fax messages only + * Enum: Undefined, NoFaxSendPermission, NoInternationalPermission, NoFaxMachine, NoAnswer, LineBusy, CallerHungUp, NotEnoughCredits, SentPartially, InternationalCallingDisabled, DestinationCountryDisabled, UnknownCountryCode, NotAccepted, InvalidNumber, CallDeclined, TooManyCallsPerLine, CallFailed, RenderingFailed, TooManyPages, ReturnToDBQueue, NoCallTime, WrongNumber, ProhibitedNumber, InternalError, FaxSendingProhibited, ThePhoneIsBlacklisted, UserNotFound, ConvertError, DBGeneralError, SkypeBillingFailed, AccountSuspended, ProhibitedDestination, InternationalDisabled + */ + public String faxErrorCode; + /** + * Symbolic name associated with a party. If the phone does not belong to the known extension, only the location is returned, the name is not determined then + */ + public String name; + /** + * Phone number of a party. Usually it is a plain number including country and area code like 18661234567. But sometimes it could be returned from database with some formatting applied, for example (866)123-4567. This property is filled in all cases where parties communicate by means of global phone numbers, for example when calling to direct numbers or sending/receiving SMS + */ + public String phoneNumber; + + public MessageStoreCallerInfoResponseTo extensionNumber(String extensionNumber) { + this.extensionNumber = extensionNumber; + return this; + } + + public MessageStoreCallerInfoResponseTo extensionId(String extensionId) { + this.extensionId = extensionId; + return this; + } + + public MessageStoreCallerInfoResponseTo location(String location) { + this.location = location; + return this; + } + + public MessageStoreCallerInfoResponseTo target(Boolean target) { + this.target = target; + return this; + } + + public MessageStoreCallerInfoResponseTo messageStatus(String messageStatus) { + this.messageStatus = messageStatus; + return this; + } + + public MessageStoreCallerInfoResponseTo faxErrorCode(String faxErrorCode) { + this.faxErrorCode = faxErrorCode; + return this; + } + + public MessageStoreCallerInfoResponseTo name(String name) { + this.name = name; + return this; + } + + public MessageStoreCallerInfoResponseTo phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ModelInfo.java b/src/main/java/com/ringcentral/definitions/ModelInfo.java index 23e2e06f..dd005b23 100644 --- a/src/main/java/com/ringcentral/definitions/ModelInfo.java +++ b/src/main/java/com/ringcentral/definitions/ModelInfo.java @@ -19,6 +19,10 @@ public class ModelInfo { * Device feature or multiple features supported */ public String[] features; + /** + * Max supported count of phone lines + */ + public Long lineCount; public ModelInfo id(String id) { this.id = id; @@ -40,4 +44,9 @@ public ModelInfo features(String[] features) { return this; } + public ModelInfo lineCount(Long lineCount) { + this.lineCount = lineCount; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/ModifyAccountBusinessAddressRequest.java b/src/main/java/com/ringcentral/definitions/ModifyAccountBusinessAddressRequest.java index 11cc8cd4..07ee432b 100644 --- a/src/main/java/com/ringcentral/definitions/ModifyAccountBusinessAddressRequest.java +++ b/src/main/java/com/ringcentral/definitions/ModifyAccountBusinessAddressRequest.java @@ -15,6 +15,10 @@ public class ModifyAccountBusinessAddressRequest { * Required */ public BusinessAddressInfo businessAddress; + /** + * Custom site name + */ + public String mainSiteName; public ModifyAccountBusinessAddressRequest company(String company) { this.company = company; @@ -31,4 +35,9 @@ public ModifyAccountBusinessAddressRequest businessAddress(BusinessAddressInfo b return this; } + public ModifyAccountBusinessAddressRequest mainSiteName(String mainSiteName) { + this.mainSiteName = mainSiteName; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/NoteCreatorInfo.java b/src/main/java/com/ringcentral/definitions/NoteCreatorInfo.java new file mode 100644 index 00000000..bc7dcb4a --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/NoteCreatorInfo.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +public class NoteCreatorInfo { + /** + * Internal identifier of the user who created the note + */ + public String id; + + public NoteCreatorInfo id(String id) { + this.id = id; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/NotificationDeliveryMode.java b/src/main/java/com/ringcentral/definitions/NotificationDeliveryMode.java index a43b0753..70e9d470 100644 --- a/src/main/java/com/ringcentral/definitions/NotificationDeliveryMode.java +++ b/src/main/java/com/ringcentral/definitions/NotificationDeliveryMode.java @@ -2,11 +2,6 @@ public class NotificationDeliveryMode { - /** - * Notifications transportation provider name - * Enum: PubNub, RC/APNS - */ - public String transportType; /** * Optional parameter. Specifies if the message will be encrypted or not */ @@ -31,11 +26,19 @@ public class NotificationDeliveryMode { * Key for notification message decryption (for PubNub transport type only) */ public String encryptionKey; - - public NotificationDeliveryMode transportType(String transportType) { - this.transportType = transportType; - return this; - } + /** + * Notifications transportation provider name + * Enum: PubNub, WebHook, RC/APNS, RC/GCM + */ + public String transportType; + /** + * Name of a certificate. Supported for 'RC/APNS' and 'RC/GCM' transport types + */ + public String certificateName; + /** + * Identifier of a registration. Supported for 'RC/APNS' and 'RC/GCM' transport types + */ + public String registrationId; public NotificationDeliveryMode encryption(Boolean encryption) { this.encryption = encryption; @@ -67,4 +70,19 @@ public NotificationDeliveryMode encryptionKey(String encryptionKey) { return this; } + public NotificationDeliveryMode transportType(String transportType) { + this.transportType = transportType; + return this; + } + + public NotificationDeliveryMode certificateName(String certificateName) { + this.certificateName = certificateName; + return this; + } + + public NotificationDeliveryMode registrationId(String registrationId) { + this.registrationId = registrationId; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/NotificationDeliveryModeRequest.java b/src/main/java/com/ringcentral/definitions/NotificationDeliveryModeRequest.java index b10fb3a2..199322e1 100644 --- a/src/main/java/com/ringcentral/definitions/NotificationDeliveryModeRequest.java +++ b/src/main/java/com/ringcentral/definitions/NotificationDeliveryModeRequest.java @@ -16,15 +16,15 @@ public class NotificationDeliveryModeRequest { */ public Boolean encryption; /** - * For 'RC/APNS' and 'RC/GCM' transport types. Name of a certificate + * Name of a certificate. Supported for 'RC/APNS' and 'RC/GCM' transport types */ public String certificateName; /** - * For 'RC/APNS' and 'RC/GCM' transport types. Identifier of a registration + * Identifier of a registration. Supported for 'RC/APNS' and 'RC/GCM' transport types */ public String registrationId; /** - * For 'Webhook' transport type. Subscription verification key ensuring data security + * Verification key of a subscription ensuring data security. Supported for 'Webhook' transport type */ public String verificationToken; diff --git a/src/main/java/com/ringcentral/definitions/OriginInfo.java b/src/main/java/com/ringcentral/definitions/OriginInfo.java index ba744d32..cbe47dc2 100644 --- a/src/main/java/com/ringcentral/definitions/OriginInfo.java +++ b/src/main/java/com/ringcentral/definitions/OriginInfo.java @@ -4,7 +4,7 @@ public class OriginInfo { /** * Session origin type - * Enum: RingOut, RingMe, Conference, GreetingRecording, VerificartionCall, Call + * Enum: Call, RingOut, RingMe, Conference, GreetingsRecording, VerificationCall, Zoom, CallOut */ public String type; diff --git a/src/main/java/com/ringcentral/definitions/OwnerInfo.java b/src/main/java/com/ringcentral/definitions/OwnerInfo.java index 0eb3095a..09a1eb0e 100644 --- a/src/main/java/com/ringcentral/definitions/OwnerInfo.java +++ b/src/main/java/com/ringcentral/definitions/OwnerInfo.java @@ -3,11 +3,11 @@ public class OwnerInfo { /** - * Internal identifier of an account + * Internal identifier of an account that monitors a call */ public String accountId; /** - * Internal identifier of an extension + * Internal identifier of an extension that monitors a call */ public String extensionId; diff --git a/src/main/java/com/ringcentral/definitions/PagerCallerInfoRequest.java b/src/main/java/com/ringcentral/definitions/PagerCallerInfoRequest.java index 19904714..ac7678b7 100644 --- a/src/main/java/com/ringcentral/definitions/PagerCallerInfoRequest.java +++ b/src/main/java/com/ringcentral/definitions/PagerCallerInfoRequest.java @@ -4,13 +4,21 @@ public class PagerCallerInfoRequest { /** * Extension identifier - * Required */ public String extensionId; + /** + * Extension number + */ + public String extensionNumber; public PagerCallerInfoRequest extensionId(String extensionId) { this.extensionId = extensionId; return this; } + public PagerCallerInfoRequest extensionNumber(String extensionNumber) { + this.extensionNumber = extensionNumber; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/PagingOnlyGroupDevices.java b/src/main/java/com/ringcentral/definitions/PagingOnlyGroupDevices.java index b3d35a53..2aa2458c 100644 --- a/src/main/java/com/ringcentral/definitions/PagingOnlyGroupDevices.java +++ b/src/main/java/com/ringcentral/definitions/PagingOnlyGroupDevices.java @@ -2,6 +2,10 @@ public class PagingOnlyGroupDevices { + /** + * Link to the list of devices assigned to the paging only group + */ + public String uri; /** * List of paging devices assigned to this group */ @@ -15,6 +19,11 @@ public class PagingOnlyGroupDevices { */ public ProvisioningPagingInfo paging; + public PagingOnlyGroupDevices uri(String uri) { + this.uri = uri; + return this; + } + public PagingOnlyGroupDevices records(PagingDeviceInfo[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/PagingOnlyGroupUsers.java b/src/main/java/com/ringcentral/definitions/PagingOnlyGroupUsers.java index bf465b8f..59357d6d 100644 --- a/src/main/java/com/ringcentral/definitions/PagingOnlyGroupUsers.java +++ b/src/main/java/com/ringcentral/definitions/PagingOnlyGroupUsers.java @@ -3,7 +3,11 @@ public class PagingOnlyGroupUsers { /** - * List of users allowed to page this group + * Link to the list of users allowed to page the Paging Only group + */ + public String uri; + /** + * List of users allowed to page the Paging Only group */ public PagingGroupExtensionInfo[] records; /** @@ -15,6 +19,11 @@ public class PagingOnlyGroupUsers { */ public ProvisioningPagingInfo paging; + public PagingOnlyGroupUsers uri(String uri) { + this.uri = uri; + return this; + } + public PagingOnlyGroupUsers records(PagingGroupExtensionInfo[] records) { this.records = records; return this; diff --git a/src/main/java/com/ringcentral/definitions/ParamsInfo.java b/src/main/java/com/ringcentral/definitions/ParamsInfo.java new file mode 100644 index 00000000..62958007 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ParamsInfo.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class ParamsInfo { + /** + * Parameter name + */ + public String name; + /** + * Parameter value + */ + public String value; + + public ParamsInfo name(String name) { + this.name = name; + return this; + } + + public ParamsInfo value(String value) { + this.value = value; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/PartySuperviseRequest.java b/src/main/java/com/ringcentral/definitions/PartySuperviseRequest.java new file mode 100644 index 00000000..972177c6 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/PartySuperviseRequest.java @@ -0,0 +1,37 @@ +package com.ringcentral.definitions; + + +public class PartySuperviseRequest { + /** + * Supervising mode + * Required + * Enum: Listen + */ + public String mode; + /** + * Internal identifier of a supervisor's device + * Required + */ + public String supervisorDeviceId; + /** + * Mailbox ID of a user that will be monitored + * Required + */ + public String agentExtensionId; + + public PartySuperviseRequest mode(String mode) { + this.mode = mode; + return this; + } + + public PartySuperviseRequest supervisorDeviceId(String supervisorDeviceId) { + this.supervisorDeviceId = supervisorDeviceId; + return this; + } + + public PartySuperviseRequest agentExtensionId(String agentExtensionId) { + this.agentExtensionId = agentExtensionId; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/PartySuperviseResponse.java b/src/main/java/com/ringcentral/definitions/PartySuperviseResponse.java new file mode 100644 index 00000000..688d01a7 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/PartySuperviseResponse.java @@ -0,0 +1,97 @@ +package com.ringcentral.definitions; + + +public class PartySuperviseResponse { + /** + * Information about a call party that monitors a call + */ + public PartyInfo from; + /** + * Information about a call party that is monitored + */ + public PartyInfo to; + /** + * Direction of a call + * Enum: Outbound, Inbound + */ + public String direction; + /** + * Internal identifier of a party that monitors a call + */ + public String id; + /** + * Internal identifier of an account that monitors a call + */ + public String accountId; + /** + * Internal identifier of an extension that monitors a call + */ + public String extensionId; + /** + * Specifies if a call party is muted + */ + public Boolean muted; + /** + * + */ + public OwnerInfo owner; + /** + * Specifies if a device is stand-alone + */ + public Boolean standAlone; + /** + * + */ + public CallStatusInfo status; + + public PartySuperviseResponse from(PartyInfo from) { + this.from = from; + return this; + } + + public PartySuperviseResponse to(PartyInfo to) { + this.to = to; + return this; + } + + public PartySuperviseResponse direction(String direction) { + this.direction = direction; + return this; + } + + public PartySuperviseResponse id(String id) { + this.id = id; + return this; + } + + public PartySuperviseResponse accountId(String accountId) { + this.accountId = accountId; + return this; + } + + public PartySuperviseResponse extensionId(String extensionId) { + this.extensionId = extensionId; + return this; + } + + public PartySuperviseResponse muted(Boolean muted) { + this.muted = muted; + return this; + } + + public PartySuperviseResponse owner(OwnerInfo owner) { + this.owner = owner; + return this; + } + + public PartySuperviseResponse standAlone(Boolean standAlone) { + this.standAlone = standAlone; + return this; + } + + public PartySuperviseResponse status(CallStatusInfo status) { + this.status = status; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/PermissionIdResource.java b/src/main/java/com/ringcentral/definitions/PermissionIdResource.java index 3653f9b2..b43a0c3d 100644 --- a/src/main/java/com/ringcentral/definitions/PermissionIdResource.java +++ b/src/main/java/com/ringcentral/definitions/PermissionIdResource.java @@ -15,6 +15,14 @@ public class PermissionIdResource { * Enum: Compatible, Incompatible, Independent */ public String siteCompatible; + /** + * Specifies if the permission is editable on UI (if set to 'True') or not (if set to 'False') + */ + public Boolean readOnly; + /** + * Specifies if the permission can be assigned by the account administrator + */ + public Boolean assignable; public PermissionIdResource uri(String uri) { this.uri = uri; @@ -31,4 +39,14 @@ public PermissionIdResource siteCompatible(String siteCompatible) { return this; } + public PermissionIdResource readOnly(Boolean readOnly) { + this.readOnly = readOnly; + return this; + } + + public PermissionIdResource assignable(Boolean assignable) { + this.assignable = assignable; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/PhoneLinesInfo.java b/src/main/java/com/ringcentral/definitions/PhoneLinesInfo.java index 9eb3a0df..9619d017 100644 --- a/src/main/java/com/ringcentral/definitions/PhoneLinesInfo.java +++ b/src/main/java/com/ringcentral/definitions/PhoneLinesInfo.java @@ -2,6 +2,10 @@ public class PhoneLinesInfo { + /** + * Internal identifier of a phone line + */ + public String id; /** * Type of phone line * Enum: Standalone, StandaloneFree, BlaPrimary, BlaSecondary @@ -11,6 +15,15 @@ public class PhoneLinesInfo { * Phone number information */ public PhoneNumberInfoIntId phoneInfo; + /** + * + */ + public EmergencyAddress emergencyAddress; + + public PhoneLinesInfo id(String id) { + this.id = id; + return this; + } public PhoneLinesInfo lineType(String lineType) { this.lineType = lineType; @@ -22,4 +35,9 @@ public PhoneLinesInfo phoneInfo(PhoneNumberInfoIntId phoneInfo) { return this; } + public PhoneLinesInfo emergencyAddress(EmergencyAddress emergencyAddress) { + this.emergencyAddress = emergencyAddress; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/PlayResource.java b/src/main/java/com/ringcentral/definitions/PlayResource.java deleted file mode 100644 index f26a83f4..00000000 --- a/src/main/java/com/ringcentral/definitions/PlayResource.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.ringcentral.definitions; - - -public class PlayResource { - /** - * Absolute path to media resource. - */ - public String uri; - /** - * Absolute path to custom greeting. - */ - public String custom; - /** - * - */ - public Object system; - - public PlayResource uri(String uri) { - this.uri = uri; - return this; - } - - public PlayResource custom(String custom) { - this.custom = custom; - return this; - } - - public PlayResource system(Object system) { - this.system = system; - return this; - } - -} diff --git a/src/main/java/com/ringcentral/definitions/PlayTarget.java b/src/main/java/com/ringcentral/definitions/PlayTarget.java deleted file mode 100644 index 97048311..00000000 --- a/src/main/java/com/ringcentral/definitions/PlayTarget.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.ringcentral.definitions; - - -public class PlayTarget { - /** - * Required - */ - public PlayResource[] resources; - /** - * Determines command termination condition: specified milliseconds passed since command start. - * Required - */ - public String onResult; - /** - * interrupt or not play media by DTMF. - * Default: true - */ - public Boolean interruptByDtmf; - /** - * Controls if file playing can be repeated until stop or interrupt. 0 is for infinite. - * Default: 1 - */ - public Long repeatCount; - - public PlayTarget resources(PlayResource[] resources) { - this.resources = resources; - return this; - } - - public PlayTarget onResult(String onResult) { - this.onResult = onResult; - return this; - } - - public PlayTarget interruptByDtmf(Boolean interruptByDtmf) { - this.interruptByDtmf = interruptByDtmf; - return this; - } - - public PlayTarget repeatCount(Long repeatCount) { - this.repeatCount = repeatCount; - return this; - } - -} diff --git a/src/main/java/com/ringcentral/definitions/PrivateIpRangeInfoRequest.java b/src/main/java/com/ringcentral/definitions/PrivateIpRangeInfoRequest.java new file mode 100644 index 00000000..8786472e --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/PrivateIpRangeInfoRequest.java @@ -0,0 +1,60 @@ +package com.ringcentral.definitions; + + +public class PrivateIpRangeInfoRequest { + /** + * + */ + public String id; + /** + * + */ + public String startIp; + /** + * + */ + public String endIp; + /** + * Network name + */ + public String name; + /** + * Emergency address information. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned + */ + public LocationUpdatesEmergencyAddressInfoRequest emergencyAddress; + /** + * Emergency response location (address) internal identifier. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned + */ + public String emergencyLocationId; + + public PrivateIpRangeInfoRequest id(String id) { + this.id = id; + return this; + } + + public PrivateIpRangeInfoRequest startIp(String startIp) { + this.startIp = startIp; + return this; + } + + public PrivateIpRangeInfoRequest endIp(String endIp) { + this.endIp = endIp; + return this; + } + + public PrivateIpRangeInfoRequest name(String name) { + this.name = name; + return this; + } + + public PrivateIpRangeInfoRequest emergencyAddress(LocationUpdatesEmergencyAddressInfoRequest emergencyAddress) { + this.emergencyAddress = emergencyAddress; + return this; + } + + public PrivateIpRangeInfoRequest emergencyLocationId(String emergencyLocationId) { + this.emergencyLocationId = emergencyLocationId; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/PronouncedNameInfo.java b/src/main/java/com/ringcentral/definitions/PronouncedNameInfo.java index fdabbf4a..2b414994 100644 --- a/src/main/java/com/ringcentral/definitions/PronouncedNameInfo.java +++ b/src/main/java/com/ringcentral/definitions/PronouncedNameInfo.java @@ -11,6 +11,10 @@ public class PronouncedNameInfo { * Custom text */ public String text; + /** + * + */ + public PronouncedNamePromptInfo prompt; public PronouncedNameInfo type(String type) { this.type = type; @@ -22,4 +26,9 @@ public PronouncedNameInfo text(String text) { return this; } + public PronouncedNameInfo prompt(PronouncedNamePromptInfo prompt) { + this.prompt = prompt; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/PronouncedNamePromptInfo.java b/src/main/java/com/ringcentral/definitions/PronouncedNamePromptInfo.java new file mode 100644 index 00000000..0ac57b14 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/PronouncedNamePromptInfo.java @@ -0,0 +1,15 @@ +package com.ringcentral.definitions; + + +public class PronouncedNamePromptInfo { + /** + * + */ + public String id; + + public PronouncedNamePromptInfo id(String id) { + this.id = id; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ReadCompanyCallLogParameters.java b/src/main/java/com/ringcentral/definitions/ReadCompanyCallLogParameters.java index aea6630a..2bd97ffc 100644 --- a/src/main/java/com/ringcentral/definitions/ReadCompanyCallLogParameters.java +++ b/src/main/java/com/ringcentral/definitions/ReadCompanyCallLogParameters.java @@ -34,11 +34,11 @@ public class ReadCompanyCallLogParameters { */ public String recordingType; /** - * The start datetime for resulting records in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is dateTo minus 24 hours + * The start datetime for resulting records in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is dateTo minus 24 hours */ public String dateFrom; /** - * The end datetime for resulting records in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is current time + * The end datetime for resulting records in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is current time */ public String dateTo; /** @@ -52,7 +52,7 @@ public class ReadCompanyCallLogParameters { */ public Long perPage; /** - * Internal identifier of a session + * Internal identifier of a call session */ public String sessionId; diff --git a/src/main/java/com/ringcentral/definitions/ReadUserCallLogParameters.java b/src/main/java/com/ringcentral/definitions/ReadUserCallLogParameters.java index a20f9652..0640b7a9 100644 --- a/src/main/java/com/ringcentral/definitions/ReadUserCallLogParameters.java +++ b/src/main/java/com/ringcentral/definitions/ReadUserCallLogParameters.java @@ -47,11 +47,11 @@ public class ReadUserCallLogParameters { */ public String recordingType; /** - * The end datetime for resulting records in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is current time + * The end datetime for resulting records in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is current time */ public String dateTo; /** - * The start datetime for resulting records in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is dateTo minus 24 hours + * The start datetime for resulting records in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is dateTo minus 24 hours */ public String dateFrom; /** diff --git a/src/main/java/com/ringcentral/definitions/ReadUserFeaturesParameters.java b/src/main/java/com/ringcentral/definitions/ReadUserFeaturesParameters.java new file mode 100644 index 00000000..c8bb540d --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ReadUserFeaturesParameters.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class ReadUserFeaturesParameters { + /** + * + */ + public Boolean availableOnly; + /** + * + */ + public String[] featureId; + + public ReadUserFeaturesParameters availableOnly(Boolean availableOnly) { + this.availableOnly = availableOnly; + return this; + } + + public ReadUserFeaturesParameters featureId(String[] featureId) { + this.featureId = featureId; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ReasonInfo.java b/src/main/java/com/ringcentral/definitions/ReasonInfo.java new file mode 100644 index 00000000..77da33fc --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ReasonInfo.java @@ -0,0 +1,25 @@ +package com.ringcentral.definitions; + + +public class ReasonInfo { + /** + * Reason code + * Enum: ServicePlanLimitation, AccountLimitation, ExtensionTypeLimitation, ExtensionLimitation, InsufficientPermissions, ConfigurationLimitation + */ + public String code; + /** + * Reason description + */ + public String message; + + public ReasonInfo code(String code) { + this.code = code; + return this; + } + + public ReasonInfo message(String message) { + this.message = message; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ReplyParty.java b/src/main/java/com/ringcentral/definitions/ReplyParty.java new file mode 100644 index 00000000..55621650 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ReplyParty.java @@ -0,0 +1,88 @@ +package com.ringcentral.definitions; + + +public class ReplyParty { + /** + * Internal identifier of a party + */ + public String id; + /** + * Status data of a call session + */ + public CallStatusInfo status; + /** + * Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces + */ + public Boolean muted; + /** + * If 'True' then the party is not connected to a session voice conference, 'False' means the party is connected to other parties in a session + */ + public Boolean standAlone; + /** + * Call park information + */ + public ParkInfo park; + /** + * Data on a calling party + */ + public PartyInfo from; + /** + * Data on a called party + */ + public PartyInfo to; + /** + * Data on a call owner + */ + public OwnerInfo owner; + /** + * Direction of a call + * Enum: Inbound, Outbound + */ + public String direction; + + public ReplyParty id(String id) { + this.id = id; + return this; + } + + public ReplyParty status(CallStatusInfo status) { + this.status = status; + return this; + } + + public ReplyParty muted(Boolean muted) { + this.muted = muted; + return this; + } + + public ReplyParty standAlone(Boolean standAlone) { + this.standAlone = standAlone; + return this; + } + + public ReplyParty park(ParkInfo park) { + this.park = park; + return this; + } + + public ReplyParty from(PartyInfo from) { + this.from = from; + return this; + } + + public ReplyParty to(PartyInfo to) { + this.to = to; + return this; + } + + public ReplyParty owner(OwnerInfo owner) { + this.owner = owner; + return this; + } + + public ReplyParty direction(String direction) { + this.direction = direction; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ReplyWithPattern.java b/src/main/java/com/ringcentral/definitions/ReplyWithPattern.java new file mode 100644 index 00000000..94d44670 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/ReplyWithPattern.java @@ -0,0 +1,35 @@ +package com.ringcentral.definitions; + + +public class ReplyWithPattern { + /** + * Predefined reply pattern name. + * Enum: WillCallYouBack, CallMeBack, OnMyWay, OnTheOtherLine, WillCallYouBackLater, CallMeBackLater, InAMeeting, OnTheOtherLineNoCall + */ + public String pattern; + /** + * Number of time units. Applicable only to WillCallYouBack, CallMeBack patterns. + */ + public Long time; + /** + * Time unit name. + * Enum: Minute, Hour, Day + */ + public String timeUnit; + + public ReplyWithPattern pattern(String pattern) { + this.pattern = pattern; + return this; + } + + public ReplyWithPattern time(Long time) { + this.time = time; + return this; + } + + public ReplyWithPattern timeUnit(String timeUnit) { + this.timeUnit = timeUnit; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/SIPFlagsResponse.java b/src/main/java/com/ringcentral/definitions/SIPFlagsResponse.java index 6e9290b1..a1b2dbc5 100644 --- a/src/main/java/com/ringcentral/definitions/SIPFlagsResponse.java +++ b/src/main/java/com/ringcentral/definitions/SIPFlagsResponse.java @@ -17,6 +17,22 @@ public class SIPFlagsResponse { * Enum: True, False */ public String outboundCallsEnabled; + /** + * + */ + public Boolean dscpEnabled; + /** + * + */ + public Long dscpSignaling; + /** + * + */ + public Long dscpVoice; + /** + * + */ + public Long dscpVideo; public SIPFlagsResponse voipFeatureEnabled(String voipFeatureEnabled) { this.voipFeatureEnabled = voipFeatureEnabled; @@ -33,4 +49,24 @@ public SIPFlagsResponse outboundCallsEnabled(String outboundCallsEnabled) { return this; } + public SIPFlagsResponse dscpEnabled(Boolean dscpEnabled) { + this.dscpEnabled = dscpEnabled; + return this; + } + + public SIPFlagsResponse dscpSignaling(Long dscpSignaling) { + this.dscpSignaling = dscpSignaling; + return this; + } + + public SIPFlagsResponse dscpVoice(Long dscpVoice) { + this.dscpVoice = dscpVoice; + return this; + } + + public SIPFlagsResponse dscpVideo(Long dscpVideo) { + this.dscpVideo = dscpVideo; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/ServiceFeatureInfo.java b/src/main/java/com/ringcentral/definitions/ServiceFeatureInfo.java index 0ccd3f6c..9f16e2ef 100644 --- a/src/main/java/com/ringcentral/definitions/ServiceFeatureInfo.java +++ b/src/main/java/com/ringcentral/definitions/ServiceFeatureInfo.java @@ -4,7 +4,7 @@ public class ServiceFeatureInfo { /** * Feature name - * Enum: AccountFederation, Archiver, AutomaticCallRecordingMute, AutomaticInboundCallRecording, AutomaticOutboundCallRecording, BlockedMessageForwarding, Calendar, CallerIdControl, CallForwarding, CallPark, CallParkLocations, CallSupervision, CallSwitch, CallQualitySurvey, Conferencing, ConfigureDelegates, DeveloperPortal, DND, DynamicConference, EmergencyAddressAutoUpdate, EmergencyCalling, EncryptionAtRest, ExternalDirectoryIntegration, Fax, FaxReceiving, FreeSoftPhoneLines, HDVoice, HipaaCompliance, Intercom, InternationalCalling, InternationalSMS, LinkedSoftphoneLines, MMS, OnDemandCallRecording, Pager, PagerReceiving, Paging, PasswordAuth, PromoMessage, Reports, Presence, RCTeams, RingOut, SalesForce, SharedLines, SingleExtensionUI, SiteCodes, SMS, SMSReceiving, SoftPhoneUpdate, TelephonySessions, UserManagement, VideoConferencing, VoipCalling, VoipCallingOnMobile, Voicemail, VoicemailToText, WebPhone + * Enum: AccountFederation, Archiver, AutomaticCallRecordingMute, AutomaticInboundCallRecording, AutomaticOutboundCallRecording, BlockedMessageForwarding, Calendar, CallerIdControl, CallForwarding, CallPark, CallParkLocations, CallSupervision, CallSwitch, CallQualitySurvey, Conferencing, ConferencingNumber, ConfigureDelegates, DeveloperPortal, DND, DynamicConference, EmergencyAddressAutoUpdate, EmergencyCalling, EncryptionAtRest, ExternalDirectoryIntegration, Fax, FaxReceiving, FreeSoftPhoneLines, HDVoice, HipaaCompliance, Intercom, InternationalCalling, InternationalSMS, LinkedSoftphoneLines, MMS, MobileVoipEmergencyCalling, OnDemandCallRecording, Pager, PagerReceiving, Paging, PasswordAuth, PromoMessage, Reports, Presence, RCTeams, RingOut, SalesForce, SharedLines, SingleExtensionUI, SiteCodes, SMS, SMSReceiving, SoftPhoneUpdate, TelephonySessions, UserManagement, VideoConferencing, VoipCalling, VoipCallingOnMobile, Voicemail, VoicemailToText, WebPhone */ public String featureName; /** diff --git a/src/main/java/com/ringcentral/definitions/Shipping.java b/src/main/java/com/ringcentral/definitions/Shipping.java new file mode 100644 index 00000000..afbcf724 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/Shipping.java @@ -0,0 +1,51 @@ +package com.ringcentral.definitions; + + +public class Shipping { + /** + * + */ + public DeviceEmergencyServiceAddressResource address; + /** + * + */ + public MethodResource method; + /** + * + */ + public String status; + /** + * + */ + public String carrier; + /** + * + */ + public String trackingNumber; + + public Shipping address(DeviceEmergencyServiceAddressResource address) { + this.address = address; + return this; + } + + public Shipping method(MethodResource method) { + this.method = method; + return this; + } + + public Shipping status(String status) { + this.status = status; + return this; + } + + public Shipping carrier(String carrier) { + this.carrier = carrier; + return this; + } + + public Shipping trackingNumber(String trackingNumber) { + this.trackingNumber = trackingNumber; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/ShippingAddressInfo.java b/src/main/java/com/ringcentral/definitions/ShippingAddressInfo.java index 6f6fe20d..ce203d29 100644 --- a/src/main/java/com/ringcentral/definitions/ShippingAddressInfo.java +++ b/src/main/java/com/ringcentral/definitions/ShippingAddressInfo.java @@ -3,9 +3,29 @@ public class ShippingAddressInfo { /** - * Name of a receiver + * Name of a primary contact person (receiver) */ public String customerName; + /** + * Name of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia. + */ + public String additionalCustomerName; + /** + * Email of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia. + */ + public String customerEmail; + /** + * Email of an additional contact person. Should be specified for countries except the US, Canada, the UK and Australia. + */ + public String additionalCustomerEmail; + /** + * Phone number of a primary contact person (receiver). Should be specified for countries except the US, Canada, the UK and Australia + */ + public String customerPhone; + /** + * Phone number of an additional contact person. Should be specified for countries except the US, Canada, the UK & Australia. + */ + public String additionalCustomerPhone; /** * Street address, line 1 - street address, P.O. box, company name, c/o */ @@ -54,12 +74,41 @@ public class ShippingAddressInfo { * Zip code */ public String zip; + /** + * National taxpayer identification number. Should be specified for Brazil (CNPJ/CPF number) and Argentina (CUIT number). + */ + public String taxId; public ShippingAddressInfo customerName(String customerName) { this.customerName = customerName; return this; } + public ShippingAddressInfo additionalCustomerName(String additionalCustomerName) { + this.additionalCustomerName = additionalCustomerName; + return this; + } + + public ShippingAddressInfo customerEmail(String customerEmail) { + this.customerEmail = customerEmail; + return this; + } + + public ShippingAddressInfo additionalCustomerEmail(String additionalCustomerEmail) { + this.additionalCustomerEmail = additionalCustomerEmail; + return this; + } + + public ShippingAddressInfo customerPhone(String customerPhone) { + this.customerPhone = customerPhone; + return this; + } + + public ShippingAddressInfo additionalCustomerPhone(String additionalCustomerPhone) { + this.additionalCustomerPhone = additionalCustomerPhone; + return this; + } + public ShippingAddressInfo street(String street) { this.street = street; return this; @@ -120,4 +169,9 @@ public ShippingAddressInfo zip(String zip) { return this; } + public ShippingAddressInfo taxId(String taxId) { + this.taxId = taxId; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/ShippingInfo.java b/src/main/java/com/ringcentral/definitions/ShippingInfo.java index b0e80593..259d4fdb 100644 --- a/src/main/java/com/ringcentral/definitions/ShippingInfo.java +++ b/src/main/java/com/ringcentral/definitions/ShippingInfo.java @@ -4,7 +4,7 @@ public class ShippingInfo { /** * Shipping status of the order item. It is set to 'Initial' when the order is submitted. Then it is changed to 'Accepted' when a distributor starts processing the order. Finally it is changed to Shipped which means that distributor has shipped the device. - * Enum: Initial, Accepted, Shipped + * Enum: Initial, Accepted, Shipped, Won't ship */ public String status; /** diff --git a/src/main/java/com/ringcentral/definitions/ShippingResource.java b/src/main/java/com/ringcentral/definitions/ShippingResource.java index 1ee2616b..e05fba06 100644 --- a/src/main/java/com/ringcentral/definitions/ShippingResource.java +++ b/src/main/java/com/ringcentral/definitions/ShippingResource.java @@ -5,7 +5,7 @@ public class ShippingResource { /** * */ - public EmergencyServiceAddressResource address; + public ShippingAddressInfo address; /** * */ @@ -23,7 +23,7 @@ public class ShippingResource { */ public String trackingNumber; - public ShippingResource address(EmergencyServiceAddressResource address) { + public ShippingResource address(ShippingAddressInfo address) { this.address = address; return this; } diff --git a/src/main/java/com/ringcentral/definitions/SipRegistrationDeviceInfo.java b/src/main/java/com/ringcentral/definitions/SipRegistrationDeviceInfo.java new file mode 100644 index 00000000..333ce32e --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/SipRegistrationDeviceInfo.java @@ -0,0 +1,179 @@ +package com.ringcentral.definitions; + + +public class SipRegistrationDeviceInfo { + /** + * Link to a device resource + */ + public String uri; + /** + * Internal identifier of a Device + */ + public String id; + /** + * Device type + * Enum: HardPhone, SoftPhone, OtherPhone, Paging, WebPhone + */ + public String type; + /** + * Device identification number (stock keeping unit) in the format TP-ID [-AT-AC], where TP is device type (HP for RC HardPhone, DV for all other devices including softphone); ID - device model ID; AT -addon type ID; AC - addon count (if any). For example 'HP-56-2-2' + */ + public String sku; + /** + * Enum: Online, Offline + */ + public String status; + /** + * Device name. Mandatory if ordering SoftPhone or OtherPhone. Optional for HardPhone. If not specified for HardPhone, then device model name is used as device name + */ + public String name; + /** + * Serial number for HardPhone (is returned only when the phone is shipped and provisioned); endpoint_id for softphone and mobile applications + */ + public String serial; + /** + * PC name for softphone + */ + public String computerName; + /** + * HardPhone model information + */ + public DeviceModelInfo model; + /** + * Internal identifier of an extension the device should be assigned to + */ + public DeviceExtensionInfo extension; + /** + * Address for emergency cases. The same emergency address is assigned to all the numbers of one device + */ + public DeviceEmergencyServiceAddressResource emergencyServiceAddress; + /** + * Shipping information, according to which devices (in case of HardPhone ) or e911 stickers (in case of SoftPhone and OtherPhone ) will be delivered to the customer + */ + public Shipping shipping; + /** + * Phone lines information + */ + public DevicePhoneLinesInfo[] phoneLines; + /** + * Box billing identifier of a device. Applicable only for HardPhones. It is an alternative way to identify the device to be ordered. EitherT? model structure, or boxBillingId must be specified forT?HardPhone + */ + public Long boxBillingId; + /** + * Supported only for devices assigned to Limited extensions. If true, enables users to log in to this phone as a common phone. + */ + public Boolean useAsCommonPhone; + /** + * Pooling type of a deviceHost - device with standalone paid phone line which can be linked to Glip/Softphone instanceGuest - device with a linked phone lineNone - device without a phone line or with specific line (free, BLA, etc.) = ['Host', 'Guest', 'None'] + * Enum: Host, Guest, None + */ + public String linePooling; + /** + * Network location status. 'True' if the device is located in the configured corporate network (On-Net); 'False' for Off-Net location. Parameter is not returned if `EmergencyAddressAutoUpdate` feature is not enabled for the account/user, or if device network location is not determined + */ + public Boolean inCompanyNet; + /** + * Site data + */ + public DeviceSiteInfo site; + /** + * Datetime of receiving last location report in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z + */ + public String lastLocationReportTime; + + public SipRegistrationDeviceInfo uri(String uri) { + this.uri = uri; + return this; + } + + public SipRegistrationDeviceInfo id(String id) { + this.id = id; + return this; + } + + public SipRegistrationDeviceInfo type(String type) { + this.type = type; + return this; + } + + public SipRegistrationDeviceInfo sku(String sku) { + this.sku = sku; + return this; + } + + public SipRegistrationDeviceInfo status(String status) { + this.status = status; + return this; + } + + public SipRegistrationDeviceInfo name(String name) { + this.name = name; + return this; + } + + public SipRegistrationDeviceInfo serial(String serial) { + this.serial = serial; + return this; + } + + public SipRegistrationDeviceInfo computerName(String computerName) { + this.computerName = computerName; + return this; + } + + public SipRegistrationDeviceInfo model(DeviceModelInfo model) { + this.model = model; + return this; + } + + public SipRegistrationDeviceInfo extension(DeviceExtensionInfo extension) { + this.extension = extension; + return this; + } + + public SipRegistrationDeviceInfo emergencyServiceAddress(DeviceEmergencyServiceAddressResource emergencyServiceAddress) { + this.emergencyServiceAddress = emergencyServiceAddress; + return this; + } + + public SipRegistrationDeviceInfo shipping(Shipping shipping) { + this.shipping = shipping; + return this; + } + + public SipRegistrationDeviceInfo phoneLines(DevicePhoneLinesInfo[] phoneLines) { + this.phoneLines = phoneLines; + return this; + } + + public SipRegistrationDeviceInfo boxBillingId(Long boxBillingId) { + this.boxBillingId = boxBillingId; + return this; + } + + public SipRegistrationDeviceInfo useAsCommonPhone(Boolean useAsCommonPhone) { + this.useAsCommonPhone = useAsCommonPhone; + return this; + } + + public SipRegistrationDeviceInfo linePooling(String linePooling) { + this.linePooling = linePooling; + return this; + } + + public SipRegistrationDeviceInfo inCompanyNet(Boolean inCompanyNet) { + this.inCompanyNet = inCompanyNet; + return this; + } + + public SipRegistrationDeviceInfo site(DeviceSiteInfo site) { + this.site = site; + return this; + } + + public SipRegistrationDeviceInfo lastLocationReportTime(String lastLocationReportTime) { + this.lastLocationReportTime = lastLocationReportTime; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/SubscriptionInfo.java b/src/main/java/com/ringcentral/definitions/SubscriptionInfo.java index a14daa4d..bf71fdc7 100644 --- a/src/main/java/com/ringcentral/definitions/SubscriptionInfo.java +++ b/src/main/java/com/ringcentral/definitions/SubscriptionInfo.java @@ -45,6 +45,19 @@ public class SubscriptionInfo { * */ public NotificationBlacklistedData blacklistedData; + /** + * Notifications transportation provider name + * Enum: PubNub, WebHook, RC/APNS, RC/GCM + */ + public String transportType; + /** + * Name of a certificate. Supported for 'RC/APNS' and 'RC/GCM' transport types + */ + public String certificateName; + /** + * Identifier of a registration. Supported for 'RC/APNS' and 'RC/GCM' transport types + */ + public String registrationId; public SubscriptionInfo id(String id) { this.id = id; @@ -96,4 +109,19 @@ public SubscriptionInfo blacklistedData(NotificationBlacklistedData blacklistedD return this; } + public SubscriptionInfo transportType(String transportType) { + this.transportType = transportType; + return this; + } + + public SubscriptionInfo certificateName(String certificateName) { + this.certificateName = certificateName; + return this; + } + + public SubscriptionInfo registrationId(String registrationId) { + this.registrationId = registrationId; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/SuperviseCallSession.java b/src/main/java/com/ringcentral/definitions/SuperviseCallSession.java index 9faf5049..d8767b95 100644 --- a/src/main/java/com/ringcentral/definitions/SuperviseCallSession.java +++ b/src/main/java/com/ringcentral/definitions/SuperviseCallSession.java @@ -19,6 +19,14 @@ public class SuperviseCallSession { * Internal identifier of a party that monitors a call */ public String id; + /** + * Internal identifier of an account that monitors a call + */ + public String accountId; + /** + * Internal identifier of an extension that monitors a call + */ + public String extensionId; /** * Specifies if a call participant is muted or not. **Note:** If a call is also controlled via Hard phone or RingCentral App (not only through the API by calling call control methods) then it cannot be fully muted/unmuted via API only, in this case the action should be duplicated via Hard phone/RC App interfaces */ @@ -56,6 +64,16 @@ public SuperviseCallSession id(String id) { return this; } + public SuperviseCallSession accountId(String accountId) { + this.accountId = accountId; + return this; + } + + public SuperviseCallSession extensionId(String extensionId) { + this.extensionId = extensionId; + return this; + } + public SuperviseCallSession muted(Boolean muted) { this.muted = muted; return this; diff --git a/src/main/java/com/ringcentral/definitions/SyncAccountCallLogParameters.java b/src/main/java/com/ringcentral/definitions/SyncAccountCallLogParameters.java index 4045b94f..73ffb1e8 100644 --- a/src/main/java/com/ringcentral/definitions/SyncAccountCallLogParameters.java +++ b/src/main/java/com/ringcentral/definitions/SyncAccountCallLogParameters.java @@ -12,7 +12,7 @@ public class SyncAccountCallLogParameters { */ public String syncToken; /** - * The start datetime for resulting records in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is the current moment + * The start datetime for resulting records in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is the current moment */ public String dateFrom; /** diff --git a/src/main/java/com/ringcentral/definitions/SyncInfoCallLog.java b/src/main/java/com/ringcentral/definitions/SyncInfoCallLog.java index a64d5cde..f4416b8f 100644 --- a/src/main/java/com/ringcentral/definitions/SyncInfoCallLog.java +++ b/src/main/java/com/ringcentral/definitions/SyncInfoCallLog.java @@ -12,7 +12,7 @@ public class SyncInfoCallLog { */ public String syncToken; /** - * The last synchronization datetime in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z + * The last synchronization datetime in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z */ public String syncTime; diff --git a/src/main/java/com/ringcentral/definitions/SyncInfoMessages.java b/src/main/java/com/ringcentral/definitions/SyncInfoMessages.java index 49bb6f8c..8da00b22 100644 --- a/src/main/java/com/ringcentral/definitions/SyncInfoMessages.java +++ b/src/main/java/com/ringcentral/definitions/SyncInfoMessages.java @@ -15,6 +15,10 @@ public class SyncInfoMessages { * Last synchronization datetime in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z */ public String syncTime; + /** + * + */ + public Boolean olderRecordsExist; public SyncInfoMessages syncType(String syncType) { this.syncType = syncType; @@ -31,4 +35,9 @@ public SyncInfoMessages syncTime(String syncTime) { return this; } + public SyncInfoMessages olderRecordsExist(Boolean olderRecordsExist) { + this.olderRecordsExist = olderRecordsExist; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/SyncUserCallLogParameters.java b/src/main/java/com/ringcentral/definitions/SyncUserCallLogParameters.java index 7fe86943..26fe33ca 100644 --- a/src/main/java/com/ringcentral/definitions/SyncUserCallLogParameters.java +++ b/src/main/java/com/ringcentral/definitions/SyncUserCallLogParameters.java @@ -11,7 +11,7 @@ public class SyncUserCallLogParameters { */ public String syncToken; /** - * The start datetime for resulting records in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is the current moment + * The start datetime for resulting records in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is the current moment */ public String dateFrom; /** @@ -29,7 +29,7 @@ public class SyncUserCallLogParameters { */ public String view; /** - * Supproted for ISync. If 'True' then deleted call records are returned + * Supported for ISync. If 'True' then deleted call records are returned */ public Boolean showDeleted; diff --git a/src/main/java/com/ringcentral/definitions/TimezoneInfo.java b/src/main/java/com/ringcentral/definitions/TimezoneInfo.java index 59eb21c4..e32e6f8c 100644 --- a/src/main/java/com/ringcentral/definitions/TimezoneInfo.java +++ b/src/main/java/com/ringcentral/definitions/TimezoneInfo.java @@ -18,6 +18,10 @@ public class TimezoneInfo { * Meaningful description of the timezone */ public String description; + /** + * + */ + public String bias; public TimezoneInfo id(String id) { this.id = id; @@ -39,4 +43,9 @@ public TimezoneInfo description(String description) { return this; } + public TimezoneInfo bias(String bias) { + this.bias = bias; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/UnifiedPresence.java b/src/main/java/com/ringcentral/definitions/UnifiedPresence.java new file mode 100644 index 00000000..fe3e3d4f --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UnifiedPresence.java @@ -0,0 +1,43 @@ +package com.ringcentral.definitions; + + +public class UnifiedPresence { + /** + * Aggregated presence status of the user + * Enum: Available, Offline, DND, Busy + */ + public String status; + /** + * + */ + public UnifiedPresenceGlip glip; + /** + * + */ + public UnifiedPresenceTelephony telephony; + /** + * + */ + public UnifiedPresenceMeeting meeting; + + public UnifiedPresence status(String status) { + this.status = status; + return this; + } + + public UnifiedPresence glip(UnifiedPresenceGlip glip) { + this.glip = glip; + return this; + } + + public UnifiedPresence telephony(UnifiedPresenceTelephony telephony) { + this.telephony = telephony; + return this; + } + + public UnifiedPresence meeting(UnifiedPresenceMeeting meeting) { + this.meeting = meeting; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UnifiedPresenceGlip.java b/src/main/java/com/ringcentral/definitions/UnifiedPresenceGlip.java new file mode 100644 index 00000000..b6e38643 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UnifiedPresenceGlip.java @@ -0,0 +1,37 @@ +package com.ringcentral.definitions; + + +// Returned if *Glip* feature is switched on +public class UnifiedPresenceGlip { + /** + * Glip connection status calculated from all user's apps. Returned always for the requester's extension; returned for another users if their glip visibility is set to 'Visible' + * Enum: Offline, Online + */ + public String status; + /** + * Visibility setting allowing other users to see the user's Glip presence status; returned only for requester's extension + * Enum: Visible, Invisible + */ + public String visibility; + /** + * Shows whether user wants to receive Glip notifications or not. + * Enum: Available, DND + */ + public String availability; + + public UnifiedPresenceGlip status(String status) { + this.status = status; + return this; + } + + public UnifiedPresenceGlip visibility(String visibility) { + this.visibility = visibility; + return this; + } + + public UnifiedPresenceGlip availability(String availability) { + this.availability = availability; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UnifiedPresenceListEntry.java b/src/main/java/com/ringcentral/definitions/UnifiedPresenceListEntry.java new file mode 100644 index 00000000..db52c25f --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UnifiedPresenceListEntry.java @@ -0,0 +1,33 @@ +package com.ringcentral.definitions; + + +public class UnifiedPresenceListEntry { + /** + * Internal identifier of the resource + */ + public String resourceId; + /** + * Status code of resource retrieval + */ + public Long status; + /** + * + */ + public UnifiedPresence body; + + public UnifiedPresenceListEntry resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + public UnifiedPresenceListEntry status(Long status) { + this.status = status; + return this; + } + + public UnifiedPresenceListEntry body(UnifiedPresence body) { + this.body = body; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UnifiedPresenceMeeting.java b/src/main/java/com/ringcentral/definitions/UnifiedPresenceMeeting.java new file mode 100644 index 00000000..d227b5ef --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UnifiedPresenceMeeting.java @@ -0,0 +1,17 @@ +package com.ringcentral.definitions; + + +// Returned if *Meetings* feature is switched on +public class UnifiedPresenceMeeting { + /** + * Meeting status calculated from all user`s meetings + * Enum: NoMeeting, InMeeting + */ + public String status; + + public UnifiedPresenceMeeting status(String status) { + this.status = status; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UnifiedPresenceTelephony.java b/src/main/java/com/ringcentral/definitions/UnifiedPresenceTelephony.java new file mode 100644 index 00000000..46c9e988 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UnifiedPresenceTelephony.java @@ -0,0 +1,37 @@ +package com.ringcentral.definitions; + + +// Returned if *BLF* feature is switched on +public class UnifiedPresenceTelephony { + /** + * Telephony status calculated from all user's phone numbers. Returned always for the requester's extension; returned for another users if their telephony visibility is set to 'Visible' + * Enum: NoCall, Ringing, CallConnected, OnHold, ParkedCall + */ + public String status; + /** + * Specifies if the user hardphone presence status is visible to other users; returned only for requester's extension + * Enum: Visible, Invisible + */ + public String visibility; + /** + * Telephony DND status. Returned if *DND* feature is switched on + * Enum: TakeAllCalls, DoNotAcceptAnyCalls, DoNotAcceptQueueCalls + */ + public String availability; + + public UnifiedPresenceTelephony status(String status) { + this.status = status; + return this; + } + + public UnifiedPresenceTelephony visibility(String visibility) { + this.visibility = visibility; + return this; + } + + public UnifiedPresenceTelephony availability(String availability) { + this.availability = availability; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UpdateIVRPromptRequest.java b/src/main/java/com/ringcentral/definitions/UpdateIVRPromptRequest.java index 7119ced2..9dae9a3d 100644 --- a/src/main/java/com/ringcentral/definitions/UpdateIVRPromptRequest.java +++ b/src/main/java/com/ringcentral/definitions/UpdateIVRPromptRequest.java @@ -3,7 +3,7 @@ public class UpdateIVRPromptRequest { /** - * Name of a file to be uploaded as a prompt. + * Name of a file to be uploaded as a prompt */ public String filename; diff --git a/src/main/java/com/ringcentral/definitions/UpdateNetworkRequest.java b/src/main/java/com/ringcentral/definitions/UpdateNetworkRequest.java index 1974612f..41318da7 100644 --- a/src/main/java/com/ringcentral/definitions/UpdateNetworkRequest.java +++ b/src/main/java/com/ringcentral/definitions/UpdateNetworkRequest.java @@ -17,7 +17,7 @@ public class UpdateNetworkRequest { /** * */ - public PrivateIpRangeInfo[] privateIpRanges; + public PrivateIpRangeInfoRequest[] privateIpRanges; public UpdateNetworkRequest name(String name) { this.name = name; @@ -34,7 +34,7 @@ public UpdateNetworkRequest publicIpRanges(PublicIpRangeInfo[] publicIpRanges) { return this; } - public UpdateNetworkRequest privateIpRanges(PrivateIpRangeInfo[] privateIpRanges) { + public UpdateNetworkRequest privateIpRanges(PrivateIpRangeInfoRequest[] privateIpRanges) { this.privateIpRanges = privateIpRanges; return this; } diff --git a/src/main/java/com/ringcentral/definitions/UpdateSwitchInfo.java b/src/main/java/com/ringcentral/definitions/UpdateSwitchInfo.java index e5f47169..5245fa6b 100644 --- a/src/main/java/com/ringcentral/definitions/UpdateSwitchInfo.java +++ b/src/main/java/com/ringcentral/definitions/UpdateSwitchInfo.java @@ -21,7 +21,7 @@ public class UpdateSwitchInfo { /** * Emergency address assigned to the switch. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned */ - public LocationUpdatesEmergencyAddressInfo emergencyAddress; + public LocationUpdatesEmergencyAddressInfoRequest emergencyAddress; /** * Emergency response location (address) internal identifier. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned */ @@ -47,7 +47,7 @@ public UpdateSwitchInfo site(SwitchSiteInfo site) { return this; } - public UpdateSwitchInfo emergencyAddress(LocationUpdatesEmergencyAddressInfo emergencyAddress) { + public UpdateSwitchInfo emergencyAddress(LocationUpdatesEmergencyAddressInfoRequest emergencyAddress) { this.emergencyAddress = emergencyAddress; return this; } diff --git a/src/main/java/com/ringcentral/definitions/UpdateUnifiedPresence.java b/src/main/java/com/ringcentral/definitions/UpdateUnifiedPresence.java new file mode 100644 index 00000000..304587e3 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UpdateUnifiedPresence.java @@ -0,0 +1,24 @@ +package com.ringcentral.definitions; + + +public class UpdateUnifiedPresence { + /** + * + */ + public UpdateUnifiedPresenceGlip glip; + /** + * + */ + public UpdateUnifiedPresenceTelephony telephony; + + public UpdateUnifiedPresence glip(UpdateUnifiedPresenceGlip glip) { + this.glip = glip; + return this; + } + + public UpdateUnifiedPresence telephony(UpdateUnifiedPresenceTelephony telephony) { + this.telephony = telephony; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UpdateUnifiedPresenceGlip.java b/src/main/java/com/ringcentral/definitions/UpdateUnifiedPresenceGlip.java new file mode 100644 index 00000000..5452c0d1 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UpdateUnifiedPresenceGlip.java @@ -0,0 +1,26 @@ +package com.ringcentral.definitions; + + +public class UpdateUnifiedPresenceGlip { + /** + * Visibility setting allowing other users to see Glip presence status + * Enum: Visible, Invisible + */ + public String visibility; + /** + * Availability setting specifing whether to receive Glip notifications or not + * Enum: Available, DND + */ + public String availability; + + public UpdateUnifiedPresenceGlip visibility(String visibility) { + this.visibility = visibility; + return this; + } + + public UpdateUnifiedPresenceGlip availability(String availability) { + this.availability = availability; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UpdateUnifiedPresenceTelephony.java b/src/main/java/com/ringcentral/definitions/UpdateUnifiedPresenceTelephony.java new file mode 100644 index 00000000..09a59491 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UpdateUnifiedPresenceTelephony.java @@ -0,0 +1,16 @@ +package com.ringcentral.definitions; + + +public class UpdateUnifiedPresenceTelephony { + /** + * Telephony DND status + * Enum: TakeAllCalls, DoNotAcceptAnyCalls, DoNotAcceptQueueCalls + */ + public String availability; + + public UpdateUnifiedPresenceTelephony availability(String availability) { + this.availability = availability; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UpdateWirelessPoint.java b/src/main/java/com/ringcentral/definitions/UpdateWirelessPoint.java index 74d4ef06..1f0c6a19 100644 --- a/src/main/java/com/ringcentral/definitions/UpdateWirelessPoint.java +++ b/src/main/java/com/ringcentral/definitions/UpdateWirelessPoint.java @@ -21,7 +21,7 @@ public class UpdateWirelessPoint { /** * Emergency address information. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned */ - public LocationUpdatesEmergencyAddressInfo emergencyAddress; + public LocationUpdatesEmergencyAddressInfoRequest emergencyAddress; /** * Internal identifier of the emergency response location (address). Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned */ @@ -47,7 +47,7 @@ public UpdateWirelessPoint site(AutomaticLocationUpdatesSiteInfo site) { return this; } - public UpdateWirelessPoint emergencyAddress(LocationUpdatesEmergencyAddressInfo emergencyAddress) { + public UpdateWirelessPoint emergencyAddress(LocationUpdatesEmergencyAddressInfoRequest emergencyAddress) { this.emergencyAddress = emergencyAddress; return this; } diff --git a/src/main/java/com/ringcentral/definitions/UserActiveCallsResponse.java b/src/main/java/com/ringcentral/definitions/UserActiveCallsResponse.java new file mode 100644 index 00000000..48eca028 --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UserActiveCallsResponse.java @@ -0,0 +1,45 @@ +package com.ringcentral.definitions; + + +public class UserActiveCallsResponse { + /** + * Link to the list of user active call records + */ + public String uri; + /** + * List of call log records + * Required + */ + public UserCallLogRecord[] records; + /** + * Information on navigation + * Required + */ + public CallLogNavigationInfo navigation; + /** + * Information on paging + * Required + */ + public CallLogPagingInfo paging; + + public UserActiveCallsResponse uri(String uri) { + this.uri = uri; + return this; + } + + public UserActiveCallsResponse records(UserCallLogRecord[] records) { + this.records = records; + return this; + } + + public UserActiveCallsResponse navigation(CallLogNavigationInfo navigation) { + this.navigation = navigation; + return this; + } + + public UserActiveCallsResponse paging(CallLogPagingInfo paging) { + this.paging = paging; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UserBusinessHoursUpdateRequest.java b/src/main/java/com/ringcentral/definitions/UserBusinessHoursUpdateRequest.java index 90469b71..bdc332d5 100644 --- a/src/main/java/com/ringcentral/definitions/UserBusinessHoursUpdateRequest.java +++ b/src/main/java/com/ringcentral/definitions/UserBusinessHoursUpdateRequest.java @@ -4,7 +4,6 @@ public class UserBusinessHoursUpdateRequest { /** * Schedule when an answering rule is applied - * Required */ public UserBusinessHoursScheduleInfo schedule; diff --git a/src/main/java/com/ringcentral/definitions/UserCallLogRecord.java b/src/main/java/com/ringcentral/definitions/UserCallLogRecord.java index efad0f86..82b4e306 100644 --- a/src/main/java/com/ringcentral/definitions/UserCallLogRecord.java +++ b/src/main/java/com/ringcentral/definitions/UserCallLogRecord.java @@ -14,6 +14,10 @@ public class UserCallLogRecord { * Internal identifier of a call session */ public String sessionId; + /** + * Telephony identifier of a call session + */ + public String telephonySessionId; /** * */ @@ -22,18 +26,35 @@ public class UserCallLogRecord { * */ public CallLogCallerInfo to; + /** + * + */ + public ExtensionInfoCallLog extension; /** * Call type * Enum: Voice, Fax */ public String type; + /** + * For 'Detailed' view only. Call transport + * Enum: PSTN, VoIP + */ + public String transport; + /** + * For 'Detailed' view only. Leg description + */ + public CallLogRecordLegInfo[] legs; + /** + * Billing information related to the call + */ + public BillingInfo billing; /** * Call direction * Enum: Inbound, Outbound */ public String direction; /** - * The call start datetime in 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; /** @@ -44,10 +65,18 @@ public class UserCallLogRecord { * Call duration in seconds */ public Long duration; + /** + * For 'Detailed' view only. The datetime when the call log record was modified in (ISO 8601)[https://en.wikipedia.org/wiki/ISO_8601] format including timezone, for example 2016-03-10T18:07:52.534Z + */ + public String lastModifiedTime; /** * */ public CallLogRecordingInfo recording; + /** + * Indicates that the recording is too short and therefore wouldn't be returned. The flag is not returned if the value is false + */ + public Boolean shortRecording; /** * Action description of the call operation * Enum: Unknown, Phone Login, Calling Card, VoIP Call, Phone Call, Paging, Hunting, Call Park, Monitoring, Text Relay, External Application, Park Location, CallOut-CallMe, Conference Call, Move, RC Meetings, Accept Call, FindMe, FollowMe, RingMe, Transfer, Call Return, Ring Directly, RingOut Web, RingOut PC, RingOut Mobile, Emergency, E911 Update, Support, Incoming Fax, Outgoing Fax @@ -55,7 +84,7 @@ public class UserCallLogRecord { public String action; /** * Status description of the call operation - * Enum: Unknown, Accepted, Call connected, In Progress, Voicemail, Reply, Missed, Busy, Rejected, No Answer, Hang Up, Blocked, Suspended account, Call Failed, Call Failure, Internal Error, IP Phone Offline, No Calling Credit, Restricted Number, Wrong Number, Answered Not Accepted, Stopped, International Disabled, International Restricted, Abandoned, Declined, Received, Fax on Demand, Partial Receive, Receive Error, Fax Receipt Error, Sent, Fax Partially Sent, Send Error, Fax Not Sent, Fax Poor Line + * Enum: Unknown, Accepted, Call connected, In Progress, Voicemail, Reply, Missed, Busy, Rejected, No Answer, Hang Up, Blocked, Suspended account, Call Failed, Call Failure, Internal Error, IP Phone Offline, No Calling Credit, Not Allowed, Restricted Number, Wrong Number, Answered Not Accepted, Stopped, International Disabled, International Restricted, Abandoned, Declined, Received, Fax on Demand, Partial Receive, Receive Error, Fax Receipt Error, Sent, Fax Partially Sent, Send Error, Fax Not Sent, Fax Poor Line */ public String result; /** @@ -96,6 +125,10 @@ public class UserCallLogRecord { * Enum: Accepted, Connected, line Busy, Not Answered, No Answer, Hang Up, Stopped, Internal Error, No Credit, Restricted Number, Wrong Number, International Disabled, International Restricted, Bad Number, Info 411 Restricted, Customer 611 Restricted, No Digital Line, Failed Try Again, Max Call Limit, Too Many Calls, Calls Not Accepted, Number Not Allowed, Number Blocked, Number Disabled, Resource Error, Call Loop, Fax Not Received, Fax Partially Sent, Fax Not Sent, Fax Poor Line, Fax Prepare Error, Fax Save Error, Fax Send Error */ public String reason; + /** + * + */ + public String reasonDescription; public UserCallLogRecord id(String id) { this.id = id; @@ -112,6 +145,11 @@ public UserCallLogRecord sessionId(String sessionId) { return this; } + public UserCallLogRecord telephonySessionId(String telephonySessionId) { + this.telephonySessionId = telephonySessionId; + return this; + } + public UserCallLogRecord from(CallLogCallerInfo from) { this.from = from; return this; @@ -122,11 +160,31 @@ public UserCallLogRecord to(CallLogCallerInfo to) { return this; } + public UserCallLogRecord extension(ExtensionInfoCallLog extension) { + this.extension = extension; + return this; + } + public UserCallLogRecord type(String type) { this.type = type; return this; } + public UserCallLogRecord transport(String transport) { + this.transport = transport; + return this; + } + + public UserCallLogRecord legs(CallLogRecordLegInfo[] legs) { + this.legs = legs; + return this; + } + + public UserCallLogRecord billing(BillingInfo billing) { + this.billing = billing; + return this; + } + public UserCallLogRecord direction(String direction) { this.direction = direction; return this; @@ -147,11 +205,21 @@ public UserCallLogRecord duration(Long duration) { return this; } + public UserCallLogRecord lastModifiedTime(String lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + public UserCallLogRecord recording(CallLogRecordingInfo recording) { this.recording = recording; return this; } + public UserCallLogRecord shortRecording(Boolean shortRecording) { + this.shortRecording = shortRecording; + return this; + } + public UserCallLogRecord action(String action) { this.action = action; return this; @@ -167,4 +235,9 @@ public UserCallLogRecord reason(String reason) { return this; } + public UserCallLogRecord reasonDescription(String reasonDescription) { + this.reasonDescription = reasonDescription; + return this; + } + } diff --git a/src/main/java/com/ringcentral/definitions/UserCallLogResponse.java b/src/main/java/com/ringcentral/definitions/UserCallLogResponse.java index 7cf70669..1d10bb0a 100644 --- a/src/main/java/com/ringcentral/definitions/UserCallLogResponse.java +++ b/src/main/java/com/ringcentral/definitions/UserCallLogResponse.java @@ -6,7 +6,7 @@ public class UserCallLogResponse { * List of call log records * Required */ - public CallLogRecord[] records; + public UserCallLogRecord[] records; /** * Information on navigation * Required @@ -18,7 +18,7 @@ public class UserCallLogResponse { */ public CallLogPagingInfo paging; - public UserCallLogResponse records(CallLogRecord[] records) { + public UserCallLogResponse records(UserCallLogRecord[] records) { this.records = records; return this; } diff --git a/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java b/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java new file mode 100644 index 00000000..823d744d --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/UserPhoneNumberExtensionInfo.java @@ -0,0 +1,70 @@ +package com.ringcentral.definitions; + + +public class UserPhoneNumberExtensionInfo { + /** + * Internal identifier of an extension + */ + public Long id; + /** + * Canonical URI of an extension + */ + public String uri; + /** + * Number of department extension + */ + public String extensionNumber; + /** + * For Partner Applications Internal identifier of an extension created by partner. The RingCentral supports the mapping of accounts and stores the corresponding account ID/extension ID for each partner ID of a client application. In request URIs partner IDs are accepted instead of regular RingCentral native IDs as path parameters using pid = XXX clause. Though in response URIs contain the corresponding account IDs and extension IDs. In all request and response bodies these values are reflected via partnerId attributes of account and extension + */ + public String partnerId; + /** + * Extension type + * Enum: User, FaxUser, VirtualUser, DigitalUser, Department, Announcement, Voicemail, SharedLinesGroup, PagingOnlyGroup, IvrMenu, ApplicationExtension, ParkLocation + */ + public String type; + /** + * 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; + /** + * Extension name. For user extension types the value is a combination of the specified first name and last name + */ + public String name; + + public UserPhoneNumberExtensionInfo id(Long id) { + this.id = id; + return this; + } + + public UserPhoneNumberExtensionInfo uri(String uri) { + this.uri = uri; + return this; + } + + public UserPhoneNumberExtensionInfo extensionNumber(String extensionNumber) { + this.extensionNumber = extensionNumber; + return this; + } + + public UserPhoneNumberExtensionInfo partnerId(String partnerId) { + this.partnerId = partnerId; + return this; + } + + public UserPhoneNumberExtensionInfo type(String type) { + this.type = type; + return this; + } + + public UserPhoneNumberExtensionInfo contactCenterProvider(ContactCenterProvider contactCenterProvider) { + this.contactCenterProvider = contactCenterProvider; + return this; + } + + public UserPhoneNumberExtensionInfo name(String name) { + this.name = name; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/definitions/UserPhoneNumberInfo.java b/src/main/java/com/ringcentral/definitions/UserPhoneNumberInfo.java index 8f6d43d5..d3b55ae1 100644 --- a/src/main/java/com/ringcentral/definitions/UserPhoneNumberInfo.java +++ b/src/main/java/com/ringcentral/definitions/UserPhoneNumberInfo.java @@ -2,18 +2,26 @@ public class UserPhoneNumberInfo { + /** + * Link to the user's phone number resource + */ + public String uri; /** * Internal identifier of a phone number */ - public String id; + public Long id; /** * Brief information on a phone number country */ public CountryInfo country; + /** + * 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; /** * Information on the extension, to which the phone number is assigned. Returned only for the request of Account phone number list */ - public ExtensionInfo extension; + public UserPhoneNumberExtensionInfo extension; /** * Custom user name of a phone number, if any */ @@ -50,7 +58,12 @@ public class UserPhoneNumberInfo { */ public String[] features; - public UserPhoneNumberInfo id(String id) { + public UserPhoneNumberInfo uri(String uri) { + this.uri = uri; + return this; + } + + public UserPhoneNumberInfo id(Long id) { this.id = id; return this; } @@ -60,7 +73,12 @@ public UserPhoneNumberInfo country(CountryInfo country) { return this; } - public UserPhoneNumberInfo extension(ExtensionInfo extension) { + public UserPhoneNumberInfo contactCenterProvider(ContactCenterProvider contactCenterProvider) { + this.contactCenterProvider = contactCenterProvider; + return this; + } + + public UserPhoneNumberInfo extension(UserPhoneNumberExtensionInfo extension) { this.extension = extension; return this; } diff --git a/src/main/java/com/ringcentral/definitions/ValidateMultipleWirelessPointsRequest.java b/src/main/java/com/ringcentral/definitions/ValidateMultipleWirelessPointsRequest.java index e5325814..9b367554 100644 --- a/src/main/java/com/ringcentral/definitions/ValidateMultipleWirelessPointsRequest.java +++ b/src/main/java/com/ringcentral/definitions/ValidateMultipleWirelessPointsRequest.java @@ -5,9 +5,9 @@ public class ValidateMultipleWirelessPointsRequest { /** * */ - public WirelessPointInfo[] records; + public WirelessPointInfoRequest[] records; - public ValidateMultipleWirelessPointsRequest records(WirelessPointInfo[] records) { + public ValidateMultipleWirelessPointsRequest records(WirelessPointInfoRequest[] records) { this.records = records; return this; } diff --git a/src/main/java/com/ringcentral/definitions/VoicemailsInfo.java b/src/main/java/com/ringcentral/definitions/VoicemailsInfo.java index 9d399e26..0f468b10 100644 --- a/src/main/java/com/ringcentral/definitions/VoicemailsInfo.java +++ b/src/main/java/com/ringcentral/definitions/VoicemailsInfo.java @@ -22,6 +22,10 @@ public class VoicemailsInfo { * Indicates whether voicemail should be attached to email */ public Boolean includeAttachment; + /** + * Specifies whether to add voicemail transcription or not + */ + public Boolean includeTranscription; /** * Indicates whether email should be automatically marked as read */ @@ -52,6 +56,11 @@ public VoicemailsInfo includeAttachment(Boolean includeAttachment) { return this; } + public VoicemailsInfo includeTranscription(Boolean includeTranscription) { + this.includeTranscription = includeTranscription; + return this; + } + public VoicemailsInfo markAsRead(Boolean markAsRead) { this.markAsRead = markAsRead; return this; diff --git a/src/main/java/com/ringcentral/definitions/WirelessPointInfoRequest.java b/src/main/java/com/ringcentral/definitions/WirelessPointInfoRequest.java new file mode 100644 index 00000000..32cf568a --- /dev/null +++ b/src/main/java/com/ringcentral/definitions/WirelessPointInfoRequest.java @@ -0,0 +1,60 @@ +package com.ringcentral.definitions; + + +public class WirelessPointInfoRequest { + /** + * Internal identifier of a wireless point + */ + public String id; + /** + * Unique 48-bit identifier of the wireless access point complying with MAC address conventions + */ + public String bssid; + /** + * Wireless access point name + */ + public String name; + /** + * Site data (internal identifier and custom name of a site) + */ + public AutomaticLocationUpdatesSiteInfo site; + /** + * Emergency address assigned to the wireless point. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned + */ + public LocationUpdatesEmergencyAddressInfoRequest emergencyAddress; + /** + * Emergency response location (address) internal identifier. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned + */ + public String emergencyLocationId; + + public WirelessPointInfoRequest id(String id) { + this.id = id; + return this; + } + + public WirelessPointInfoRequest bssid(String bssid) { + this.bssid = bssid; + return this; + } + + public WirelessPointInfoRequest name(String name) { + this.name = name; + return this; + } + + public WirelessPointInfoRequest site(AutomaticLocationUpdatesSiteInfo site) { + this.site = site; + return this; + } + + public WirelessPointInfoRequest emergencyAddress(LocationUpdatesEmergencyAddressInfoRequest emergencyAddress) { + this.emergencyAddress = emergencyAddress; + return this; + } + + public WirelessPointInfoRequest emergencyLocationId(String emergencyLocationId) { + this.emergencyLocationId = emergencyLocationId; + return this; + } + +} diff --git a/src/main/java/com/ringcentral/paths/media/Index.kt b/src/main/java/com/ringcentral/paths/media/Index.kt deleted file mode 100644 index 659480cb..00000000 --- a/src/main/java/com/ringcentral/paths/media/Index.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.ringcentral.paths.media - -class Index(val rc: com.ringcentral.RestClient) { - - - - fun path(): String - { - return "/media" - } - - - fun v1() : com.ringcentral.paths.media.v1.Index - { - return com.ringcentral.paths.media.v1.Index(this) - } - -} \ No newline at end of file diff --git a/src/main/java/com/ringcentral/paths/media/v1/Index.kt b/src/main/java/com/ringcentral/paths/media/v1/Index.kt deleted file mode 100644 index 77657d20..00000000 --- a/src/main/java/com/ringcentral/paths/media/v1/Index.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.ringcentral.paths.media.v1 - -class Index(val parent: com.ringcentral.paths.media.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/v1" - } - - - fun glip() : com.ringcentral.paths.media.v1.glip.Index - { - return com.ringcentral.paths.media.v1.glip.Index(this) - } - -} \ No newline at end of file diff --git a/src/main/java/com/ringcentral/paths/media/v1/glip/Index.kt b/src/main/java/com/ringcentral/paths/media/v1/glip/Index.kt deleted file mode 100644 index fe21135c..00000000 --- a/src/main/java/com/ringcentral/paths/media/v1/glip/Index.kt +++ /dev/null @@ -1,18 +0,0 @@ -package com.ringcentral.paths.media.v1.glip - -class Index(val parent: com.ringcentral.paths.media.v1.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/glip" - } - - - @JvmOverloads fun dataexport(taskId: String? = null) : com.ringcentral.paths.media.v1.glip.dataexport.Index - { - return com.ringcentral.paths.media.v1.glip.dataexport.Index(this, taskId) - } - -} \ No newline at end of file diff --git a/src/main/java/com/ringcentral/paths/media/v1/glip/dataexport/Index.kt b/src/main/java/com/ringcentral/paths/media/v1/glip/dataexport/Index.kt deleted file mode 100644 index 2eed5cc0..00000000 --- a/src/main/java/com/ringcentral/paths/media/v1/glip/dataexport/Index.kt +++ /dev/null @@ -1,23 +0,0 @@ -package com.ringcentral.paths.media.v1.glip.dataexport - -class Index(val parent: com.ringcentral.paths.media.v1.glip.Index, val taskId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(withParameter: Boolean = true): String - { - if (withParameter && taskId != null) - { - return "${parent.path()}/data-export/${taskId}" - } - - return "${parent.path()}/data-export" - } - - - @JvmOverloads fun archive(archiveId: String? = null) : com.ringcentral.paths.media.v1.glip.dataexport.archive.Index - { - return com.ringcentral.paths.media.v1.glip.dataexport.archive.Index(this, archiveId) - } - -} \ No newline at end of file diff --git a/src/main/java/com/ringcentral/paths/media/v1/glip/dataexport/archive/Index.kt b/src/main/java/com/ringcentral/paths/media/v1/glip/dataexport/archive/Index.kt deleted file mode 100644 index dae94067..00000000 --- a/src/main/java/com/ringcentral/paths/media/v1/glip/dataexport/archive/Index.kt +++ /dev/null @@ -1,34 +0,0 @@ -package com.ringcentral.paths.media.v1.glip.dataexport.archive - -class Index(val parent: com.ringcentral.paths.media.v1.glip.dataexport.Index, val archiveId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(withParameter: Boolean = true): String - { - if (withParameter && archiveId != null) - { - return "${parent.path()}/archive/${archiveId}" - } - - return "${parent.path()}/archive" - } - - /** - * Operation: Get Glip Data Archive - * Http Get /media/v1/glip/data-export/{taskId}/archive/{archiveId} - */ - fun get() : ByteArray? - { - if (this.archiveId == null) - { - throw NullPointerException("archiveId"); - } - - val rb: okhttp3.ResponseBody = rc.get(this.path()) - - return rb.bytes() - - } - -} diff --git a/src/main/java/com/ringcentral/paths/restapi/Index.kt b/src/main/java/com/ringcentral/paths/restapi/Index.kt index a974b4af..514d41e6 100644 --- a/src/main/java/com/ringcentral/paths/restapi/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/Index.kt @@ -1,103 +1,83 @@ package com.ringcentral.paths.restapi class Index(val rc: com.ringcentral.RestClient, val apiVersion: String? = "v1.0") { - - - fun path(withParameter: Boolean = true): String - { - if (withParameter && apiVersion != null) - { - return "/restapi/${apiVersion}" - } - return "/restapi" + fun path(withParameter: Boolean = true): String { + if (withParameter && apiVersion != null) { + return "/restapi/${apiVersion}" } - /** - * Operation: Get API Versions - * Http Get /restapi - */ - fun list() : com.ringcentral.definitions.GetVersionsResponse? - { + return "/restapi" + } + + /** + * Operation: Get API Versions + * Http Get /restapi + */ + fun list(): com.ringcentral.definitions.GetVersionsResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetVersionsResponse::class.java) - + } - - - /** - * Operation: Get Version Info - * Http Get /restapi/{apiVersion} - */ - fun get() : com.ringcentral.definitions.GetVersionResponse? - { - if (this.apiVersion == null) - { - throw NullPointerException("apiVersion"); - } + + + /** + * Operation: Get Version Info + * Http Get /restapi/{apiVersion} + */ + fun get(): com.ringcentral.definitions.GetVersionResponse? { + if (this.apiVersion == null) { + throw NullPointerException("apiVersion") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetVersionResponse::class.java) - + } - - fun oauth() : com.ringcentral.paths.restapi.oauth.Index - { + fun oauth(): com.ringcentral.paths.restapi.oauth.Index { return com.ringcentral.paths.restapi.oauth.Index(this) - } - + } - fun status() : com.ringcentral.paths.restapi.status.Index - { + fun status(): com.ringcentral.paths.restapi.status.Index { return com.ringcentral.paths.restapi.status.Index(this) - } - + } - @JvmOverloads fun account(accountId: String? = "~") : com.ringcentral.paths.restapi.account.Index - { + @JvmOverloads + fun account(accountId: String? = "~"): com.ringcentral.paths.restapi.account.Index { return com.ringcentral.paths.restapi.account.Index(this, accountId) - } - + } - fun dictionary() : com.ringcentral.paths.restapi.dictionary.Index - { + fun dictionary(): com.ringcentral.paths.restapi.dictionary.Index { return com.ringcentral.paths.restapi.dictionary.Index(this) - } - + } - fun glip() : com.ringcentral.paths.restapi.glip.Index - { + fun glip(): com.ringcentral.paths.restapi.glip.Index { return com.ringcentral.paths.restapi.glip.Index(this) - } - + } - @JvmOverloads fun subscription(subscriptionId: String? = null) : com.ringcentral.paths.restapi.subscription.Index - { + @JvmOverloads + fun subscription(subscriptionId: String? = null): com.ringcentral.paths.restapi.subscription.Index { return com.ringcentral.paths.restapi.subscription.Index(this, subscriptionId) - } - + } - fun clientinfo() : com.ringcentral.paths.restapi.clientinfo.Index - { + fun clientinfo(): com.ringcentral.paths.restapi.clientinfo.Index { return com.ringcentral.paths.restapi.clientinfo.Index(this) - } - + } - fun numberparser() : com.ringcentral.paths.restapi.numberparser.Index - { + fun numberparser(): com.ringcentral.paths.restapi.numberparser.Index { return com.ringcentral.paths.restapi.numberparser.Index(this) - } - -} \ No newline at end of file + } + +} 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 16a0a1cc..85c8019d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/Index.kt @@ -1,216 +1,185 @@ package com.ringcentral.paths.restapi.account class Index(val parent: com.ringcentral.paths.restapi.Index, val accountId: String? = "~") { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && accountId != null) - { - return "${parent.path()}/account/${accountId}" - } - return "${parent.path()}/account" + fun path(withParameter: Boolean = true): String { + if (withParameter && accountId != null) { + return "${parent.path()}/account/${accountId}" } - /** - * Operation: Get Account Info - * Http Get /restapi/v1.0/account/{accountId} - */ - fun get() : com.ringcentral.definitions.GetAccountInfoResponse? - { - if (this.accountId == null) - { - throw NullPointerException("accountId"); - } + return "${parent.path()}/account" + } + + /** + * Operation: Get Account Info + * Http Get /restapi/v1.0/account/{accountId} + */ + fun get(): com.ringcentral.definitions.GetAccountInfoResponse? { + if (this.accountId == null) { + throw NullPointerException("accountId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetAccountInfoResponse::class.java) - + } - - @JvmOverloads fun extension(extensionId: String? = "~") : com.ringcentral.paths.restapi.account.extension.Index - { + @JvmOverloads + fun extension(extensionId: String? = "~"): com.ringcentral.paths.restapi.account.extension.Index { return com.ringcentral.paths.restapi.account.extension.Index(this, extensionId) - } - + } - @JvmOverloads fun calllog(callRecordId: String? = null) : com.ringcentral.paths.restapi.account.calllog.Index - { + @JvmOverloads + fun calllog(callRecordId: String? = null): com.ringcentral.paths.restapi.account.calllog.Index { return com.ringcentral.paths.restapi.account.calllog.Index(this, callRecordId) - } - + } - fun calllogsync() : com.ringcentral.paths.restapi.account.calllogsync.Index - { + fun calllogsync(): com.ringcentral.paths.restapi.account.calllogsync.Index { return com.ringcentral.paths.restapi.account.calllogsync.Index(this) - } - + } - fun activecalls() : com.ringcentral.paths.restapi.account.activecalls.Index - { + fun activecalls(): com.ringcentral.paths.restapi.account.activecalls.Index { return com.ringcentral.paths.restapi.account.activecalls.Index(this) - } - + } - @JvmOverloads fun recording(recordingId: String? = null) : com.ringcentral.paths.restapi.account.recording.Index - { + @JvmOverloads + fun recording(recordingId: String? = null): com.ringcentral.paths.restapi.account.recording.Index { return com.ringcentral.paths.restapi.account.recording.Index(this, recordingId) - } - + } - fun messagestoreconfiguration() : com.ringcentral.paths.restapi.account.messagestoreconfiguration.Index - { + fun messagestoreconfiguration(): com.ringcentral.paths.restapi.account.messagestoreconfiguration.Index { return com.ringcentral.paths.restapi.account.messagestoreconfiguration.Index(this) - } - + } - fun directory() : com.ringcentral.paths.restapi.account.directory.Index - { + fun directory(): com.ringcentral.paths.restapi.account.directory.Index { return com.ringcentral.paths.restapi.account.directory.Index(this) - } - + } - fun presence() : com.ringcentral.paths.restapi.account.presence.Index - { + fun presence(): com.ringcentral.paths.restapi.account.presence.Index { return com.ringcentral.paths.restapi.account.presence.Index(this) - } - + } - fun businesshours() : com.ringcentral.paths.restapi.account.businesshours.Index - { + fun businesshours(): com.ringcentral.paths.restapi.account.businesshours.Index { return com.ringcentral.paths.restapi.account.businesshours.Index(this) - } - + } - @JvmOverloads fun answeringrule(ruleId: String? = null) : com.ringcentral.paths.restapi.account.answeringrule.Index - { + @JvmOverloads + fun answeringrule(ruleId: String? = null): com.ringcentral.paths.restapi.account.answeringrule.Index { return com.ringcentral.paths.restapi.account.answeringrule.Index(this, ruleId) - } - + } - fun greeting() : com.ringcentral.paths.restapi.account.greeting.Index - { + fun greeting(): com.ringcentral.paths.restapi.account.greeting.Index { return com.ringcentral.paths.restapi.account.greeting.Index(this) - } - + } - @JvmOverloads fun ivrprompts(promptId: String? = null) : com.ringcentral.paths.restapi.account.ivrprompts.Index - { + @JvmOverloads + fun ivrprompts(promptId: String? = null): com.ringcentral.paths.restapi.account.ivrprompts.Index { return com.ringcentral.paths.restapi.account.ivrprompts.Index(this, promptId) - } - + } - @JvmOverloads fun ivrmenus(ivrMenuId: String? = null) : com.ringcentral.paths.restapi.account.ivrmenus.Index - { + @JvmOverloads + fun ivrmenus(ivrMenuId: String? = null): com.ringcentral.paths.restapi.account.ivrmenus.Index { return com.ringcentral.paths.restapi.account.ivrmenus.Index(this, ivrMenuId) - } - + } - fun callrecording() : com.ringcentral.paths.restapi.account.callrecording.Index - { + fun callrecording(): com.ringcentral.paths.restapi.account.callrecording.Index { return com.ringcentral.paths.restapi.account.callrecording.Index(this) - } - + } - fun emergencyaddressautoupdate() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index - { + fun emergencyaddressautoupdate(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index(this) - } - + } + + @JvmOverloads + fun emergencylocations(locationId: String? = null): com.ringcentral.paths.restapi.account.emergencylocations.Index { + return com.ringcentral.paths.restapi.account.emergencylocations.Index(this, locationId) + } - fun businessaddress() : com.ringcentral.paths.restapi.account.businessaddress.Index - { + + fun businessaddress(): com.ringcentral.paths.restapi.account.businessaddress.Index { return com.ringcentral.paths.restapi.account.businessaddress.Index(this) - } - + } - fun serviceinfo() : com.ringcentral.paths.restapi.account.serviceinfo.Index - { + fun serviceinfo(): com.ringcentral.paths.restapi.account.serviceinfo.Index { return com.ringcentral.paths.restapi.account.serviceinfo.Index(this) - } - + } - @JvmOverloads fun phonenumber(phoneNumberId: String? = null) : com.ringcentral.paths.restapi.account.phonenumber.Index - { + @JvmOverloads + fun phonenumber(phoneNumberId: String? = null): com.ringcentral.paths.restapi.account.phonenumber.Index { return com.ringcentral.paths.restapi.account.phonenumber.Index(this, phoneNumberId) - } - + } - @JvmOverloads fun templates(templateId: String? = null) : com.ringcentral.paths.restapi.account.templates.Index - { + @JvmOverloads + fun templates(templateId: String? = null): com.ringcentral.paths.restapi.account.templates.Index { return com.ringcentral.paths.restapi.account.templates.Index(this, templateId) - } - + } - @JvmOverloads fun callqueues(groupId: String? = null) : com.ringcentral.paths.restapi.account.callqueues.Index - { + @JvmOverloads + fun callqueues(groupId: String? = null): com.ringcentral.paths.restapi.account.callqueues.Index { return com.ringcentral.paths.restapi.account.callqueues.Index(this, groupId) - } - + } - @JvmOverloads fun department(departmentId: String? = null) : com.ringcentral.paths.restapi.account.department.Index - { + @JvmOverloads + fun department(departmentId: String? = null): com.ringcentral.paths.restapi.account.department.Index { return com.ringcentral.paths.restapi.account.department.Index(this, departmentId) - } - + } - @JvmOverloads fun pagingonlygroups(pagingOnlyGroupId: String? = null) : com.ringcentral.paths.restapi.account.pagingonlygroups.Index - { + @JvmOverloads + fun pagingonlygroups(pagingOnlyGroupId: String? = null): com.ringcentral.paths.restapi.account.pagingonlygroups.Index { return com.ringcentral.paths.restapi.account.pagingonlygroups.Index(this, pagingOnlyGroupId) - } - + } - @JvmOverloads fun callmonitoringgroups(groupId: String? = null) : com.ringcentral.paths.restapi.account.callmonitoringgroups.Index - { + @JvmOverloads + fun callmonitoringgroups(groupId: String? = null): com.ringcentral.paths.restapi.account.callmonitoringgroups.Index { return com.ringcentral.paths.restapi.account.callmonitoringgroups.Index(this, groupId) - } - + } - @JvmOverloads fun device(deviceId: String? = null) : com.ringcentral.paths.restapi.account.device.Index - { + @JvmOverloads + fun device(deviceId: String? = null): com.ringcentral.paths.restapi.account.device.Index { return com.ringcentral.paths.restapi.account.device.Index(this, deviceId) - } - + } - fun telephony() : com.ringcentral.paths.restapi.account.telephony.Index - { + fun telephony(): com.ringcentral.paths.restapi.account.telephony.Index { return com.ringcentral.paths.restapi.account.telephony.Index(this) - } - + } - @JvmOverloads fun messagestorereport(taskId: String? = null) : com.ringcentral.paths.restapi.account.messagestorereport.Index - { + @JvmOverloads + fun messagestorereport(taskId: String? = null): com.ringcentral.paths.restapi.account.messagestorereport.Index { return com.ringcentral.paths.restapi.account.messagestorereport.Index(this, taskId) - } - -} \ No newline at end of file + } + + + fun meetingrecordings(): com.ringcentral.paths.restapi.account.meetingrecordings.Index { + return com.ringcentral.paths.restapi.account.meetingrecordings.Index(this) + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/activecalls/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/activecalls/Index.kt index eef5fb0f..29ac8f44 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/activecalls/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/activecalls/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.activecalls class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/active-calls" - } - /** - * Operation: Get Company Active Calls - * Http Get /restapi/v1.0/account/{accountId}/active-calls - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListCompanyActiveCallsParameters? = null) : com.ringcentral.definitions.ActiveCallsResponse? - { + fun path(): String { + return "${parent.path()}/active-calls" + } + + /** + * Operation: Get Company Active Calls + * Http Get /restapi/v1.0/account/{accountId}/active-calls + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListCompanyActiveCallsParameters? = null): com.ringcentral.definitions.CompanyActiveCallsResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - - return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ActiveCallsResponse::class.java) - + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CompanyActiveCallsResponse::class.java) + } - + } 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 5d51ec4e..e062361c 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 @@ -1,96 +1,86 @@ package com.ringcentral.paths.restapi.account.answeringrule class Index(val parent: com.ringcentral.paths.restapi.account.Index, val ruleId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && ruleId != null) - { - return "${parent.path()}/answering-rule/${ruleId}" - } - return "${parent.path()}/answering-rule" + fun path(withParameter: Boolean = true): String { + if (withParameter && ruleId != null) { + return "${parent.path()}/answering-rule/${ruleId}" } - /** - * Operation: Create Company Call Handling Rule - * Http Post /restapi/v1.0/account/{accountId}/answering-rule - */ - fun post(companyAnsweringRuleRequest: com.ringcentral.definitions.CompanyAnsweringRuleRequest) : com.ringcentral.definitions.CompanyAnsweringRuleInfo? - { + return "${parent.path()}/answering-rule" + } + + /** + * Operation: Create Company Call Handling Rule + * Http Post /restapi/v1.0/account/{accountId}/answering-rule + */ + fun post(companyAnsweringRuleRequest: com.ringcentral.definitions.CompanyAnsweringRuleRequest): com.ringcentral.definitions.CompanyAnsweringRuleInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), companyAnsweringRuleRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CompanyAnsweringRuleInfo::class.java) - + } - - - /** - * Operation: Get Company Call Handling Rule List - * Http Get /restapi/v1.0/account/{accountId}/answering-rule - */ - fun list() : com.ringcentral.definitions.CompanyAnsweringRuleList? - { + + + /** + * Operation: Get Company Call Handling Rule List + * Http Get /restapi/v1.0/account/{accountId}/answering-rule + */ + fun list(): com.ringcentral.definitions.CompanyAnsweringRuleList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CompanyAnsweringRuleList::class.java) - + } - - - /** - * Operation: Get Company Call Handling Rule - * Http Get /restapi/v1.0/account/{accountId}/answering-rule/{ruleId} - */ - fun get() : com.ringcentral.definitions.CompanyAnsweringRuleInfo? - { - if (this.ruleId == null) - { - throw NullPointerException("ruleId"); - } + + + /** + * Operation: Get Company Call Handling Rule + * Http Get /restapi/v1.0/account/{accountId}/answering-rule/{ruleId} + */ + fun get(): com.ringcentral.definitions.CompanyAnsweringRuleInfo? { + if (this.ruleId == null) { + throw NullPointerException("ruleId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CompanyAnsweringRuleInfo::class.java) - + } - - - /** - * Operation: Update Company Call Handling Rule - * Http Put /restapi/v1.0/account/{accountId}/answering-rule/{ruleId} - */ - fun put(companyAnsweringRuleUpdate: com.ringcentral.definitions.CompanyAnsweringRuleUpdate) : com.ringcentral.definitions.CompanyAnsweringRuleInfo? - { - if (this.ruleId == null) - { - throw NullPointerException("ruleId"); - } + + + /** + * Operation: Update Company Call Handling Rule + * Http Put /restapi/v1.0/account/{accountId}/answering-rule/{ruleId} + */ + fun put(companyAnsweringRuleUpdate: com.ringcentral.definitions.CompanyAnsweringRuleUpdate): com.ringcentral.definitions.CompanyAnsweringRuleInfo? { + if (this.ruleId == null) { + throw NullPointerException("ruleId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), companyAnsweringRuleUpdate) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CompanyAnsweringRuleInfo::class.java) - + } - - - /** - * Operation: Delete Company Call Handling Rule - * Http Delete /restapi/v1.0/account/{accountId}/answering-rule/{ruleId} - */ - fun delete() : String? - { - if (this.ruleId == null) - { - throw NullPointerException("ruleId"); - } + + + /** + * Operation: Delete Company Call Handling Rule + * Http Delete /restapi/v1.0/account/{accountId}/answering-rule/{ruleId} + */ + fun delete(): String? { + if (this.ruleId == null) { + throw NullPointerException("ruleId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/businessaddress/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/businessaddress/Index.kt index aa5b40a6..2548b45b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/businessaddress/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/businessaddress/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.account.businessaddress class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/business-address" - } - - /** - * Operation: Get Account Business Address - * Http Get /restapi/v1.0/account/{accountId}/business-address - */ - fun get() : com.ringcentral.definitions.AccountBusinessAddressResource? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/business-address" + } + + /** + * Operation: Get Account Business Address + * Http Get /restapi/v1.0/account/{accountId}/business-address + */ + fun get(): com.ringcentral.definitions.AccountBusinessAddressResource? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AccountBusinessAddressResource::class.java) - + } - - - /** - * Operation: Update Company Business Address - * Http Put /restapi/v1.0/account/{accountId}/business-address - */ - fun put(modifyAccountBusinessAddressRequest: com.ringcentral.definitions.ModifyAccountBusinessAddressRequest) : com.ringcentral.definitions.AccountBusinessAddressResource? - { + + + /** + * Operation: Update Company Business Address + * Http Put /restapi/v1.0/account/{accountId}/business-address + */ + fun put(modifyAccountBusinessAddressRequest: com.ringcentral.definitions.ModifyAccountBusinessAddressRequest): com.ringcentral.definitions.AccountBusinessAddressResource? { val rb: okhttp3.ResponseBody = rc.put(this.path(), modifyAccountBusinessAddressRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AccountBusinessAddressResource::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/businesshours/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/businesshours/Index.kt index cf72e245..08860996 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/businesshours/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/businesshours/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.account.businesshours class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/business-hours" - } - - /** - * Operation: Get Company Business Hours - * Http Get /restapi/v1.0/account/{accountId}/business-hours - */ - fun get() : com.ringcentral.definitions.CompanyBusinessHours? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/business-hours" + } + + /** + * Operation: Get Company Business Hours + * Http Get /restapi/v1.0/account/{accountId}/business-hours + */ + fun get(): com.ringcentral.definitions.CompanyBusinessHours? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CompanyBusinessHours::class.java) - + } - - - /** - * Operation: Update Company Business Hours - * Http Put /restapi/v1.0/account/{accountId}/business-hours - */ - fun put(companyBusinessHoursUpdateRequest: com.ringcentral.definitions.CompanyBusinessHoursUpdateRequest) : com.ringcentral.definitions.CompanyBusinessHours? - { + + + /** + * Operation: Update Company Business Hours + * Http Put /restapi/v1.0/account/{accountId}/business-hours + */ + fun put(companyBusinessHoursUpdateRequest: com.ringcentral.definitions.CompanyBusinessHoursUpdateRequest): com.ringcentral.definitions.CompanyBusinessHours? { val rb: okhttp3.ResponseBody = rc.put(this.path(), companyBusinessHoursUpdateRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CompanyBusinessHours::class.java) - + } - + } 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 ffc280d0..7c68352b 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 @@ -1,47 +1,43 @@ package com.ringcentral.paths.restapi.account.calllog class Index(val parent: com.ringcentral.paths.restapi.account.Index, val callRecordId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && callRecordId != null) - { - return "${parent.path()}/call-log/${callRecordId}" - } - return "${parent.path()}/call-log" + fun path(withParameter: Boolean = true): String { + if (withParameter && callRecordId != null) { + return "${parent.path()}/call-log/${callRecordId}" } - /** - * Operation: Get Company Call Log Records - * Http Get /restapi/v1.0/account/{accountId}/call-log - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ReadCompanyCallLogParameters? = null) : com.ringcentral.definitions.AccountCallLogResponse? - { + return "${parent.path()}/call-log" + } + + /** + * Operation: Get Company Call Log Records + * Http Get /restapi/v1.0/account/{accountId}/call-log + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ReadCompanyCallLogParameters? = null): com.ringcentral.definitions.AccountCallLogResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AccountCallLogResponse::class.java) - + } - - - /** - * Operation: Get Company Call Log Record(s) - * Http Get /restapi/v1.0/account/{accountId}/call-log/{callRecordId} - */ - fun get() : com.ringcentral.definitions.CompanyCallLogRecord? - { - if (this.callRecordId == null) - { - throw NullPointerException("callRecordId"); - } + + + /** + * Operation: Get Company Call Log Record(s) + * Http Get /restapi/v1.0/account/{accountId}/call-log/{callRecordId} + */ + fun get(): com.ringcentral.definitions.CompanyCallLogRecord? { + if (this.callRecordId == null) { + throw NullPointerException("callRecordId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CompanyCallLogRecord::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/calllogsync/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/calllogsync/Index.kt index 6d3aed92..e8d8baa1 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/calllogsync/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/calllogsync/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.calllogsync class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/call-log-sync" - } - /** - * Operation: Sync Company Call Log - * Http Get /restapi/v1.0/account/{accountId}/call-log-sync - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.SyncAccountCallLogParameters? = null) : com.ringcentral.definitions.AccountCallLogSyncResponse? - { + fun path(): String { + return "${parent.path()}/call-log-sync" + } + + /** + * Operation: Sync Company Call Log + * Http Get /restapi/v1.0/account/{accountId}/call-log-sync + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.SyncAccountCallLogParameters? = null): com.ringcentral.definitions.AccountCallLogSyncResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AccountCallLogSyncResponse::class.java) - + } - + } 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 cd2bc936..e24ae94e 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 @@ -1,92 +1,81 @@ package com.ringcentral.paths.restapi.account.callmonitoringgroups class Index(val parent: com.ringcentral.paths.restapi.account.Index, val groupId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && groupId != null) - { - return "${parent.path()}/call-monitoring-groups/${groupId}" - } - return "${parent.path()}/call-monitoring-groups" + fun path(withParameter: Boolean = true): String { + if (withParameter && groupId != null) { + return "${parent.path()}/call-monitoring-groups/${groupId}" } - /** - * Operation: Create Call Monitoring Group - * Http Post /restapi/v1.0/account/{accountId}/call-monitoring-groups - */ - fun post(createCallMonitoringGroupRequest: com.ringcentral.definitions.CreateCallMonitoringGroupRequest) : com.ringcentral.definitions.CallMonitoringGroup? - { + return "${parent.path()}/call-monitoring-groups" + } + + /** + * Operation: Create Call Monitoring Group + * Http Post /restapi/v1.0/account/{accountId}/call-monitoring-groups + */ + fun post(createCallMonitoringGroupRequest: com.ringcentral.definitions.CreateCallMonitoringGroupRequest): com.ringcentral.definitions.CallMonitoringGroup? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createCallMonitoringGroupRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallMonitoringGroup::class.java) - + } - - - /** - * Operation: Get Call Monitoring Groups List - * Http Get /restapi/v1.0/account/{accountId}/call-monitoring-groups - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListCallMonitoringGroupsParameters? = null) : com.ringcentral.definitions.CallMonitoringGroups? - { + + + /** + * Operation: Get Call Monitoring Groups List + * Http Get /restapi/v1.0/account/{accountId}/call-monitoring-groups + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListCallMonitoringGroupsParameters? = null): com.ringcentral.definitions.CallMonitoringGroups? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallMonitoringGroups::class.java) - + } - - - /** - * Operation: Updates Call Monitoring Group - * Http Put /restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId} - */ - fun put(createCallMonitoringGroupRequest: com.ringcentral.definitions.CreateCallMonitoringGroupRequest) : com.ringcentral.definitions.CallMonitoringGroup? - { - if (this.groupId == null) - { - throw NullPointerException("groupId"); - } + + + /** + * Operation: Updates Call Monitoring Group + * Http Put /restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId} + */ + fun put(createCallMonitoringGroupRequest: com.ringcentral.definitions.CreateCallMonitoringGroupRequest): com.ringcentral.definitions.CallMonitoringGroup? { + if (this.groupId == null) { + throw NullPointerException("groupId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), createCallMonitoringGroupRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallMonitoringGroup::class.java) - + } - - - /** - * Operation: Delete Call Monitoring Group - * Http Delete /restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId} - */ - fun delete() : String? - { - if (this.groupId == null) - { - throw NullPointerException("groupId"); - } + + + /** + * Operation: Delete Call Monitoring Group + * Http Delete /restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId} + */ + fun delete(): String? { + if (this.groupId == null) { + throw NullPointerException("groupId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - fun members() : com.ringcentral.paths.restapi.account.callmonitoringgroups.members.Index - { + fun members(): com.ringcentral.paths.restapi.account.callmonitoringgroups.members.Index { return com.ringcentral.paths.restapi.account.callmonitoringgroups.members.Index(this) - } - + } - fun bulkassign() : com.ringcentral.paths.restapi.account.callmonitoringgroups.bulkassign.Index - { + fun bulkassign(): com.ringcentral.paths.restapi.account.callmonitoringgroups.bulkassign.Index { return com.ringcentral.paths.restapi.account.callmonitoringgroups.bulkassign.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/bulkassign/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/bulkassign/Index.kt index b719d9d0..95b5a586 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/bulkassign/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/bulkassign/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.callmonitoringgroups.bulkassign class Index(val parent: com.ringcentral.paths.restapi.account.callmonitoringgroups.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/bulk-assign" - } - /** - * Operation: Update Call Monitoring Group List - * Http Post /restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId}/bulk-assign - */ - fun post(callMonitoringBulkAssign: com.ringcentral.definitions.CallMonitoringBulkAssign) : String? - { + fun path(): String { + return "${parent.path()}/bulk-assign" + } + + /** + * Operation: Update Call Monitoring Group List + * Http Post /restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId}/bulk-assign + */ + fun post(callMonitoringBulkAssign: com.ringcentral.definitions.CallMonitoringBulkAssign): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), callMonitoringBulkAssign) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/members/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/members/Index.kt index 0eebf050..d7b87738 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/members/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callmonitoringgroups/members/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.callmonitoringgroups.members class Index(val parent: com.ringcentral.paths.restapi.account.callmonitoringgroups.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/members" - } - /** - * Operation: Get Call Monitoring Group Member List - * Http Get /restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId}/members - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListCallMonitoringGroupMembersParameters? = null) : com.ringcentral.definitions.CallMonitoringGroupMemberList? - { + fun path(): String { + return "${parent.path()}/members" + } + + /** + * Operation: Get Call Monitoring Group Member List + * Http Get /restapi/v1.0/account/{accountId}/call-monitoring-groups/{groupId}/members + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListCallMonitoringGroupMembersParameters? = null): com.ringcentral.definitions.CallMonitoringGroupMemberList? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallMonitoringGroupMemberList::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callqueues/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callqueues/Index.kt index fbfd0f32..996c8b33 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callqueues/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callqueues/Index.kt @@ -1,43 +1,37 @@ package com.ringcentral.paths.restapi.account.callqueues class Index(val parent: com.ringcentral.paths.restapi.account.Index, val groupId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && groupId != null) - { - return "${parent.path()}/call-queues/${groupId}" - } - return "${parent.path()}/call-queues" + fun path(withParameter: Boolean = true): String { + if (withParameter && groupId != null) { + return "${parent.path()}/call-queues/${groupId}" } - /** - * Operation: Get Call Queues - * Http Get /restapi/v1.0/account/{accountId}/call-queues - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListCallQueuesParameters? = null) : com.ringcentral.definitions.CallQueues? - { + return "${parent.path()}/call-queues" + } + + /** + * Operation: Get Call Queues + * Http Get /restapi/v1.0/account/{accountId}/call-queues + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListCallQueuesParameters? = null): com.ringcentral.definitions.CallQueues? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallQueues::class.java) - + } - - fun members() : com.ringcentral.paths.restapi.account.callqueues.members.Index - { + fun members(): com.ringcentral.paths.restapi.account.callqueues.members.Index { return com.ringcentral.paths.restapi.account.callqueues.members.Index(this) - } - + } - fun bulkassign() : com.ringcentral.paths.restapi.account.callqueues.bulkassign.Index - { + fun bulkassign(): com.ringcentral.paths.restapi.account.callqueues.bulkassign.Index { return com.ringcentral.paths.restapi.account.callqueues.bulkassign.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callqueues/bulkassign/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callqueues/bulkassign/Index.kt index aaee6e95..b9f78d36 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callqueues/bulkassign/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callqueues/bulkassign/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.callqueues.bulkassign class Index(val parent: com.ringcentral.paths.restapi.account.callqueues.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/bulk-assign" - } - /** - * Operation: Assign Multiple Call Queue Members - * Http Post /restapi/v1.0/account/{accountId}/call-queues/{groupId}/bulk-assign - */ - fun post(callQueueBulkAssignResource: com.ringcentral.definitions.CallQueueBulkAssignResource) : String? - { + fun path(): String { + return "${parent.path()}/bulk-assign" + } + + /** + * Operation: Assign Multiple Call Queue Members + * Http Post /restapi/v1.0/account/{accountId}/call-queues/{groupId}/bulk-assign + */ + fun post(callQueueBulkAssignResource: com.ringcentral.definitions.CallQueueBulkAssignResource): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), callQueueBulkAssignResource) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callqueues/members/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callqueues/members/Index.kt index 1482cddb..62ddd973 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callqueues/members/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callqueues/members/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.callqueues.members class Index(val parent: com.ringcentral.paths.restapi.account.callqueues.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/members" - } - /** - * Operation: Get Call Queue Members - * Http Get /restapi/v1.0/account/{accountId}/call-queues/{groupId}/members - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListCallQueueMembersParameters? = null) : com.ringcentral.definitions.CallQueueMembers? - { + fun path(): String { + return "${parent.path()}/members" + } + + /** + * Operation: Get Call Queue Members + * Http Get /restapi/v1.0/account/{accountId}/call-queues/{groupId}/members + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListCallQueueMembersParameters? = null): com.ringcentral.definitions.CallQueueMembers? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallQueueMembers::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callrecording/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callrecording/Index.kt index fa7f45a5..98f5d5ea 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callrecording/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callrecording/Index.kt @@ -1,58 +1,50 @@ package com.ringcentral.paths.restapi.account.callrecording class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/call-recording" - } - - /** - * Operation: Get Call Recording Settings - * Http Get /restapi/v1.0/account/{accountId}/call-recording - */ - fun get() : com.ringcentral.definitions.CallRecordingSettingsResource? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/call-recording" + } + + /** + * Operation: Get Call Recording Settings + * Http Get /restapi/v1.0/account/{accountId}/call-recording + */ + fun get(): com.ringcentral.definitions.CallRecordingSettingsResource? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallRecordingSettingsResource::class.java) - + } - - - /** - * Operation: Update Call Recording Settings - * Http Put /restapi/v1.0/account/{accountId}/call-recording - */ - fun put(callRecordingSettingsResource: com.ringcentral.definitions.CallRecordingSettingsResource) : com.ringcentral.definitions.CallRecordingSettingsResource? - { + + + /** + * Operation: Update Call Recording Settings + * Http Put /restapi/v1.0/account/{accountId}/call-recording + */ + fun put(callRecordingSettingsResource: com.ringcentral.definitions.CallRecordingSettingsResource): com.ringcentral.definitions.CallRecordingSettingsResource? { val rb: okhttp3.ResponseBody = rc.put(this.path(), callRecordingSettingsResource) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallRecordingSettingsResource::class.java) - + } - - fun extensions() : com.ringcentral.paths.restapi.account.callrecording.extensions.Index - { + fun extensions(): com.ringcentral.paths.restapi.account.callrecording.extensions.Index { return com.ringcentral.paths.restapi.account.callrecording.extensions.Index(this) - } - + } - fun bulkassign() : com.ringcentral.paths.restapi.account.callrecording.bulkassign.Index - { + fun bulkassign(): com.ringcentral.paths.restapi.account.callrecording.bulkassign.Index { return com.ringcentral.paths.restapi.account.callrecording.bulkassign.Index(this) - } - + } - @JvmOverloads fun customgreetings(greetingId: String? = null) : com.ringcentral.paths.restapi.account.callrecording.customgreetings.Index - { + @JvmOverloads + fun customgreetings(greetingId: String? = null): com.ringcentral.paths.restapi.account.callrecording.customgreetings.Index { return com.ringcentral.paths.restapi.account.callrecording.customgreetings.Index(this, greetingId) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callrecording/bulkassign/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callrecording/bulkassign/Index.kt index ce6de73f..ff553d8a 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callrecording/bulkassign/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callrecording/bulkassign/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.callrecording.bulkassign class Index(val parent: com.ringcentral.paths.restapi.account.callrecording.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/bulk-assign" - } - /** - * Operation: Update Call Recording Extension List - * Http Post /restapi/v1.0/account/{accountId}/call-recording/bulk-assign - */ - fun post(bulkAccountCallRecordingsResource: com.ringcentral.definitions.BulkAccountCallRecordingsResource) : String? - { + fun path(): String { + return "${parent.path()}/bulk-assign" + } + + /** + * Operation: Update Call Recording Extension List + * Http Post /restapi/v1.0/account/{accountId}/call-recording/bulk-assign + */ + fun post(bulkAccountCallRecordingsResource: com.ringcentral.definitions.BulkAccountCallRecordingsResource): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), bulkAccountCallRecordingsResource) - + return rb.string() - + } - + } 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 b6f900c6..82d0c61a 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 @@ -1,47 +1,43 @@ package com.ringcentral.paths.restapi.account.callrecording.customgreetings class Index(val parent: com.ringcentral.paths.restapi.account.callrecording.Index, val greetingId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && greetingId != null) - { - return "${parent.path()}/custom-greetings/${greetingId}" - } - return "${parent.path()}/custom-greetings" + fun path(withParameter: Boolean = true): String { + if (withParameter && greetingId != null) { + return "${parent.path()}/custom-greetings/${greetingId}" } - /** - * Operation: Get Call Recording Custom Greeting List - * Http Get /restapi/v1.0/account/{accountId}/call-recording/custom-greetings - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListCallRecordingCustomGreetingsParameters? = null) : com.ringcentral.definitions.CallRecordingCustomGreetings? - { + return "${parent.path()}/custom-greetings" + } + + /** + * Operation: Get Call Recording Custom Greeting List + * Http Get /restapi/v1.0/account/{accountId}/call-recording/custom-greetings + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListCallRecordingCustomGreetingsParameters? = null): com.ringcentral.definitions.CallRecordingCustomGreetings? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallRecordingCustomGreetings::class.java) - + } - - - /** - * Operation: Delete Call Recording Custom Greeting - * Http Delete /restapi/v1.0/account/{accountId}/call-recording/custom-greetings/{greetingId} - */ - fun delete() : String? - { - if (this.greetingId == null) - { - throw NullPointerException("greetingId"); - } + + + /** + * Operation: Delete Call Recording Custom Greeting + * Http Delete /restapi/v1.0/account/{accountId}/call-recording/custom-greetings/{greetingId} + */ + fun delete(): String? { + if (this.greetingId == null) { + throw NullPointerException("greetingId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/callrecording/extensions/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/callrecording/extensions/Index.kt index bdff270b..1f87359b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/callrecording/extensions/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/callrecording/extensions/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.callrecording.extensions class Index(val parent: com.ringcentral.paths.restapi.account.callrecording.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/extensions" - } - /** - * Operation: Get Call Recording Extension List - * Http Get /restapi/v1.0/account/{accountId}/call-recording/extensions - */ - fun get() : com.ringcentral.definitions.CallRecordingExtensions? - { + fun path(): String { + return "${parent.path()}/extensions" + } + + /** + * Operation: Get Call Recording Extension List + * Http Get /restapi/v1.0/account/{accountId}/call-recording/extensions + */ + fun get(): com.ringcentral.definitions.CallRecordingExtensions? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallRecordingExtensions::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/department/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/department/Index.kt index b5e9dd47..a8383cd4 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/department/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/department/Index.kt @@ -1,30 +1,25 @@ package com.ringcentral.paths.restapi.account.department class Index(val parent: com.ringcentral.paths.restapi.account.Index, val departmentId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && departmentId != null) - { - return "${parent.path()}/department/${departmentId}" - } - return "${parent.path()}/department" + fun path(withParameter: Boolean = true): String { + if (withParameter && departmentId != null) { + return "${parent.path()}/department/${departmentId}" } + return "${parent.path()}/department" + } - fun bulkassign() : com.ringcentral.paths.restapi.account.department.bulkassign.Index - { + + fun bulkassign(): com.ringcentral.paths.restapi.account.department.bulkassign.Index { return com.ringcentral.paths.restapi.account.department.bulkassign.Index(this) - } - + } - fun members() : com.ringcentral.paths.restapi.account.department.members.Index - { + fun members(): com.ringcentral.paths.restapi.account.department.members.Index { return com.ringcentral.paths.restapi.account.department.members.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/department/bulkassign/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/department/bulkassign/Index.kt index efdbd3a4..c7b9b99d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/department/bulkassign/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/department/bulkassign/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.department.bulkassign class Index(val parent: com.ringcentral.paths.restapi.account.department.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/bulk-assign" - } - /** - * Operation: Assign Multiple Department Members - * Http Post /restapi/v1.0/account/{accountId}/department/bulk-assign - */ - fun post(departmentBulkAssignResource: com.ringcentral.definitions.DepartmentBulkAssignResource) : String? - { + fun path(): String { + return "${parent.path()}/bulk-assign" + } + + /** + * Operation: Assign Multiple Department Members + * Http Post /restapi/v1.0/account/{accountId}/department/bulk-assign + */ + fun post(departmentBulkAssignResource: com.ringcentral.definitions.DepartmentBulkAssignResource): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), departmentBulkAssignResource) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/department/members/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/department/members/Index.kt index 919fdf44..ab114ac1 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/department/members/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/department/members/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.department.members class Index(val parent: com.ringcentral.paths.restapi.account.department.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/members" - } - /** - * Operation: Get Department Member List - * Http Get /restapi/v1.0/account/{accountId}/department/{departmentId}/members - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListDepartmentMembersParameters? = null) : com.ringcentral.definitions.DepartmentMemberList? - { + fun path(): String { + return "${parent.path()}/members" + } + + /** + * Operation: Get Department Member List + * Http Get /restapi/v1.0/account/{accountId}/department/{departmentId}/members + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListDepartmentMembersParameters? = null): com.ringcentral.definitions.DepartmentMemberList? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.DepartmentMemberList::class.java) - + } - + } 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 4c28afb3..78a8cfd1 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 @@ -1,52 +1,47 @@ package com.ringcentral.paths.restapi.account.device class Index(val parent: com.ringcentral.paths.restapi.account.Index, val deviceId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && deviceId != null) - { - return "${parent.path()}/device/${deviceId}" - } - return "${parent.path()}/device" + fun path(withParameter: Boolean = true): String { + if (withParameter && deviceId != null) { + return "${parent.path()}/device/${deviceId}" } - /** - * Operation: Get Device - * Http Get /restapi/v1.0/account/{accountId}/device/{deviceId} - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadDeviceParameters? = null) : com.ringcentral.definitions.GetDeviceInfoResponse? - { - if (this.deviceId == null) - { - throw NullPointerException("deviceId"); - } + return "${parent.path()}/device" + } + + /** + * Operation: Get Device + * Http Get /restapi/v1.0/account/{accountId}/device/{deviceId} + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadDeviceParameters? = null): com.ringcentral.definitions.GetDeviceInfoResponse? { + if (this.deviceId == null) { + throw NullPointerException("deviceId") + } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetDeviceInfoResponse::class.java) - + } - - - /** - * Operation: Update Device - * Http Put /restapi/v1.0/account/{accountId}/device/{deviceId} - */ - fun put(accountDeviceUpdate: com.ringcentral.definitions.AccountDeviceUpdate) : com.ringcentral.definitions.DeviceResource? - { - if (this.deviceId == null) - { - throw NullPointerException("deviceId"); - } + + + /** + * Operation: Update Device + * Http Put /restapi/v1.0/account/{accountId}/device/{deviceId} + */ + fun put(accountDeviceUpdate: com.ringcentral.definitions.AccountDeviceUpdate): com.ringcentral.definitions.DeviceResource? { + if (this.deviceId == null) { + throw NullPointerException("deviceId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), accountDeviceUpdate) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.DeviceResource::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/directory/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/directory/Index.kt index 2ab1b781..08bf0417 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/directory/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/directory/Index.kt @@ -1,25 +1,22 @@ package com.ringcentral.paths.restapi.account.directory class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/directory" - } + fun path(): String { + return "${parent.path()}/directory" + } - @JvmOverloads fun entries(entryId: String? = null) : com.ringcentral.paths.restapi.account.directory.entries.Index - { + + @JvmOverloads + fun entries(entryId: String? = null): com.ringcentral.paths.restapi.account.directory.entries.Index { return com.ringcentral.paths.restapi.account.directory.entries.Index(this, entryId) - } - + } - fun federation() : com.ringcentral.paths.restapi.account.directory.federation.Index - { + fun federation(): com.ringcentral.paths.restapi.account.directory.federation.Index { return com.ringcentral.paths.restapi.account.directory.federation.Index(this) - } - -} \ No newline at end of file + } + +} 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 96428431..ffbd86d6 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 @@ -1,54 +1,48 @@ package com.ringcentral.paths.restapi.account.directory.entries class Index(val parent: com.ringcentral.paths.restapi.account.directory.Index, val entryId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && entryId != null) - { - return "${parent.path()}/entries/${entryId}" - } - return "${parent.path()}/entries" + fun path(withParameter: Boolean = true): String { + if (withParameter && entryId != null) { + return "${parent.path()}/entries/${entryId}" } - /** - * Operation: Get Company Directory Entries - * Http Get /restapi/v1.0/account/{accountId}/directory/entries - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListDirectoryEntriesParameters? = null) : com.ringcentral.definitions.DirectoryResource? - { + return "${parent.path()}/entries" + } + + /** + * Operation: Get Company Directory Entries + * Http Get /restapi/v1.0/account/{accountId}/directory/entries + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListDirectoryEntriesParameters? = null): com.ringcentral.definitions.DirectoryResource? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.DirectoryResource::class.java) - + } - - - /** - * Operation: Get Corporate Directory Entry - * Http Get /restapi/v1.0/account/{accountId}/directory/entries/{entryId} - */ - fun get() : com.ringcentral.definitions.ContactResource? - { - if (this.entryId == null) - { - throw NullPointerException("entryId"); - } + + + /** + * Operation: Get Corporate Directory Entry + * Http Get /restapi/v1.0/account/{accountId}/directory/entries/{entryId} + */ + fun get(): com.ringcentral.definitions.ContactResource? { + if (this.entryId == null) { + throw NullPointerException("entryId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ContactResource::class.java) - + } - - fun search() : com.ringcentral.paths.restapi.account.directory.entries.search.Index - { + fun search(): com.ringcentral.paths.restapi.account.directory.entries.search.Index { return com.ringcentral.paths.restapi.account.directory.entries.search.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/directory/entries/search/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/directory/entries/search/Index.kt index 3c1ea08a..e4608492 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/directory/entries/search/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/directory/entries/search/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.directory.entries.search class Index(val parent: com.ringcentral.paths.restapi.account.directory.entries.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/search" - } - /** - * Operation: Search Company Directory Entries - * Http Post /restapi/v1.0/account/{accountId}/directory/entries/search - */ - fun post(searchDirectoryEntriesRequest: com.ringcentral.definitions.SearchDirectoryEntriesRequest) : com.ringcentral.definitions.DirectoryResource? - { + fun path(): String { + return "${parent.path()}/search" + } + + /** + * Operation: Search Company Directory Entries + * Http Post /restapi/v1.0/account/{accountId}/directory/entries/search + */ + fun post(searchDirectoryEntriesRequest: com.ringcentral.definitions.SearchDirectoryEntriesRequest): com.ringcentral.definitions.DirectoryResource? { val rb: okhttp3.ResponseBody = rc.post(this.path(), searchDirectoryEntriesRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.DirectoryResource::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/directory/federation/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/directory/federation/Index.kt index 511aa5c1..11a1774e 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/directory/federation/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/directory/federation/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.directory.federation class Index(val parent: com.ringcentral.paths.restapi.account.directory.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/federation" - } - /** - * Operation: Get Account Federation - * Http Get /restapi/v1.0/account/{accountId}/directory/federation - */ - fun get() : com.ringcentral.definitions.FederationResource? - { + fun path(): String { + return "${parent.path()}/federation" + } + + /** + * Operation: Get Account Federation + * Http Get /restapi/v1.0/account/{accountId}/directory/federation + */ + fun get(): com.ringcentral.definitions.FederationResource? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.FederationResource::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/Index.kt index 0a5bf91c..bb4d2f36 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/Index.kt @@ -1,95 +1,75 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/emergency-address-auto-update" - } + fun path(): String { + return "${parent.path()}/emergency-address-auto-update" + } - fun users() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.users.Index - { + + fun users(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.users.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.users.Index(this) - } - + } - @JvmOverloads fun wirelesspoints(pointId: String? = null) : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspoints.Index - { + @JvmOverloads + fun wirelesspoints(pointId: String? = null): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspoints.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspoints.Index(this, pointId) - } - + } - @JvmOverloads fun networks(networkId: String? = null) : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.networks.Index - { + @JvmOverloads + fun networks(networkId: String? = null): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.networks.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.networks.Index(this, networkId) - } - + } - fun devices() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.devices.Index - { + fun devices(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.devices.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.devices.Index(this) - } - + } - @JvmOverloads fun switches(switchId: String? = null) : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switches.Index - { + @JvmOverloads + fun switches(switchId: String? = null): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switches.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switches.Index(this, switchId) - } - + } - fun switchesbulkcreate() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkcreate.Index - { + fun switchesbulkcreate(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkcreate.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkcreate.Index(this) - } - + } - fun switchesbulkupdate() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkupdate.Index - { + fun switchesbulkupdate(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkupdate.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkupdate.Index(this) - } - + } - fun wirelesspointsbulkcreate() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkcreate.Index - { + fun wirelesspointsbulkcreate(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkcreate.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkcreate.Index(this) - } - + } - fun wirelesspointsbulkupdate() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkupdate.Index - { + fun wirelesspointsbulkupdate(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkupdate.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkupdate.Index(this) - } - + } - fun wirelesspointsbulkvalidate() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkvalidate.Index - { + fun wirelesspointsbulkvalidate(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkvalidate.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkvalidate.Index(this) - } - + } - fun switchesbulkvalidate() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkvalidate.Index - { + fun switchesbulkvalidate(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkvalidate.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkvalidate.Index(this) - } - + } - @JvmOverloads fun tasks(taskId: String? = null) : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.tasks.Index - { + @JvmOverloads + fun tasks(taskId: String? = null): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.tasks.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.tasks.Index(this, taskId) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/devices/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/devices/Index.kt index 22ad8449..f3ac047d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/devices/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/devices/Index.kt @@ -1,31 +1,28 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.devices class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/devices" - } - - /** - * Operation: Get Device List - * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/devices - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListDevicesAutomaticLocationUpdatesParameters? = null) : com.ringcentral.definitions.ListDevicesAutomaticLocationUpdates? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/devices" + } + + /** + * Operation: Get Device List + * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/devices + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListDevicesAutomaticLocationUpdatesParameters? = null): com.ringcentral.definitions.ListDevicesAutomaticLocationUpdates? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ListDevicesAutomaticLocationUpdates::class.java) - + } - - fun bulkassign() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.devices.bulkassign.Index - { + fun bulkassign(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.devices.bulkassign.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.devices.bulkassign.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/devices/bulkassign/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/devices/bulkassign/Index.kt index 948d0e36..5034ac4b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/devices/bulkassign/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/devices/bulkassign/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.devices.bulkassign class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.devices.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/bulk-assign" - } - /** - * Operation: Enable Automatic Location Updates for Devices - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/devices/bulk-assign - */ - fun post(assignMultipleDevicesAutomaticLocationUpdates: com.ringcentral.definitions.AssignMultipleDevicesAutomaticLocationUpdates) : String? - { + fun path(): String { + return "${parent.path()}/bulk-assign" + } + + /** + * Operation: Enable Automatic Location Updates for Devices + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/devices/bulk-assign + */ + fun post(assignMultipleDevicesAutomaticLocationUpdates: com.ringcentral.definitions.AssignMultipleDevicesAutomaticLocationUpdates): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), assignMultipleDevicesAutomaticLocationUpdates) - + return rb.string() - + } - + } 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 06bf7561..8baf8d84 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 @@ -1,96 +1,86 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.networks class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index, val networkId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && networkId != null) - { - return "${parent.path()}/networks/${networkId}" - } - return "${parent.path()}/networks" + fun path(withParameter: Boolean = true): String { + if (withParameter && networkId != null) { + return "${parent.path()}/networks/${networkId}" } - /** - * Operation: Get Network Map - * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks - */ - fun list() : com.ringcentral.definitions.NetworksList? - { + return "${parent.path()}/networks" + } + + /** + * Operation: Get Network Map + * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks + */ + fun list(): com.ringcentral.definitions.NetworksList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.NetworksList::class.java) - + } - - - /** - * Operation: Create Network - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks - */ - fun post(createNetworkRequest: com.ringcentral.definitions.CreateNetworkRequest) : com.ringcentral.definitions.NetworkInfo? - { + + + /** + * Operation: Create Network + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks + */ + fun post(createNetworkRequest: com.ringcentral.definitions.CreateNetworkRequest): com.ringcentral.definitions.NetworkInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createNetworkRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.NetworkInfo::class.java) - + } - - - /** - * Operation: Get Network - * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks/{networkId} - */ - fun get() : com.ringcentral.definitions.NetworkInfo? - { - if (this.networkId == null) - { - throw NullPointerException("networkId"); - } + + + /** + * Operation: Get Network + * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks/{networkId} + */ + fun get(): com.ringcentral.definitions.NetworkInfo? { + if (this.networkId == null) { + throw NullPointerException("networkId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.NetworkInfo::class.java) - + } - - - /** - * Operation: Update Network - * Http Put /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks/{networkId} - */ - fun put(updateNetworkRequest: com.ringcentral.definitions.UpdateNetworkRequest) : String? - { - if (this.networkId == null) - { - throw NullPointerException("networkId"); - } + + + /** + * Operation: Update Network + * Http Put /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks/{networkId} + */ + fun put(updateNetworkRequest: com.ringcentral.definitions.UpdateNetworkRequest): String? { + if (this.networkId == null) { + throw NullPointerException("networkId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateNetworkRequest) - + return rb.string() - + } - - - /** - * Operation: Delete Network - * Http Delete /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks/{networkId} - */ - fun delete() : String? - { - if (this.networkId == null) - { - throw NullPointerException("networkId"); - } + + + /** + * Operation: Delete Network + * Http Delete /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks/{networkId} + */ + fun delete(): String? { + if (this.networkId == null) { + throw NullPointerException("networkId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } 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 19524bb8..7e041d9d 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 @@ -1,96 +1,87 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switches class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index, val switchId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && switchId != null) - { - return "${parent.path()}/switches/${switchId}" - } - return "${parent.path()}/switches" + fun path(withParameter: Boolean = true): String { + if (withParameter && switchId != null) { + return "${parent.path()}/switches/${switchId}" } - /** - * Operation: Get Account Switch List - * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListAccountSwitchesParameters? = null) : com.ringcentral.definitions.SwitchesList? - { + return "${parent.path()}/switches" + } + + /** + * Operation: Get Account Switch List + * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListAccountSwitchesParameters? = null): com.ringcentral.definitions.SwitchesList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.SwitchesList::class.java) - + } - - - /** - * Operation: Create Switch - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches - */ - fun post(createSwitchInfo: com.ringcentral.definitions.CreateSwitchInfo) : com.ringcentral.definitions.SwitchInfo? - { + + + /** + * Operation: Create Switch + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches + */ + fun post(createSwitchInfo: com.ringcentral.definitions.CreateSwitchInfo): com.ringcentral.definitions.SwitchInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createSwitchInfo) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.SwitchInfo::class.java) - + } - - - /** - * Operation: Get Switch - * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches/{switchId} - */ - fun get() : com.ringcentral.definitions.SwitchInfo? - { - if (this.switchId == null) - { - throw NullPointerException("switchId"); - } + + + /** + * Operation: Get Switch + * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches/{switchId} + */ + fun get(): com.ringcentral.definitions.SwitchInfo? { + if (this.switchId == null) { + throw NullPointerException("switchId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.SwitchInfo::class.java) - + } - - - /** - * Operation: Update Switch - * Http Put /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches/{switchId} - */ - fun put(updateSwitchInfo: com.ringcentral.definitions.UpdateSwitchInfo) : com.ringcentral.definitions.SwitchInfo? - { - if (this.switchId == null) - { - throw NullPointerException("switchId"); - } + + + /** + * Operation: Update Switch + * Http Put /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches/{switchId} + */ + fun put(updateSwitchInfo: com.ringcentral.definitions.UpdateSwitchInfo): com.ringcentral.definitions.SwitchInfo? { + if (this.switchId == null) { + throw NullPointerException("switchId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateSwitchInfo) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.SwitchInfo::class.java) - + } - - - /** - * Operation: Delete Switch - * Http Delete /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches/{switchId} - */ - fun delete() : String? - { - if (this.switchId == null) - { - throw NullPointerException("switchId"); - } + + + /** + * Operation: Delete Switch + * Http Delete /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches/{switchId} + */ + fun delete(): String? { + if (this.switchId == null) { + throw NullPointerException("switchId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkcreate/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkcreate/Index.kt index be039872..ebe9020d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkcreate/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkcreate/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkcreate class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/switches-bulk-create" - } - /** - * Operation: Create Multiple Switches - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches-bulk-create - */ - fun post(createMultipleSwitchesRequest: com.ringcentral.definitions.CreateMultipleSwitchesRequest) : com.ringcentral.definitions.CreateMultipleSwitchesResponse? - { + fun path(): String { + return "${parent.path()}/switches-bulk-create" + } + + /** + * Operation: Create Multiple Switches + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches-bulk-create + */ + fun post(createMultipleSwitchesRequest: com.ringcentral.definitions.CreateMultipleSwitchesRequest): com.ringcentral.definitions.CreateMultipleSwitchesResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), createMultipleSwitchesRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CreateMultipleSwitchesResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkupdate/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkupdate/Index.kt index f6969ffb..edbad950 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkupdate/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkupdate/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkupdate class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/switches-bulk-update" - } - /** - * Operation: Update Multiple Switches - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches-bulk-update - */ - fun post(updateMultipleSwitchesRequest: com.ringcentral.definitions.UpdateMultipleSwitchesRequest) : com.ringcentral.definitions.UpdateMultipleSwitchesResponse? - { + fun path(): String { + return "${parent.path()}/switches-bulk-update" + } + + /** + * Operation: Update Multiple Switches + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches-bulk-update + */ + fun post(updateMultipleSwitchesRequest: com.ringcentral.definitions.UpdateMultipleSwitchesRequest): com.ringcentral.definitions.UpdateMultipleSwitchesResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), updateMultipleSwitchesRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UpdateMultipleSwitchesResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkvalidate/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkvalidate/Index.kt index 378f5ee0..adb7e308 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkvalidate/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/switchesbulkvalidate/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.switchesbulkvalidate class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/switches-bulk-validate" - } - /** - * Operation: Validate Multiple Switches - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches-bulk-validate - */ - fun post(validateMultipleSwitchesRequest: com.ringcentral.definitions.ValidateMultipleSwitchesRequest) : com.ringcentral.definitions.ValidateMultipleSwitchesResponse? - { + fun path(): String { + return "${parent.path()}/switches-bulk-validate" + } + + /** + * Operation: Validate Multiple Switches + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/switches-bulk-validate + */ + fun post(validateMultipleSwitchesRequest: com.ringcentral.definitions.ValidateMultipleSwitchesRequest): com.ringcentral.definitions.ValidateMultipleSwitchesResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), validateMultipleSwitchesRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ValidateMultipleSwitchesResponse::class.java) - + } - + } 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 750dae00..e47217d4 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 @@ -1,34 +1,30 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.tasks class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index, val taskId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && taskId != null) - { - return "${parent.path()}/tasks/${taskId}" - } - return "${parent.path()}/tasks" + fun path(withParameter: Boolean = true): String { + if (withParameter && taskId != null) { + return "${parent.path()}/tasks/${taskId}" } - /** - * Operation: Get Emergency Map Configuration Task - * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/tasks/{taskId} - */ - fun get() : com.ringcentral.definitions.AutomaticLocationUpdatesTaskInfo? - { - if (this.taskId == null) - { - throw NullPointerException("taskId"); - } + return "${parent.path()}/tasks" + } + + /** + * Operation: Get Emergency Map Configuration Task + * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/tasks/{taskId} + */ + fun get(): com.ringcentral.definitions.AutomaticLocationUpdatesTaskInfo? { + if (this.taskId == null) { + throw NullPointerException("taskId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AutomaticLocationUpdatesTaskInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/users/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/users/Index.kt index 807d9a47..affc2d96 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/users/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/users/Index.kt @@ -1,31 +1,28 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.users class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/users" - } - - /** - * Operation: Get User List - * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/users - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListAutomaticLocationUpdatesUsersParameters? = null) : com.ringcentral.definitions.AutomaticLocationUpdatesUserList? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/users" + } + + /** + * Operation: Get User List + * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/users + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListAutomaticLocationUpdatesUsersParameters? = null): com.ringcentral.definitions.AutomaticLocationUpdatesUserList? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AutomaticLocationUpdatesUserList::class.java) - + } - - fun bulkassign() : com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.users.bulkassign.Index - { + fun bulkassign(): com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.users.bulkassign.Index { return com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.users.bulkassign.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/users/bulkassign/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/users/bulkassign/Index.kt index ffaef8b8..361e3cab 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/users/bulkassign/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/users/bulkassign/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.users.bulkassign class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.users.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/bulk-assign" - } - /** - * Operation: Enable Automatic Location Updates for Users - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/users/bulk-assign - */ - fun post(bulkAssignAutomaticaLocationUpdatesUsers: com.ringcentral.definitions.BulkAssignAutomaticaLocationUpdatesUsers) : String? - { + fun path(): String { + return "${parent.path()}/bulk-assign" + } + + /** + * Operation: Enable Automatic Location Updates for Users + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/users/bulk-assign + */ + fun post(bulkAssignAutomaticaLocationUpdatesUsers: com.ringcentral.definitions.BulkAssignAutomaticaLocationUpdatesUsers): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), bulkAssignAutomaticaLocationUpdatesUsers) - + return rb.string() - + } - + } 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 dc78e706..c5377897 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 @@ -1,96 +1,87 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspoints class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index, val pointId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && pointId != null) - { - return "${parent.path()}/wireless-points/${pointId}" - } - return "${parent.path()}/wireless-points" + fun path(withParameter: Boolean = true): String { + if (withParameter && pointId != null) { + return "${parent.path()}/wireless-points/${pointId}" } - /** - * Operation: Get Wireless Point List - * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListWirelessPointsParameters? = null) : com.ringcentral.definitions.WirelessPointsList? - { + return "${parent.path()}/wireless-points" + } + + /** + * Operation: Get Wireless Point List + * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListWirelessPointsParameters? = null): com.ringcentral.definitions.WirelessPointsList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.WirelessPointsList::class.java) - + } - - - /** - * Operation: Create Wireless Point - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points - */ - fun post(createWirelessPoint: com.ringcentral.definitions.CreateWirelessPoint) : com.ringcentral.definitions.WirelessPointInfo? - { + + + /** + * Operation: Create Wireless Point + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points + */ + fun post(createWirelessPoint: com.ringcentral.definitions.CreateWirelessPoint): com.ringcentral.definitions.WirelessPointInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createWirelessPoint) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.WirelessPointInfo::class.java) - + } - - - /** - * Operation: Get Wireless Point - * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points/{pointId} - */ - fun get() : com.ringcentral.definitions.WirelessPointInfo? - { - if (this.pointId == null) - { - throw NullPointerException("pointId"); - } + + + /** + * Operation: Get Wireless Point + * Http Get /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points/{pointId} + */ + fun get(): com.ringcentral.definitions.WirelessPointInfo? { + if (this.pointId == null) { + throw NullPointerException("pointId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.WirelessPointInfo::class.java) - + } - - - /** - * Operation: Update Wireless Point - * Http Put /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points/{pointId} - */ - fun put(updateWirelessPoint: com.ringcentral.definitions.UpdateWirelessPoint) : com.ringcentral.definitions.WirelessPointInfo? - { - if (this.pointId == null) - { - throw NullPointerException("pointId"); - } + + + /** + * Operation: Update Wireless Point + * Http Put /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points/{pointId} + */ + fun put(updateWirelessPoint: com.ringcentral.definitions.UpdateWirelessPoint): com.ringcentral.definitions.WirelessPointInfo? { + if (this.pointId == null) { + throw NullPointerException("pointId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateWirelessPoint) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.WirelessPointInfo::class.java) - + } - - - /** - * Operation: Delete Wireless Point - * Http Delete /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points/{pointId} - */ - fun delete() : String? - { - if (this.pointId == null) - { - throw NullPointerException("pointId"); - } + + + /** + * Operation: Delete Wireless Point + * Http Delete /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points/{pointId} + */ + fun delete(): String? { + if (this.pointId == null) { + throw NullPointerException("pointId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkcreate/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkcreate/Index.kt index fb106eb8..b29543ff 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkcreate/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkcreate/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkcreate class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/wireless-points-bulk-create" - } - /** - * Operation: Create Multiple Wireless Points - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points-bulk-create - */ - fun post(createMultipleWirelessPointsRequest: com.ringcentral.definitions.CreateMultipleWirelessPointsRequest) : com.ringcentral.definitions.CreateMultipleWirelessPointsResponse? - { + fun path(): String { + return "${parent.path()}/wireless-points-bulk-create" + } + + /** + * Operation: Create Multiple Wireless Points + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points-bulk-create + */ + fun post(createMultipleWirelessPointsRequest: com.ringcentral.definitions.CreateMultipleWirelessPointsRequest): com.ringcentral.definitions.CreateMultipleWirelessPointsResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), createMultipleWirelessPointsRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CreateMultipleWirelessPointsResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkupdate/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkupdate/Index.kt index fd3c2751..df634adf 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkupdate/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkupdate/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkupdate class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/wireless-points-bulk-update" - } - /** - * Operation: Update Multiple Wireless Points - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points-bulk-update - */ - fun post(updateMultipleWirelessPointsRequest: com.ringcentral.definitions.UpdateMultipleWirelessPointsRequest) : com.ringcentral.definitions.UpdateMultipleWirelessPointsResponse? - { + fun path(): String { + return "${parent.path()}/wireless-points-bulk-update" + } + + /** + * Operation: Update Multiple Wireless Points + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points-bulk-update + */ + fun post(updateMultipleWirelessPointsRequest: com.ringcentral.definitions.UpdateMultipleWirelessPointsRequest): com.ringcentral.definitions.UpdateMultipleWirelessPointsResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), updateMultipleWirelessPointsRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UpdateMultipleWirelessPointsResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkvalidate/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkvalidate/Index.kt index d6bed774..74b4b706 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkvalidate/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencyaddressautoupdate/wirelesspointsbulkvalidate/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.wirelesspointsbulkvalidate class Index(val parent: com.ringcentral.paths.restapi.account.emergencyaddressautoupdate.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/wireless-points-bulk-validate" - } - /** - * Operation: Validate Multiple Wireless Points - * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points-bulk-validate - */ - fun post(validateMultipleWirelessPointsRequest: com.ringcentral.definitions.ValidateMultipleWirelessPointsRequest) : com.ringcentral.definitions.ValidateMultipleWirelessPointsResponse? - { + fun path(): String { + return "${parent.path()}/wireless-points-bulk-validate" + } + + /** + * Operation: Validate Multiple Wireless Points + * Http Post /restapi/v1.0/account/{accountId}/emergency-address-auto-update/wireless-points-bulk-validate + */ + fun post(validateMultipleWirelessPointsRequest: com.ringcentral.definitions.ValidateMultipleWirelessPointsRequest): com.ringcentral.definitions.ValidateMultipleWirelessPointsResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), validateMultipleWirelessPointsRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ValidateMultipleWirelessPointsResponse::class.java) - + } - + } 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 new file mode 100644 index 00000000..d69c31f8 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/emergencylocations/Index.kt @@ -0,0 +1,71 @@ +package com.ringcentral.paths.restapi.account.emergencylocations + +class Index(val parent: com.ringcentral.paths.restapi.account.Index, val locationId: String? = null) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(withParameter: Boolean = true): String { + if (withParameter && locationId != null) { + return "${parent.path()}/emergency-locations/${locationId}" + } + + return "${parent.path()}/emergency-locations" + } + + /** + * Operation: Add Emergency Location + * Http Post /restapi/v1.0/account/{accountId}/emergency-locations + */ + fun post(emergencyLocationInfoRequest: com.ringcentral.definitions.EmergencyLocationInfoRequest): String? { + val rb: okhttp3.ResponseBody = rc.post(this.path(false), emergencyLocationInfoRequest) + + return rb.string() + + } + + + /** + * Operation: Get Emergency Location List + * Http Get /restapi/v1.0/account/{accountId}/emergency-locations + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListEmergencyLocationsParameters? = null): com.ringcentral.definitions.EmergencyLocationList? { + val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.EmergencyLocationList::class.java) + + } + + + /** + * Operation: Get Emergency Location + * Http Get /restapi/v1.0/account/{accountId}/emergency-locations/{locationId} + */ + fun get(): com.ringcentral.definitions.EmergencyLocationInfo? { + if (this.locationId == null) { + throw NullPointerException("locationId") + } + + val rb: okhttp3.ResponseBody = rc.get(this.path()) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.EmergencyLocationInfo::class.java) + + } + + + /** + * Operation: Update Emergency Location + * Http Put /restapi/v1.0/account/{accountId}/emergency-locations/{locationId} + */ + fun put(emergencyLocationInfoRequest: com.ringcentral.definitions.EmergencyLocationInfoRequest): com.ringcentral.definitions.EmergencyLocationInfo? { + if (this.locationId == null) { + throw NullPointerException("locationId") + } + + val rb: okhttp3.ResponseBody = rc.put(this.path(), emergencyLocationInfoRequest) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.EmergencyLocationInfo::class.java) + + } + +} 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 9fa6fd90..02365f9c 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 @@ -1,299 +1,256 @@ package com.ringcentral.paths.restapi.account.extension class Index(val parent: com.ringcentral.paths.restapi.account.Index, val extensionId: String? = "~") { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && extensionId != null) - { - return "${parent.path()}/extension/${extensionId}" - } - return "${parent.path()}/extension" + fun path(withParameter: Boolean = true): String { + if (withParameter && extensionId != null) { + return "${parent.path()}/extension/${extensionId}" } - /** - * Operation: Get Extension List - * Http Get /restapi/v1.0/account/{accountId}/extension - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListExtensionsParameters? = null) : com.ringcentral.definitions.GetExtensionListResponse? - { + return "${parent.path()}/extension" + } + + /** + * Operation: Get Extension List + * Http Get /restapi/v1.0/account/{accountId}/extension + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListExtensionsParameters? = null): com.ringcentral.definitions.GetExtensionListResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetExtensionListResponse::class.java) - + } - - /** - * Operation: Create Extension - * Http Post /restapi/v1.0/account/{accountId}/extension - */ - fun post(extensionCreationRequest: com.ringcentral.definitions.ExtensionCreationRequest) : com.ringcentral.definitions.ExtensionCreationResponse? - { + + /** + * Operation: Create Extension + * Http Post /restapi/v1.0/account/{accountId}/extension + */ + fun post(extensionCreationRequest: com.ringcentral.definitions.ExtensionCreationRequest): com.ringcentral.definitions.ExtensionCreationResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), extensionCreationRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ExtensionCreationResponse::class.java) - + } - - /** - * Operation: Get Extension - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId} - */ - fun get() : com.ringcentral.definitions.GetExtensionInfoResponse? - { - if (this.extensionId == null) - { - throw NullPointerException("extensionId"); - } + + /** + * Operation: Get Extension + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId} + */ + fun get(): com.ringcentral.definitions.GetExtensionInfoResponse? { + if (this.extensionId == null) { + throw NullPointerException("extensionId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetExtensionInfoResponse::class.java) - + } - - /** - * Operation: Update Extension - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId} - */ - fun put(extensionUpdateRequest: com.ringcentral.definitions.ExtensionUpdateRequest) : com.ringcentral.definitions.GetExtensionInfoResponse? - { - if (this.extensionId == null) - { - throw NullPointerException("extensionId"); - } + + /** + * Operation: Update Extension + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId} + */ + fun put(extensionUpdateRequest: com.ringcentral.definitions.ExtensionUpdateRequest): com.ringcentral.definitions.GetExtensionInfoResponse? { + if (this.extensionId == null) { + throw NullPointerException("extensionId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), extensionUpdateRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetExtensionInfoResponse::class.java) - - } - - - /** - * Operation: Delete Extension - * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId} - */ - fun delete() : String? - { - if (this.extensionId == null) - { - throw NullPointerException("extensionId"); - } - - val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + + } + + + /** + * Operation: Delete Extension + * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId} + */ + @JvmOverloads + fun delete(queryParams: com.ringcentral.definitions.DeleteExtensionParameters? = null): String? { + if (this.extensionId == null) { + throw NullPointerException("extensionId") + } + + val rb: okhttp3.ResponseBody = rc.delete(this.path(), queryParams) + return rb.string() - + } - - @JvmOverloads fun calllog(callRecordId: String? = null) : com.ringcentral.paths.restapi.account.extension.calllog.Index - { + @JvmOverloads + fun calllog(callRecordId: String? = null): com.ringcentral.paths.restapi.account.extension.calllog.Index { return com.ringcentral.paths.restapi.account.extension.calllog.Index(this, callRecordId) - } - + } - fun calllogsync() : com.ringcentral.paths.restapi.account.extension.calllogsync.Index - { + fun calllogsync(): com.ringcentral.paths.restapi.account.extension.calllogsync.Index { return com.ringcentral.paths.restapi.account.extension.calllogsync.Index(this) - } - + } - fun activecalls() : com.ringcentral.paths.restapi.account.extension.activecalls.Index - { + fun activecalls(): com.ringcentral.paths.restapi.account.extension.activecalls.Index { return com.ringcentral.paths.restapi.account.extension.activecalls.Index(this) - } - + } - fun sms() : com.ringcentral.paths.restapi.account.extension.sms.Index - { + fun sms(): com.ringcentral.paths.restapi.account.extension.sms.Index { return com.ringcentral.paths.restapi.account.extension.sms.Index(this) - } - + } - fun mms() : com.ringcentral.paths.restapi.account.extension.mms.Index - { + fun mms(): com.ringcentral.paths.restapi.account.extension.mms.Index { return com.ringcentral.paths.restapi.account.extension.mms.Index(this) - } - + } - fun companypager() : com.ringcentral.paths.restapi.account.extension.companypager.Index - { + fun companypager(): com.ringcentral.paths.restapi.account.extension.companypager.Index { return com.ringcentral.paths.restapi.account.extension.companypager.Index(this) - } - + } - fun fax() : com.ringcentral.paths.restapi.account.extension.fax.Index - { + fun fax(): com.ringcentral.paths.restapi.account.extension.fax.Index { return com.ringcentral.paths.restapi.account.extension.fax.Index(this) - } - + } - @JvmOverloads fun messagestore(messageId: String? = null) : com.ringcentral.paths.restapi.account.extension.messagestore.Index - { + @JvmOverloads + fun messagestore(messageId: String? = null): com.ringcentral.paths.restapi.account.extension.messagestore.Index { return com.ringcentral.paths.restapi.account.extension.messagestore.Index(this, messageId) - } - + } - fun messagesync() : com.ringcentral.paths.restapi.account.extension.messagesync.Index - { + fun messagesync(): com.ringcentral.paths.restapi.account.extension.messagesync.Index { return com.ringcentral.paths.restapi.account.extension.messagesync.Index(this) - } - + } - @JvmOverloads fun ringout(ringoutId: String? = null) : com.ringcentral.paths.restapi.account.extension.ringout.Index - { + @JvmOverloads + fun ringout(ringoutId: String? = null): com.ringcentral.paths.restapi.account.extension.ringout.Index { return com.ringcentral.paths.restapi.account.extension.ringout.Index(this, ringoutId) - } - + } - fun addressbook() : com.ringcentral.paths.restapi.account.extension.addressbook.Index - { + fun addressbook(): com.ringcentral.paths.restapi.account.extension.addressbook.Index { return com.ringcentral.paths.restapi.account.extension.addressbook.Index(this) - } - + } - fun addressbooksync() : com.ringcentral.paths.restapi.account.extension.addressbooksync.Index - { + fun addressbooksync(): com.ringcentral.paths.restapi.account.extension.addressbooksync.Index { return com.ringcentral.paths.restapi.account.extension.addressbooksync.Index(this) - } - + } - fun favorite() : com.ringcentral.paths.restapi.account.extension.favorite.Index - { + fun favorite(): com.ringcentral.paths.restapi.account.extension.favorite.Index { return com.ringcentral.paths.restapi.account.extension.favorite.Index(this) - } - + } - fun presence() : com.ringcentral.paths.restapi.account.extension.presence.Index - { + fun presence(): com.ringcentral.paths.restapi.account.extension.presence.Index { return com.ringcentral.paths.restapi.account.extension.presence.Index(this) - } - + } + + + fun unifiedpresence(): com.ringcentral.paths.restapi.account.extension.unifiedpresence.Index { + return com.ringcentral.paths.restapi.account.extension.unifiedpresence.Index(this) + } - @JvmOverloads fun meeting(meetingId: String? = null) : com.ringcentral.paths.restapi.account.extension.meeting.Index - { + @JvmOverloads + fun meeting(meetingId: String? = null): com.ringcentral.paths.restapi.account.extension.meeting.Index { return com.ringcentral.paths.restapi.account.extension.meeting.Index(this, meetingId) - } - + } - fun meetingsconfiguration() : com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.Index - { + fun meetingsconfiguration(): com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.Index { return com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.Index(this) - } - + } - fun authzprofile() : com.ringcentral.paths.restapi.account.extension.authzprofile.Index - { + fun authzprofile(): com.ringcentral.paths.restapi.account.extension.authzprofile.Index { return com.ringcentral.paths.restapi.account.extension.authzprofile.Index(this) - } - + } - fun businesshours() : com.ringcentral.paths.restapi.account.extension.businesshours.Index - { + fun businesshours(): com.ringcentral.paths.restapi.account.extension.businesshours.Index { return com.ringcentral.paths.restapi.account.extension.businesshours.Index(this) - } - + } - fun callerblocking() : com.ringcentral.paths.restapi.account.extension.callerblocking.Index - { + fun callerblocking(): com.ringcentral.paths.restapi.account.extension.callerblocking.Index { return com.ringcentral.paths.restapi.account.extension.callerblocking.Index(this) - } - + } - @JvmOverloads fun forwardingnumber(forwardingNumberId: String? = null) : com.ringcentral.paths.restapi.account.extension.forwardingnumber.Index - { + @JvmOverloads + fun forwardingnumber(forwardingNumberId: String? = null): com.ringcentral.paths.restapi.account.extension.forwardingnumber.Index { return com.ringcentral.paths.restapi.account.extension.forwardingnumber.Index(this, forwardingNumberId) - } - + } - @JvmOverloads fun answeringrule(ruleId: String? = null) : com.ringcentral.paths.restapi.account.extension.answeringrule.Index - { + @JvmOverloads + fun answeringrule(ruleId: String? = null): com.ringcentral.paths.restapi.account.extension.answeringrule.Index { return com.ringcentral.paths.restapi.account.extension.answeringrule.Index(this, ruleId) - } - + } - @JvmOverloads fun greeting(greetingId: String? = null) : com.ringcentral.paths.restapi.account.extension.greeting.Index - { + @JvmOverloads + fun greeting(greetingId: String? = null): com.ringcentral.paths.restapi.account.extension.greeting.Index { return com.ringcentral.paths.restapi.account.extension.greeting.Index(this, greetingId) - } - + } - fun phonenumber() : com.ringcentral.paths.restapi.account.extension.phonenumber.Index - { + fun phonenumber(): com.ringcentral.paths.restapi.account.extension.phonenumber.Index { return com.ringcentral.paths.restapi.account.extension.phonenumber.Index(this) - } - + } - fun callerid() : com.ringcentral.paths.restapi.account.extension.callerid.Index - { + fun callerid(): com.ringcentral.paths.restapi.account.extension.callerid.Index { return com.ringcentral.paths.restapi.account.extension.callerid.Index(this) - } - + } - fun grant() : com.ringcentral.paths.restapi.account.extension.grant.Index - { + fun grant(): com.ringcentral.paths.restapi.account.extension.grant.Index { return com.ringcentral.paths.restapi.account.extension.grant.Index(this) - } - + } - fun notificationsettings() : com.ringcentral.paths.restapi.account.extension.notificationsettings.Index - { + fun notificationsettings(): com.ringcentral.paths.restapi.account.extension.notificationsettings.Index { return com.ringcentral.paths.restapi.account.extension.notificationsettings.Index(this) - } - + } - @JvmOverloads fun profileimage(scaleSize: String? = null) : com.ringcentral.paths.restapi.account.extension.profileimage.Index - { + @JvmOverloads + fun profileimage(scaleSize: String? = null): com.ringcentral.paths.restapi.account.extension.profileimage.Index { return com.ringcentral.paths.restapi.account.extension.profileimage.Index(this, scaleSize) - } - + } - fun conferencing() : com.ringcentral.paths.restapi.account.extension.conferencing.Index - { + fun conferencing(): com.ringcentral.paths.restapi.account.extension.conferencing.Index { return com.ringcentral.paths.restapi.account.extension.conferencing.Index(this) - } - + } - fun device() : com.ringcentral.paths.restapi.account.extension.device.Index - { + fun features(): com.ringcentral.paths.restapi.account.extension.features.Index { + return com.ringcentral.paths.restapi.account.extension.features.Index(this) + } + + + fun device(): com.ringcentral.paths.restapi.account.extension.device.Index { return com.ringcentral.paths.restapi.account.extension.device.Index(this) - } - -} \ No newline at end of file + } + + + fun meetingrecordings(): com.ringcentral.paths.restapi.account.extension.meetingrecordings.Index { + return com.ringcentral.paths.restapi.account.extension.meetingrecordings.Index(this) + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/activecalls/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/activecalls/Index.kt index cbbb5cc1..0427f319 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/activecalls/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/activecalls/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.extension.activecalls class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/active-calls" - } - /** - * Operation: Get User Active Calls - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/active-calls - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListExtensionActiveCallsParameters? = null) : com.ringcentral.definitions.ActiveCallsResponse? - { + fun path(): String { + return "${parent.path()}/active-calls" + } + + /** + * Operation: Get User Active Calls + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/active-calls + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListExtensionActiveCallsParameters? = null): com.ringcentral.definitions.UserActiveCallsResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - - return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ActiveCallsResponse::class.java) - + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserActiveCallsResponse::class.java) + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbook/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbook/Index.kt index d885d576..230ecf8a 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbook/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbook/Index.kt @@ -1,18 +1,17 @@ package com.ringcentral.paths.restapi.account.extension.addressbook class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/address-book" - } + fun path(): String { + return "${parent.path()}/address-book" + } - @JvmOverloads fun contact(contactId: String? = null) : com.ringcentral.paths.restapi.account.extension.addressbook.contact.Index - { + + @JvmOverloads + fun contact(contactId: String? = null): com.ringcentral.paths.restapi.account.extension.addressbook.contact.Index { return com.ringcentral.paths.restapi.account.extension.addressbook.contact.Index(this, contactId) - } - -} \ No newline at end of file + } + +} 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 535d6343..41c89011 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 @@ -1,96 +1,89 @@ package com.ringcentral.paths.restapi.account.extension.addressbook.contact class Index(val parent: com.ringcentral.paths.restapi.account.extension.addressbook.Index, val contactId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && contactId != null) - { - return "${parent.path()}/contact/${contactId}" - } - return "${parent.path()}/contact" + fun path(withParameter: Boolean = true): String { + if (withParameter && contactId != null) { + return "${parent.path()}/contact/${contactId}" } - /** - * Operation: Get Contact List - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListContactsParameters? = null) : com.ringcentral.definitions.ContactList? - { + return "${parent.path()}/contact" + } + + /** + * Operation: Get Contact List + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListContactsParameters? = null): com.ringcentral.definitions.ContactList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ContactList::class.java) - + } - - - /** - * Operation: Create Contact - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact - */ - @JvmOverloads fun post(personalContactRequest: com.ringcentral.definitions.PersonalContactRequest, queryParams: com.ringcentral.definitions.CreateContactParameters? = null) : com.ringcentral.definitions.PersonalContactResource? - { + + + /** + * Operation: Create Contact + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact + */ + @JvmOverloads + fun post(personalContactRequest: com.ringcentral.definitions.PersonalContactRequest, queryParams: com.ringcentral.definitions.CreateContactParameters? = null): com.ringcentral.definitions.PersonalContactResource? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), personalContactRequest, queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PersonalContactResource::class.java) - + } - - - /** - * Operation: Get Contact - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact/{contactId} - */ - fun get() : com.ringcentral.definitions.PersonalContactResource? - { - if (this.contactId == null) - { - throw NullPointerException("contactId"); - } + + + /** + * Operation: Get Contact + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact/{contactId} + */ + fun get(): com.ringcentral.definitions.PersonalContactResource? { + if (this.contactId == null) { + throw NullPointerException("contactId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PersonalContactResource::class.java) - + } - - - /** - * Operation: Update Contact - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact/{contactId} - */ - @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"); - } + + + /** + * Operation: Update Contact + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact/{contactId} + */ + @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") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), personalContactRequest, queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PersonalContactResource::class.java) - + } - - - /** - * Operation: Delete Contact - * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact/{contactId} - */ - fun delete() : String? - { - if (this.contactId == null) - { - throw NullPointerException("contactId"); - } + + + /** + * Operation: Delete Contact + * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book/contact/{contactId} + */ + fun delete(): String? { + if (this.contactId == null) { + throw NullPointerException("contactId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbooksync/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbooksync/Index.kt index 869cdcf3..1c055960 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbooksync/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/addressbooksync/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.extension.addressbooksync class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/address-book-sync" - } - /** - * Operation: Address Book Synchronization - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book-sync - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.SyncAddressBookParameters? = null) : com.ringcentral.definitions.AddressBookSync? - { + fun path(): String { + return "${parent.path()}/address-book-sync" + } + + /** + * Operation: Address Book Synchronization + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/address-book-sync + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.SyncAddressBookParameters? = null): com.ringcentral.definitions.AddressBookSync? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AddressBookSync::class.java) - + } - + } 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 e9a637df..367194e1 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 @@ -1,96 +1,88 @@ package com.ringcentral.paths.restapi.account.extension.answeringrule class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, val ruleId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && ruleId != null) - { - return "${parent.path()}/answering-rule/${ruleId}" - } - return "${parent.path()}/answering-rule" + fun path(withParameter: Boolean = true): String { + if (withParameter && ruleId != null) { + return "${parent.path()}/answering-rule/${ruleId}" } - /** - * Operation: Get Call Handling Rules - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListAnsweringRulesParameters? = null) : com.ringcentral.definitions.UserAnsweringRuleList? - { + return "${parent.path()}/answering-rule" + } + + /** + * Operation: Get Call Handling Rules + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListAnsweringRulesParameters? = null): com.ringcentral.definitions.UserAnsweringRuleList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserAnsweringRuleList::class.java) - + } - - - /** - * Operation: Create Call Handling Rule - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule - */ - fun post(createAnsweringRuleRequest: com.ringcentral.definitions.CreateAnsweringRuleRequest) : com.ringcentral.definitions.AnsweringRuleInfo? - { + + + /** + * Operation: Create Call Handling Rule + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule + */ + fun post(createAnsweringRuleRequest: com.ringcentral.definitions.CreateAnsweringRuleRequest): com.ringcentral.definitions.CustomAnsweringRuleInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createAnsweringRuleRequest) - - return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AnsweringRuleInfo::class.java) - + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CustomAnsweringRuleInfo::class.java) + } - - - /** - * Operation: Get Call Handling Rule - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule/{ruleId} - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadAnsweringRuleParameters? = null) : com.ringcentral.definitions.AnsweringRuleInfo? - { - if (this.ruleId == null) - { - throw NullPointerException("ruleId"); - } + + + /** + * Operation: Get Call Handling Rule + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule/{ruleId} + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadAnsweringRuleParameters? = null): com.ringcentral.definitions.AnsweringRuleInfo? { + if (this.ruleId == null) { + throw NullPointerException("ruleId") + } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AnsweringRuleInfo::class.java) - + } - - - /** - * Operation: Update Call Handling Rule - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule/{ruleId} - */ - fun put(updateAnsweringRuleRequest: com.ringcentral.definitions.UpdateAnsweringRuleRequest) : com.ringcentral.definitions.AnsweringRuleInfo? - { - if (this.ruleId == null) - { - throw NullPointerException("ruleId"); - } + + + /** + * Operation: Update Call Handling Rule + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule/{ruleId} + */ + fun put(updateAnsweringRuleRequest: com.ringcentral.definitions.UpdateAnsweringRuleRequest): com.ringcentral.definitions.AnsweringRuleInfo? { + if (this.ruleId == null) { + throw NullPointerException("ruleId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateAnsweringRuleRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AnsweringRuleInfo::class.java) - + } - - - /** - * Operation: Delete Call Handling Rule - * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule/{ruleId} - */ - fun delete() : String? - { - if (this.ruleId == null) - { - throw NullPointerException("ruleId"); - } + + + /** + * Operation: Delete Call Handling Rule + * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/answering-rule/{ruleId} + */ + fun delete(): String? { + if (this.ruleId == null) { + throw NullPointerException("ruleId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/authzprofile/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/authzprofile/Index.kt index 41e59acd..d0c7efd1 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/authzprofile/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/authzprofile/Index.kt @@ -1,31 +1,27 @@ package com.ringcentral.paths.restapi.account.extension.authzprofile class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/authz-profile" - } - - /** - * Operation: Get Authorization Profile - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/authz-profile - */ - fun get() : com.ringcentral.definitions.AuthProfileResource? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/authz-profile" + } + + /** + * Operation: Get Authorization Profile + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/authz-profile + */ + fun get(): com.ringcentral.definitions.AuthProfileResource? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AuthProfileResource::class.java) - + } - - fun check() : com.ringcentral.paths.restapi.account.extension.authzprofile.check.Index - { + fun check(): com.ringcentral.paths.restapi.account.extension.authzprofile.check.Index { return com.ringcentral.paths.restapi.account.extension.authzprofile.check.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/authzprofile/check/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/authzprofile/check/Index.kt index 8497bb3e..63920155 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/authzprofile/check/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/authzprofile/check/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.extension.authzprofile.check class Index(val parent: com.ringcentral.paths.restapi.account.extension.authzprofile.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/check" - } - /** - * Operation: Check User Permission - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/authz-profile/check - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.CheckUserPermissionParameters? = null) : com.ringcentral.definitions.AuthProfileCheckResource? - { + fun path(): String { + return "${parent.path()}/check" + } + + /** + * Operation: Check User Permission + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/authz-profile/check + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.CheckUserPermissionParameters? = null): com.ringcentral.definitions.AuthProfileCheckResource? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AuthProfileCheckResource::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/businesshours/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/businesshours/Index.kt index ad08958c..5991771b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/businesshours/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/businesshours/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.account.extension.businesshours class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/business-hours" - } - - /** - * Operation: Get User Business Hours - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/business-hours - */ - fun get() : com.ringcentral.definitions.GetUserBusinessHoursResponse? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/business-hours" + } + + /** + * Operation: Get User Business Hours + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/business-hours + */ + fun get(): com.ringcentral.definitions.GetUserBusinessHoursResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetUserBusinessHoursResponse::class.java) - + } - - - /** - * Operation: Update User Business Hours - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/business-hours - */ - fun put(userBusinessHoursUpdateRequest: com.ringcentral.definitions.UserBusinessHoursUpdateRequest) : com.ringcentral.definitions.UserBusinessHoursUpdateResponse? - { + + + /** + * Operation: Update User Business Hours + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/business-hours + */ + fun put(userBusinessHoursUpdateRequest: com.ringcentral.definitions.UserBusinessHoursUpdateRequest): com.ringcentral.definitions.UserBusinessHoursUpdateResponse? { val rb: okhttp3.ResponseBody = rc.put(this.path(), userBusinessHoursUpdateRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserBusinessHoursUpdateResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/callerblocking/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/callerblocking/Index.kt index c11c5822..163439e4 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/callerblocking/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/callerblocking/Index.kt @@ -1,44 +1,40 @@ package com.ringcentral.paths.restapi.account.extension.callerblocking class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/caller-blocking" - } - - /** - * Operation: Get Caller Blocking Settings - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking - */ - fun get() : com.ringcentral.definitions.CallerBlockingSettings? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/caller-blocking" + } + + /** + * Operation: Get Caller Blocking Settings + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking + */ + fun get(): com.ringcentral.definitions.CallerBlockingSettings? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallerBlockingSettings::class.java) - + } - - - /** - * Operation: Update Caller Blocking Settings - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking - */ - fun put(callerBlockingSettingsUpdate: com.ringcentral.definitions.CallerBlockingSettingsUpdate) : com.ringcentral.definitions.CallerBlockingSettings? - { + + + /** + * Operation: Update Caller Blocking Settings + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking + */ + fun put(callerBlockingSettingsUpdate: com.ringcentral.definitions.CallerBlockingSettingsUpdate): com.ringcentral.definitions.CallerBlockingSettings? { val rb: okhttp3.ResponseBody = rc.put(this.path(), callerBlockingSettingsUpdate) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallerBlockingSettings::class.java) - + } - - @JvmOverloads fun phonenumbers(blockedNumberId: String? = null) : com.ringcentral.paths.restapi.account.extension.callerblocking.phonenumbers.Index - { + @JvmOverloads + fun phonenumbers(blockedNumberId: String? = null): com.ringcentral.paths.restapi.account.extension.callerblocking.phonenumbers.Index { return com.ringcentral.paths.restapi.account.extension.callerblocking.phonenumbers.Index(this, blockedNumberId) - } - -} \ No newline at end of file + } + +} 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 b1a42ca0..e6b798e2 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 @@ -1,96 +1,87 @@ package com.ringcentral.paths.restapi.account.extension.callerblocking.phonenumbers class Index(val parent: com.ringcentral.paths.restapi.account.extension.callerblocking.Index, val blockedNumberId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && blockedNumberId != null) - { - return "${parent.path()}/phone-numbers/${blockedNumberId}" - } - return "${parent.path()}/phone-numbers" + fun path(withParameter: Boolean = true): String { + if (withParameter && blockedNumberId != null) { + return "${parent.path()}/phone-numbers/${blockedNumberId}" } - /** - * Operation: Get Blocked/Allowed Phone Numbers - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListBlockedAllowedNumbersParameters? = null) : com.ringcentral.definitions.BlockedAllowedPhoneNumbersList? - { + return "${parent.path()}/phone-numbers" + } + + /** + * Operation: Get Blocked/Allowed Phone Numbers + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListBlockedAllowedNumbersParameters? = null): com.ringcentral.definitions.BlockedAllowedPhoneNumbersList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.BlockedAllowedPhoneNumbersList::class.java) - + } - - - /** - * Operation: Add Blocked/Allowed Number - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers - */ - fun post(addBlockedAllowedPhoneNumber: com.ringcentral.definitions.AddBlockedAllowedPhoneNumber) : com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo? - { + + + /** + * Operation: Add Blocked/Allowed Number + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers + */ + fun post(addBlockedAllowedPhoneNumber: com.ringcentral.definitions.AddBlockedAllowedPhoneNumber): com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), addBlockedAllowedPhoneNumber) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo::class.java) - + } - - - /** - * Operation: Get Blocked/Allowed Number - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId} - */ - fun get() : com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo? - { - if (this.blockedNumberId == null) - { - throw NullPointerException("blockedNumberId"); - } + + + /** + * Operation: Get Blocked/Allowed Number + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId} + */ + fun get(): com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo? { + if (this.blockedNumberId == null) { + throw NullPointerException("blockedNumberId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo::class.java) - + } - - - /** - * Operation: Delete Blocked/Allowed Number - * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId} - */ - fun delete() : String? - { - if (this.blockedNumberId == null) - { - throw NullPointerException("blockedNumberId"); - } + + + /** + * Operation: Delete Blocked/Allowed Number + * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId} + */ + fun delete(): String? { + if (this.blockedNumberId == null) { + throw NullPointerException("blockedNumberId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - - /** - * Operation: Update Blocked/Allowed Number - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId} - */ - fun put(addBlockedAllowedPhoneNumber: com.ringcentral.definitions.AddBlockedAllowedPhoneNumber) : com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo? - { - if (this.blockedNumberId == null) - { - throw NullPointerException("blockedNumberId"); - } + + + /** + * Operation: Update Blocked/Allowed Number + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-blocking/phone-numbers/{blockedNumberId} + */ + fun put(addBlockedAllowedPhoneNumber: com.ringcentral.definitions.AddBlockedAllowedPhoneNumber): com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo? { + if (this.blockedNumberId == null) { + throw NullPointerException("blockedNumberId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), addBlockedAllowedPhoneNumber) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.BlockedAllowedPhoneNumberInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/callerid/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/callerid/Index.kt index bdcc366e..02b21b1a 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/callerid/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/callerid/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.account.extension.callerid class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/caller-id" - } - - /** - * Operation: Get Extension Caller ID - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-id - */ - fun get() : com.ringcentral.definitions.ExtensionCallerIdInfo? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/caller-id" + } + + /** + * Operation: Get Extension Caller ID + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-id + */ + fun get(): com.ringcentral.definitions.ExtensionCallerIdInfo? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ExtensionCallerIdInfo::class.java) - + } - - - /** - * Operation: Update Extension Caller ID - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-id - */ - fun put(extensionCallerIdInfo: com.ringcentral.definitions.ExtensionCallerIdInfo) : com.ringcentral.definitions.ExtensionCallerIdInfo? - { + + + /** + * Operation: Update Extension Caller ID + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/caller-id + */ + fun put(extensionCallerIdInfo: com.ringcentral.definitions.ExtensionCallerIdInfo): com.ringcentral.definitions.ExtensionCallerIdInfo? { val rb: okhttp3.ResponseBody = rc.put(this.path(), extensionCallerIdInfo) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ExtensionCallerIdInfo::class.java) - + } - + } 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 1b6629bf..7e2f5ef1 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 @@ -1,60 +1,57 @@ package com.ringcentral.paths.restapi.account.extension.calllog class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, val callRecordId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && callRecordId != null) - { - return "${parent.path()}/call-log/${callRecordId}" - } - return "${parent.path()}/call-log" + fun path(withParameter: Boolean = true): String { + if (withParameter && callRecordId != null) { + return "${parent.path()}/call-log/${callRecordId}" } - /** - * Operation: Get User Call Log Records - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ReadUserCallLogParameters? = null) : com.ringcentral.definitions.UserCallLogResponse? - { + return "${parent.path()}/call-log" + } + + /** + * Operation: Get User Call Log Records + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ReadUserCallLogParameters? = null): com.ringcentral.definitions.UserCallLogResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserCallLogResponse::class.java) - + } - - - /** - * Operation: Delete User Call Log - * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log - */ - @JvmOverloads fun delete(queryParams: com.ringcentral.definitions.DeleteUserCallLogParameters? = null) : String? - { + + + /** + * Operation: Delete User Call Log + * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log + */ + @JvmOverloads + fun delete(queryParams: com.ringcentral.definitions.DeleteUserCallLogParameters? = null): String? { val rb: okhttp3.ResponseBody = rc.delete(this.path(false), queryParams) - + return rb.string() - + } - - - /** - * Operation: Get User Call Record - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log/{callRecordId} - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadUserCallRecordParameters? = null) : com.ringcentral.definitions.UserCallLogRecord? - { - if (this.callRecordId == null) - { - throw NullPointerException("callRecordId"); - } + + + /** + * Operation: Get User Call Record + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log/{callRecordId} + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadUserCallRecordParameters? = null): com.ringcentral.definitions.UserCallLogRecord? { + if (this.callRecordId == null) { + throw NullPointerException("callRecordId") + } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserCallLogRecord::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/calllogsync/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/calllogsync/Index.kt index 89523438..ebcc76eb 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/calllogsync/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/calllogsync/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.extension.calllogsync class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/call-log-sync" - } - /** - * Operation: Sync User Call Log - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log-sync - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.SyncUserCallLogParameters? = null) : com.ringcentral.definitions.CallLogSync? - { + fun path(): String { + return "${parent.path()}/call-log-sync" + } + + /** + * Operation: Sync User Call Log + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log-sync + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.SyncUserCallLogParameters? = null): com.ringcentral.definitions.CallLogSync? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallLogSync::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/companypager/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/companypager/Index.kt index 0bf94a5f..bded5fa6 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/companypager/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/companypager/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.extension.companypager class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/company-pager" - } - /** - * Operation: Create Internal Text Message - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/company-pager - */ - fun post(createInternalTextMessageRequest: com.ringcentral.definitions.CreateInternalTextMessageRequest) : com.ringcentral.definitions.GetMessageInfoResponse? - { + fun path(): String { + return "${parent.path()}/company-pager" + } + + /** + * Operation: Create Internal Text Message + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/company-pager + */ + fun post(createInternalTextMessageRequest: com.ringcentral.definitions.CreateInternalTextMessageRequest): com.ringcentral.definitions.GetMessageInfoResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), createInternalTextMessageRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetMessageInfoResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/conferencing/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/conferencing/Index.kt index 1cff379b..f9b86e1c 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/conferencing/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/conferencing/Index.kt @@ -1,37 +1,35 @@ package com.ringcentral.paths.restapi.account.extension.conferencing class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/conferencing" - } - - /** - * Operation: Get User Conferencing Settings - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/conferencing - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadConferencingSettingsParameters? = null) : com.ringcentral.definitions.GetConferencingInfoResponse? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/conferencing" + } + + /** + * Operation: Get User Conferencing Settings + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/conferencing + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadConferencingSettingsParameters? = null): com.ringcentral.definitions.GetConferencingInfoResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetConferencingInfoResponse::class.java) - + } - - - /** - * Operation: Update User Conferencing Settings - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/conferencing - */ - fun put(updateConferencingInfoRequest: com.ringcentral.definitions.UpdateConferencingInfoRequest) : com.ringcentral.definitions.GetConferencingInfoResponse? - { + + + /** + * Operation: Update User Conferencing Settings + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/conferencing + */ + fun put(updateConferencingInfoRequest: com.ringcentral.definitions.UpdateConferencingInfoRequest): com.ringcentral.definitions.GetConferencingInfoResponse? { val rb: okhttp3.ResponseBody = rc.put(this.path(), updateConferencingInfoRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetConferencingInfoResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/device/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/device/Index.kt index 79897276..f21ac468 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/device/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/device/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.extension.device class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/device" - } - /** - * Operation: Get Extension Device List - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/device - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListExtensionDevicesParameters? = null) : com.ringcentral.definitions.GetExtensionDevicesResponse? - { + fun path(): String { + return "${parent.path()}/device" + } + + /** + * Operation: Get Extension Device List + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/device + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListExtensionDevicesParameters? = null): com.ringcentral.definitions.GetExtensionDevicesResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetExtensionDevicesResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/favorite/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/favorite/Index.kt index b01b2e04..ec8b5853 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/favorite/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/favorite/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.account.extension.favorite class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/favorite" - } - - /** - * Operation: Get Favorite Contact List - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/favorite - */ - fun get() : com.ringcentral.definitions.FavoriteContactList? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/favorite" + } + + /** + * Operation: Get Favorite Contact List + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/favorite + */ + fun get(): com.ringcentral.definitions.FavoriteContactList? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.FavoriteContactList::class.java) - + } - - - /** - * Operation: Update Favorite Contact List - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/favorite - */ - fun put(favoriteCollection: com.ringcentral.definitions.FavoriteCollection) : com.ringcentral.definitions.FavoriteContactList? - { + + + /** + * Operation: Update Favorite Contact List + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/favorite + */ + fun put(favoriteCollection: com.ringcentral.definitions.FavoriteCollection): com.ringcentral.definitions.FavoriteContactList? { val rb: okhttp3.ResponseBody = rc.put(this.path(), favoriteCollection) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.FavoriteContactList::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/fax/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/fax/Index.kt index be0dd42c..ab4f2e1b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/fax/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/fax/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.extension.fax class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/fax" - } - /** - * Operation: Create Fax Message - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/fax - */ - fun post(createFaxMessageRequest: com.ringcentral.definitions.CreateFaxMessageRequest) : com.ringcentral.definitions.FaxResponse? - { + fun path(): String { + return "${parent.path()}/fax" + } + + /** + * Operation: Create Fax Message + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/fax + */ + fun post(createFaxMessageRequest: com.ringcentral.definitions.CreateFaxMessageRequest): com.ringcentral.definitions.FaxResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), createFaxMessageRequest, null, com.ringcentral.ContentType.MULTIPART) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.FaxResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/features/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/features/Index.kt new file mode 100644 index 00000000..1f3fa06b --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/features/Index.kt @@ -0,0 +1,23 @@ +package com.ringcentral.paths.restapi.account.extension.features + +class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/features" + } + + /** + * Operation: Get User Features + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/features + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadUserFeaturesParameters? = null): com.ringcentral.definitions.FeatureList? { + val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.FeatureList::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 060e36be..c6d9d67c 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 @@ -1,96 +1,87 @@ package com.ringcentral.paths.restapi.account.extension.forwardingnumber class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, val forwardingNumberId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && forwardingNumberId != null) - { - return "${parent.path()}/forwarding-number/${forwardingNumberId}" - } - return "${parent.path()}/forwarding-number" + fun path(withParameter: Boolean = true): String { + if (withParameter && forwardingNumberId != null) { + return "${parent.path()}/forwarding-number/${forwardingNumberId}" } - /** - * Operation: Get Forwarding Number List - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListForwardingNumbersParameters? = null) : com.ringcentral.definitions.GetExtensionForwardingNumberListResponse? - { + return "${parent.path()}/forwarding-number" + } + + /** + * Operation: Get Forwarding Number List + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListForwardingNumbersParameters? = null): com.ringcentral.definitions.GetExtensionForwardingNumberListResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetExtensionForwardingNumberListResponse::class.java) - + } - - - /** - * Operation: Create Forwarding Number - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number - */ - fun post(createForwardingNumberRequest: com.ringcentral.definitions.CreateForwardingNumberRequest) : com.ringcentral.definitions.ForwardingNumberInfo? - { + + + /** + * Operation: Create Forwarding Number + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number + */ + fun post(createForwardingNumberRequest: com.ringcentral.definitions.CreateForwardingNumberRequest): com.ringcentral.definitions.ForwardingNumberInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createForwardingNumberRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ForwardingNumberInfo::class.java) - + } - - - /** - * Operation: Get Forwarding Number - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number/{forwardingNumberId} - */ - fun get() : com.ringcentral.definitions.ForwardingNumberResource? - { - if (this.forwardingNumberId == null) - { - throw NullPointerException("forwardingNumberId"); - } + + + /** + * Operation: Get Forwarding Number + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number/{forwardingNumberId} + */ + fun get(): com.ringcentral.definitions.ForwardingNumberInfo? { + if (this.forwardingNumberId == null) { + throw NullPointerException("forwardingNumberId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - - return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ForwardingNumberResource::class.java) - + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ForwardingNumberInfo::class.java) + } - - - /** - * Operation: Update Forwarding Number - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number/{forwardingNumberId} - */ - fun put(updateForwardingNumberRequest: com.ringcentral.definitions.UpdateForwardingNumberRequest) : com.ringcentral.definitions.ForwardingNumberInfo? - { - if (this.forwardingNumberId == null) - { - throw NullPointerException("forwardingNumberId"); - } + + + /** + * Operation: Update Forwarding Number + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number/{forwardingNumberId} + */ + fun put(updateForwardingNumberRequest: com.ringcentral.definitions.UpdateForwardingNumberRequest): com.ringcentral.definitions.ForwardingNumberInfo? { + if (this.forwardingNumberId == null) { + throw NullPointerException("forwardingNumberId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateForwardingNumberRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ForwardingNumberInfo::class.java) - + } - - - /** - * Operation: Delete Forwarding Number - * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number/{forwardingNumberId} - */ - fun delete() : String? - { - if (this.forwardingNumberId == null) - { - throw NullPointerException("forwardingNumberId"); - } + + + /** + * Operation: Delete Forwarding Number + * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/forwarding-number/{forwardingNumberId} + */ + fun delete(): String? { + if (this.forwardingNumberId == null) { + throw NullPointerException("forwardingNumberId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/grant/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/grant/Index.kt index c344fb5e..a8fc52a6 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/grant/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/grant/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.extension.grant class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/grant" - } - /** - * Operation: Get Extension Grant List - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/grant - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListExtensionGrantsParameters? = null) : com.ringcentral.definitions.GetExtensionGrantListResponse? - { + fun path(): String { + return "${parent.path()}/grant" + } + + /** + * Operation: Get Extension Grant List + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/grant + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListExtensionGrantsParameters? = null): com.ringcentral.definitions.GetExtensionGrantListResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetExtensionGrantListResponse::class.java) - + } - + } 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 b0500b55..20b20a36 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 @@ -1,47 +1,42 @@ package com.ringcentral.paths.restapi.account.extension.greeting class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, val greetingId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && greetingId != null) - { - return "${parent.path()}/greeting/${greetingId}" - } - return "${parent.path()}/greeting" + fun path(withParameter: Boolean = true): String { + if (withParameter && greetingId != null) { + return "${parent.path()}/greeting/${greetingId}" } - /** - * Operation: Create Custom User Greeting - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting - */ - fun post(createCustomUserGreetingRequest: com.ringcentral.definitions.CreateCustomUserGreetingRequest) : com.ringcentral.definitions.CustomUserGreetingInfo? - { + return "${parent.path()}/greeting" + } + + /** + * Operation: Create Custom User Greeting + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting + */ + fun post(createCustomUserGreetingRequest: com.ringcentral.definitions.CreateCustomUserGreetingRequest): com.ringcentral.definitions.CustomUserGreetingInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createCustomUserGreetingRequest, null, com.ringcentral.ContentType.MULTIPART) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CustomUserGreetingInfo::class.java) - + } - - - /** - * Operation: Get Custom Greeting - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting/{greetingId} - */ - fun get() : com.ringcentral.definitions.CustomUserGreetingInfo? - { - if (this.greetingId == null) - { - throw NullPointerException("greetingId"); - } + + + /** + * Operation: Get Custom Greeting + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/greeting/{greetingId} + */ + fun get(): com.ringcentral.definitions.CustomUserGreetingInfo? { + if (this.greetingId == null) { + throw NullPointerException("greetingId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CustomUserGreetingInfo::class.java) - + } - + } 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 a38d40fb..55887126 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 @@ -1,110 +1,96 @@ package com.ringcentral.paths.restapi.account.extension.meeting class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, val meetingId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && meetingId != null) - { - return "${parent.path()}/meeting/${meetingId}" - } - return "${parent.path()}/meeting" + fun path(withParameter: Boolean = true): String { + if (withParameter && meetingId != null) { + return "${parent.path()}/meeting/${meetingId}" } - /** - * Operation: Get Scheduled Meetings - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting - */ - fun list() : com.ringcentral.definitions.MeetingsResource? - { + return "${parent.path()}/meeting" + } + + /** + * Operation: Get Scheduled Meetings + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting + */ + fun list(): com.ringcentral.definitions.MeetingsResource? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MeetingsResource::class.java) - + } - - - /** - * Operation: Create Meetings - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting - */ - fun post(meetingRequestResource: com.ringcentral.definitions.MeetingRequestResource) : com.ringcentral.definitions.MeetingResponseResource? - { + + + /** + * Operation: Create Meetings + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting + */ + fun post(meetingRequestResource: com.ringcentral.definitions.MeetingRequestResource): com.ringcentral.definitions.MeetingResponseResource? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), meetingRequestResource) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MeetingResponseResource::class.java) - + } - - - /** - * Operation: Get Meeting Info - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/{meetingId} - */ - fun get() : com.ringcentral.definitions.MeetingResponseResource? - { - if (this.meetingId == null) - { - throw NullPointerException("meetingId"); - } + + + /** + * Operation: Get Meeting Info + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/{meetingId} + */ + fun get(): com.ringcentral.definitions.MeetingResponseResource? { + if (this.meetingId == null) { + throw NullPointerException("meetingId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MeetingResponseResource::class.java) - + } - - - /** - * Operation: Update Meeting - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/{meetingId} - */ - fun put(meetingRequestResource: com.ringcentral.definitions.MeetingRequestResource) : com.ringcentral.definitions.MeetingResponseResource? - { - if (this.meetingId == null) - { - throw NullPointerException("meetingId"); - } + + + /** + * Operation: Update Meeting + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/{meetingId} + */ + fun put(meetingRequestResource: com.ringcentral.definitions.MeetingRequestResource): com.ringcentral.definitions.MeetingResponseResource? { + if (this.meetingId == null) { + throw NullPointerException("meetingId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), meetingRequestResource) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MeetingResponseResource::class.java) - + } - - - /** - * Operation: Delete Meeting - * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/{meetingId} - */ - fun delete() : String? - { - if (this.meetingId == null) - { - throw NullPointerException("meetingId"); - } + + + /** + * Operation: Delete Meeting + * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/{meetingId} + */ + fun delete(): String? { + if (this.meetingId == null) { + throw NullPointerException("meetingId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - fun serviceinfo() : com.ringcentral.paths.restapi.account.extension.meeting.serviceinfo.Index - { + fun serviceinfo(): com.ringcentral.paths.restapi.account.extension.meeting.serviceinfo.Index { return com.ringcentral.paths.restapi.account.extension.meeting.serviceinfo.Index(this) - } - + } - fun end() : com.ringcentral.paths.restapi.account.extension.meeting.end.Index - { + fun end(): com.ringcentral.paths.restapi.account.extension.meeting.end.Index { return com.ringcentral.paths.restapi.account.extension.meeting.end.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/end/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/end/Index.kt index 975787f0..75fb4fa0 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/end/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/end/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.extension.meeting.end class Index(val parent: com.ringcentral.paths.restapi.account.extension.meeting.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/end" - } - /** - * Operation: End Meeting - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/{meetingId}/end - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/end" + } + + /** + * Operation: End Meeting + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/{meetingId}/end + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/serviceinfo/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/serviceinfo/Index.kt index b2dee12c..cf9944f6 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/serviceinfo/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/meeting/serviceinfo/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.extension.meeting.serviceinfo class Index(val parent: com.ringcentral.paths.restapi.account.extension.meeting.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/service-info" - } - /** - * Operation: Get Meeting Service Info - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/service-info - */ - fun get() : com.ringcentral.definitions.MeetingServiceInfoResource? - { + fun path(): String { + return "${parent.path()}/service-info" + } + + /** + * Operation: Get Meeting Service Info + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting/service-info + */ + fun get(): com.ringcentral.definitions.MeetingServiceInfoResource? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MeetingServiceInfoResource::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingrecordings/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingrecordings/Index.kt new file mode 100644 index 00000000..5848eea4 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingrecordings/Index.kt @@ -0,0 +1,23 @@ +package com.ringcentral.paths.restapi.account.extension.meetingrecordings + +class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/meeting-recordings" + } + + /** + * Operation: Get User Meeting Recordings List + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meeting-recordings + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListUserMeetingRecordingsParameters? = null): com.ringcentral.definitions.ListMeetingRecordingsResponse? { + val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ListMeetingRecordingsResponse::class.java) + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/Index.kt index 613108f0..dc21f960 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/Index.kt @@ -1,25 +1,21 @@ package com.ringcentral.paths.restapi.account.extension.meetingsconfiguration class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/meetings-configuration" - } + fun path(): String { + return "${parent.path()}/meetings-configuration" + } - fun assistants() : com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.assistants.Index - { + + fun assistants(): com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.assistants.Index { return com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.assistants.Index(this) - } - + } - fun assisted() : com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.assisted.Index - { + fun assisted(): com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.assisted.Index { return com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.assisted.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/assistants/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/assistants/Index.kt index 832ada92..da19b218 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/assistants/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/assistants/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.assistants class Index(val parent: com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/assistants" - } - /** - * Operation: Get Assistants - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meetings-configuration/assistants - */ - fun get() : com.ringcentral.definitions.AssistantsResource? - { + fun path(): String { + return "${parent.path()}/assistants" + } + + /** + * Operation: Get Assistants + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meetings-configuration/assistants + */ + fun get(): com.ringcentral.definitions.AssistantsResource? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AssistantsResource::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/assisted/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/assisted/Index.kt index 8ebc54c3..a25a4571 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/assisted/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/meetingsconfiguration/assisted/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.assisted class Index(val parent: com.ringcentral.paths.restapi.account.extension.meetingsconfiguration.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/assisted" - } - /** - * Operation: Get Assisted Users - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meetings-configuration/assisted - */ - fun get() : com.ringcentral.definitions.AssistedUsersResource? - { + fun path(): String { + return "${parent.path()}/assisted" + } + + /** + * Operation: Get Assisted Users + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/meetings-configuration/assisted + */ + fun get(): com.ringcentral.definitions.AssistedUsersResource? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AssistedUsersResource::class.java) - + } - + } 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 eceffc45..19ea461c 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 @@ -1,90 +1,82 @@ package com.ringcentral.paths.restapi.account.extension.messagestore class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, val messageId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && messageId != null) - { - return "${parent.path()}/message-store/${messageId}" - } - return "${parent.path()}/message-store" + fun path(withParameter: Boolean = true): String { + if (withParameter && messageId != null) { + return "${parent.path()}/message-store/${messageId}" } - /** - * Operation: Get Message List - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListMessagesParameters? = null) : com.ringcentral.definitions.GetMessageList? - { + return "${parent.path()}/message-store" + } + + /** + * Operation: Get Message List + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListMessagesParameters? = null): com.ringcentral.definitions.GetMessageList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetMessageList::class.java) - + } - - - /** - * Operation: Get Message - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/{messageId} - */ - fun get() : com.ringcentral.definitions.GetMessageInfoResponse? - { - if (this.messageId == null) - { - throw NullPointerException("messageId"); - } + + + /** + * Operation: Get Message + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/{messageId} + */ + fun get(): com.ringcentral.definitions.GetMessageInfoResponse? { + if (this.messageId == null) { + throw NullPointerException("messageId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetMessageInfoResponse::class.java) - + } - - - /** - * Operation: Update Message(s) - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/{messageId} - */ - fun put(updateMessageRequest: com.ringcentral.definitions.UpdateMessageRequest) : com.ringcentral.definitions.GetMessageInfoResponse? - { - if (this.messageId == null) - { - throw NullPointerException("messageId"); - } + + + /** + * Operation: Update Message(s) + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/{messageId} + */ + fun put(updateMessageRequest: com.ringcentral.definitions.UpdateMessageRequest): com.ringcentral.definitions.GetMessageInfoResponse? { + if (this.messageId == null) { + throw NullPointerException("messageId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateMessageRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetMessageInfoResponse::class.java) - + } - - - /** - * Operation: Delete Message - * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/{messageId} - */ - @JvmOverloads fun delete(queryParams: com.ringcentral.definitions.DeleteMessageParameters? = null) : String? - { - if (this.messageId == null) - { - throw NullPointerException("messageId"); - } + + + /** + * Operation: Delete Message + * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/{messageId} + */ + @JvmOverloads + fun delete(queryParams: com.ringcentral.definitions.DeleteMessageParameters? = null): String? { + if (this.messageId == null) { + throw NullPointerException("messageId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path(), queryParams) - + return rb.string() - + } - - @JvmOverloads fun content(attachmentId: String? = null) : com.ringcentral.paths.restapi.account.extension.messagestore.content.Index - { + @JvmOverloads + fun content(attachmentId: String? = null): com.ringcentral.paths.restapi.account.extension.messagestore.content.Index { return com.ringcentral.paths.restapi.account.extension.messagestore.content.Index(this, attachmentId) - } - -} \ No newline at end of file + } + +} 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 f7435383..08b2b50b 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 @@ -1,34 +1,31 @@ package com.ringcentral.paths.restapi.account.extension.messagestore.content class Index(val parent: com.ringcentral.paths.restapi.account.extension.messagestore.Index, val attachmentId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && attachmentId != null) - { - return "${parent.path()}/content/${attachmentId}" - } - return "${parent.path()}/content" + fun path(withParameter: Boolean = true): String { + if (withParameter && attachmentId != null) { + return "${parent.path()}/content/${attachmentId}" } - /** - * Operation: Get Message Content - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/{messageId}/content/{attachmentId} - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadMessageContentParameters? = null) : ByteArray? - { - if (this.attachmentId == null) - { - throw NullPointerException("attachmentId"); - } + return "${parent.path()}/content" + } + + /** + * Operation: Get Message Content + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/{messageId}/content/{attachmentId} + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadMessageContentParameters? = null): ByteArray? { + if (this.attachmentId == null) { + throw NullPointerException("attachmentId") + } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return rb.bytes() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/messagesync/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/messagesync/Index.kt index 93ad955d..c8ec0e77 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/messagesync/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/messagesync/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.extension.messagesync class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/message-sync" - } - /** - * Operation: Sync Messages - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-sync - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.SyncMessagesParameters? = null) : com.ringcentral.definitions.GetMessageSyncResponse? - { + fun path(): String { + return "${parent.path()}/message-sync" + } + + /** + * Operation: Sync Messages + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-sync + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.SyncMessagesParameters? = null): com.ringcentral.definitions.GetMessageSyncResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetMessageSyncResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/mms/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/mms/Index.kt index 85eb2e68..db9c412c 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/mms/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/mms/Index.kt @@ -1,28 +1,26 @@ package com.ringcentral.paths.restapi.account.extension.mms class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/mms" - } - - /** - * Operation: Create MMS Message - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/mms - */ - fun post(createSMSMessage: com.ringcentral.definitions.CreateSMSMessage) : com.ringcentral.definitions.GetMessageInfoResponse? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/mms" + } + + /** + * Operation: Create MMS Message + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/mms + */ + fun post(createSMSMessage: com.ringcentral.definitions.CreateSMSMessage): com.ringcentral.definitions.GetMessageInfoResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), createSMSMessage, null, com.ringcentral.ContentType.MULTIPART) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetMessageInfoResponse::class.java) - + } - -/** + + /** * Operation: Create MMS Message * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/mms */ @@ -30,4 +28,4 @@ class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { val rb: okhttp3.ResponseBody = rc.post(this.path(), createMMSMessage, null, com.ringcentral.ContentType.MULTIPART) return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetMessageInfoResponse::class.java) } -} \ No newline at end of file +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/notificationsettings/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/notificationsettings/Index.kt index 3c1d159c..f095ca9e 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/notificationsettings/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/notificationsettings/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.account.extension.notificationsettings class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/notification-settings" - } - - /** - * Operation: Get Notification Settings - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/notification-settings - */ - fun get() : com.ringcentral.definitions.NotificationSettings? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/notification-settings" + } + + /** + * Operation: Get Notification Settings + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/notification-settings + */ + fun get(): com.ringcentral.definitions.NotificationSettings? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.NotificationSettings::class.java) - + } - - - /** - * Operation: Update Notification Settings - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/notification-settings - */ - fun put(notificationSettingsUpdateRequest: com.ringcentral.definitions.NotificationSettingsUpdateRequest) : com.ringcentral.definitions.NotificationSettings? - { + + + /** + * Operation: Update Notification Settings + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/notification-settings + */ + fun put(notificationSettingsUpdateRequest: com.ringcentral.definitions.NotificationSettingsUpdateRequest): com.ringcentral.definitions.NotificationSettings? { val rb: okhttp3.ResponseBody = rc.put(this.path(), notificationSettingsUpdateRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.NotificationSettings::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/phonenumber/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/phonenumber/Index.kt index 79ca961f..b28efba0 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/phonenumber/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/phonenumber/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.extension.phonenumber class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/phone-number" - } - /** - * Operation: Get Extension Phone Number List - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/phone-number - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListExtensionPhoneNumbersParameters? = null) : com.ringcentral.definitions.GetExtensionPhoneNumbersResponse? - { + fun path(): String { + return "${parent.path()}/phone-number" + } + + /** + * Operation: Get Extension Phone Number List + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/phone-number + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListExtensionPhoneNumbersParameters? = null): com.ringcentral.definitions.GetExtensionPhoneNumbersResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetExtensionPhoneNumbersResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/presence/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/presence/Index.kt index a42c97a6..a0a6fbcd 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/presence/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/presence/Index.kt @@ -1,37 +1,35 @@ package com.ringcentral.paths.restapi.account.extension.presence class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/presence" - } - - /** - * Operation: Get User Presence Status - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadUserPresenceStatusParameters? = null) : com.ringcentral.definitions.GetPresenceInfo? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/presence" + } + + /** + * Operation: Get User Presence Status + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadUserPresenceStatusParameters? = null): com.ringcentral.definitions.GetPresenceInfo? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetPresenceInfo::class.java) - + } - - - /** - * Operation: Update User Presence Status - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence - */ - fun put(presenceInfoResource: com.ringcentral.definitions.PresenceInfoResource) : com.ringcentral.definitions.PresenceInfoResource? - { + + + /** + * Operation: Update User Presence Status + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/presence + */ + fun put(presenceInfoResource: com.ringcentral.definitions.PresenceInfoResource): com.ringcentral.definitions.PresenceInfoResource? { val rb: okhttp3.ResponseBody = rc.put(this.path(), presenceInfoResource) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PresenceInfoResource::class.java) - + } - + } 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 84d6ace9..067e7a26 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 @@ -1,73 +1,66 @@ package com.ringcentral.paths.restapi.account.extension.profileimage class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, val scaleSize: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && scaleSize != null) - { - return "${parent.path()}/profile-image/${scaleSize}" - } - return "${parent.path()}/profile-image" + fun path(withParameter: Boolean = true): String { + if (withParameter && scaleSize != null) { + return "${parent.path()}/profile-image/${scaleSize}" } - /** - * Operation: Get User Profile Image - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/profile-image - */ - fun list() : ByteArray? - { + return "${parent.path()}/profile-image" + } + + /** + * Operation: Get User Profile Image + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/profile-image + */ + fun list(): ByteArray? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return rb.bytes() - + } - - - /** - * Operation: Upload User Profile Image - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/profile-image - */ - fun post(createUserProfileImageRequest: com.ringcentral.definitions.CreateUserProfileImageRequest) : String? - { + + + /** + * Operation: Upload User Profile Image + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/profile-image + */ + fun post(createUserProfileImageRequest: com.ringcentral.definitions.CreateUserProfileImageRequest): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createUserProfileImageRequest, null, com.ringcentral.ContentType.MULTIPART) - + return rb.string() - + } - - - /** - * Operation: Update User Profile Image - * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/profile-image - */ - fun put(updateUserProfileImageRequest: com.ringcentral.definitions.UpdateUserProfileImageRequest) : String? - { + + + /** + * Operation: Update User Profile Image + * Http Put /restapi/v1.0/account/{accountId}/extension/{extensionId}/profile-image + */ + fun put(updateUserProfileImageRequest: com.ringcentral.definitions.UpdateUserProfileImageRequest): String? { val rb: okhttp3.ResponseBody = rc.put(this.path(false), updateUserProfileImageRequest, null, com.ringcentral.ContentType.MULTIPART) - + return rb.string() - + } - - - /** - * Operation: Get Scaled User Profile Image - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/profile-image/{scaleSize} - */ - fun get() : ByteArray? - { - if (this.scaleSize == null) - { - throw NullPointerException("scaleSize"); - } + + + /** + * Operation: Get Scaled User Profile Image + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/profile-image/{scaleSize} + */ + fun get(): ByteArray? { + if (this.scaleSize == null) { + throw NullPointerException("scaleSize") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return rb.bytes() - + } - + } 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 46835a52..20132199 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 @@ -1,65 +1,58 @@ package com.ringcentral.paths.restapi.account.extension.ringout class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index, val ringoutId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && ringoutId != null) - { - return "${parent.path()}/ring-out/${ringoutId}" - } - return "${parent.path()}/ring-out" + fun path(withParameter: Boolean = true): String { + if (withParameter && ringoutId != null) { + return "${parent.path()}/ring-out/${ringoutId}" } - /** - * Operation: Make RingOut Call - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/ring-out - */ - fun post(makeRingOutRequest: com.ringcentral.definitions.MakeRingOutRequest) : com.ringcentral.definitions.GetRingOutStatusResponse? - { + return "${parent.path()}/ring-out" + } + + /** + * Operation: Make RingOut Call + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/ring-out + */ + fun post(makeRingOutRequest: com.ringcentral.definitions.MakeRingOutRequest): com.ringcentral.definitions.GetRingOutStatusResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), makeRingOutRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetRingOutStatusResponse::class.java) - + } - - - /** - * Operation: Get RingOut Call Status - * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId} - */ - fun get() : com.ringcentral.definitions.GetRingOutStatusResponse? - { - if (this.ringoutId == null) - { - throw NullPointerException("ringoutId"); - } + + + /** + * Operation: Get RingOut Call Status + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId} + */ + fun get(): com.ringcentral.definitions.GetRingOutStatusResponse? { + if (this.ringoutId == null) { + throw NullPointerException("ringoutId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetRingOutStatusResponse::class.java) - + } - - - /** - * Operation: Cancel RingOut Call - * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId} - */ - fun delete() : String? - { - if (this.ringoutId == null) - { - throw NullPointerException("ringoutId"); - } + + + /** + * Operation: Cancel RingOut Call + * Http Delete /restapi/v1.0/account/{accountId}/extension/{extensionId}/ring-out/{ringoutId} + */ + fun delete(): String? { + if (this.ringoutId == null) { + throw NullPointerException("ringoutId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/sms/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/sms/Index.kt index 87f92c2f..5b6599c1 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/extension/sms/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/sms/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.extension.sms class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/sms" - } - /** - * Operation: Send SMS - * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/sms - */ - fun post(createSMSMessage: com.ringcentral.definitions.CreateSMSMessage) : com.ringcentral.definitions.GetMessageInfoResponse? - { + fun path(): String { + return "${parent.path()}/sms" + } + + /** + * Operation: Send SMS + * Http Post /restapi/v1.0/account/{accountId}/extension/{extensionId}/sms + */ + fun post(createSMSMessage: com.ringcentral.definitions.CreateSMSMessage): com.ringcentral.definitions.GetMessageInfoResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), createSMSMessage) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetMessageInfoResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/extension/unifiedpresence/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/extension/unifiedpresence/Index.kt new file mode 100644 index 00000000..7b8610f1 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/extension/unifiedpresence/Index.kt @@ -0,0 +1,34 @@ +package com.ringcentral.paths.restapi.account.extension.unifiedpresence + +class Index(val parent: com.ringcentral.paths.restapi.account.extension.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/unified-presence" + } + + /** + * Operation: Get Unified Presence + * Http Get /restapi/v1.0/account/{accountId}/extension/{extensionId}/unified-presence + */ + fun get(): com.ringcentral.definitions.UnifiedPresence? { + val rb: okhttp3.ResponseBody = rc.get(this.path()) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UnifiedPresence::class.java) + + } + + + /** + * Operation: Update Unified Presence + * Http Patch /restapi/v1.0/account/{accountId}/extension/{extensionId}/unified-presence + */ + fun patch(updateUnifiedPresence: com.ringcentral.definitions.UpdateUnifiedPresence): com.ringcentral.definitions.UnifiedPresence? { + val rb: okhttp3.ResponseBody = rc.patch(this.path(), updateUnifiedPresence) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UnifiedPresence::class.java) + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/greeting/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/greeting/Index.kt index b67fe870..5d952b72 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/greeting/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/greeting/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.greeting class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/greeting" - } - /** - * Operation: Create Company Greeting - * Http Post /restapi/v1.0/account/{accountId}/greeting - */ - fun post(createCompanyGreetingRequest: com.ringcentral.definitions.CreateCompanyGreetingRequest) : com.ringcentral.definitions.CustomCompanyGreetingInfo? - { + fun path(): String { + return "${parent.path()}/greeting" + } + + /** + * Operation: Create Company Greeting + * Http Post /restapi/v1.0/account/{accountId}/greeting + */ + fun post(createCompanyGreetingRequest: com.ringcentral.definitions.CreateCompanyGreetingRequest): com.ringcentral.definitions.CustomCompanyGreetingInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(), createCompanyGreetingRequest, null, com.ringcentral.ContentType.MULTIPART) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CustomCompanyGreetingInfo::class.java) - + } - + } 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 78f96700..063c0867 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 @@ -1,65 +1,58 @@ package com.ringcentral.paths.restapi.account.ivrmenus class Index(val parent: com.ringcentral.paths.restapi.account.Index, val ivrMenuId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && ivrMenuId != null) - { - return "${parent.path()}/ivr-menus/${ivrMenuId}" - } - return "${parent.path()}/ivr-menus" + fun path(withParameter: Boolean = true): String { + if (withParameter && ivrMenuId != null) { + return "${parent.path()}/ivr-menus/${ivrMenuId}" } - /** - * Operation: Create IVR Menu - * Http Post /restapi/v1.0/account/{accountId}/ivr-menus - */ - fun post(iVRMenuInfo: com.ringcentral.definitions.IVRMenuInfo) : com.ringcentral.definitions.IVRMenuInfo? - { + return "${parent.path()}/ivr-menus" + } + + /** + * Operation: Create IVR Menu + * Http Post /restapi/v1.0/account/{accountId}/ivr-menus + */ + fun post(iVRMenuInfo: com.ringcentral.definitions.IVRMenuInfo): com.ringcentral.definitions.IVRMenuInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), iVRMenuInfo) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.IVRMenuInfo::class.java) - + } - - - /** - * Operation: Get IVR Menu - * Http Get /restapi/v1.0/account/{accountId}/ivr-menus/{ivrMenuId} - */ - fun get() : com.ringcentral.definitions.IVRMenuInfo? - { - if (this.ivrMenuId == null) - { - throw NullPointerException("ivrMenuId"); - } + + + /** + * Operation: Get IVR Menu + * Http Get /restapi/v1.0/account/{accountId}/ivr-menus/{ivrMenuId} + */ + fun get(): com.ringcentral.definitions.IVRMenuInfo? { + if (this.ivrMenuId == null) { + throw NullPointerException("ivrMenuId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.IVRMenuInfo::class.java) - + } - - - /** - * Operation: Update IVR Menu - * Http Put /restapi/v1.0/account/{accountId}/ivr-menus/{ivrMenuId} - */ - fun put(iVRMenuInfo: com.ringcentral.definitions.IVRMenuInfo) : com.ringcentral.definitions.IVRMenuInfo? - { - if (this.ivrMenuId == null) - { - throw NullPointerException("ivrMenuId"); - } + + + /** + * Operation: Update IVR Menu + * Http Put /restapi/v1.0/account/{accountId}/ivr-menus/{ivrMenuId} + */ + fun put(iVRMenuInfo: com.ringcentral.definitions.IVRMenuInfo): com.ringcentral.definitions.IVRMenuInfo? { + if (this.ivrMenuId == null) { + throw NullPointerException("ivrMenuId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), iVRMenuInfo) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.IVRMenuInfo::class.java) - + } - + } 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 e159d8db..f8f6afa9 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 @@ -1,103 +1,91 @@ package com.ringcentral.paths.restapi.account.ivrprompts class Index(val parent: com.ringcentral.paths.restapi.account.Index, val promptId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && promptId != null) - { - return "${parent.path()}/ivr-prompts/${promptId}" - } - return "${parent.path()}/ivr-prompts" + fun path(withParameter: Boolean = true): String { + if (withParameter && promptId != null) { + return "${parent.path()}/ivr-prompts/${promptId}" } - /** - * Operation: Create IVR Prompts - * Http Post /restapi/v1.0/account/{accountId}/ivr-prompts - */ - fun post(createIVRPromptRequest: com.ringcentral.definitions.CreateIvrPromptRequest) : com.ringcentral.definitions.PromptInfo? - { + return "${parent.path()}/ivr-prompts" + } + + /** + * Operation: Create IVR Prompts + * Http Post /restapi/v1.0/account/{accountId}/ivr-prompts + */ + fun post(createIVRPromptRequest: com.ringcentral.definitions.CreateIvrPromptRequest): com.ringcentral.definitions.PromptInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createIVRPromptRequest, null, com.ringcentral.ContentType.MULTIPART) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PromptInfo::class.java) - + } - - - /** - * Operation: Get IVR Prompt List - * Http Get /restapi/v1.0/account/{accountId}/ivr-prompts - */ - fun list() : com.ringcentral.definitions.IVRPrompts? - { + + + /** + * Operation: Get IVR Prompt List + * Http Get /restapi/v1.0/account/{accountId}/ivr-prompts + */ + fun list(): com.ringcentral.definitions.IVRPrompts? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.IVRPrompts::class.java) - + } - - - /** - * Operation: Get IVR Prompt - * Http Get /restapi/v1.0/account/{accountId}/ivr-prompts/{promptId} - */ - fun get() : com.ringcentral.definitions.PromptInfo? - { - if (this.promptId == null) - { - throw NullPointerException("promptId"); - } + + + /** + * Operation: Get IVR Prompt + * Http Get /restapi/v1.0/account/{accountId}/ivr-prompts/{promptId} + */ + fun get(): com.ringcentral.definitions.PromptInfo? { + if (this.promptId == null) { + throw NullPointerException("promptId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PromptInfo::class.java) - + } - - - /** - * Operation: Delete IVR Prompt - * Http Delete /restapi/v1.0/account/{accountId}/ivr-prompts/{promptId} - */ - fun delete() : String? - { - if (this.promptId == null) - { - throw NullPointerException("promptId"); - } + + + /** + * Operation: Delete IVR Prompt + * Http Delete /restapi/v1.0/account/{accountId}/ivr-prompts/{promptId} + */ + fun delete(): String? { + if (this.promptId == null) { + throw NullPointerException("promptId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - - /** - * Operation: Update IVR Prompt - * Http Put /restapi/v1.0/account/{accountId}/ivr-prompts/{promptId} - */ - fun put(updateIVRPromptRequest: com.ringcentral.definitions.UpdateIVRPromptRequest) : com.ringcentral.definitions.PromptInfo? - { - if (this.promptId == null) - { - throw NullPointerException("promptId"); - } + + + /** + * Operation: Update IVR Prompt + * Http Put /restapi/v1.0/account/{accountId}/ivr-prompts/{promptId} + */ + fun put(updateIVRPromptRequest: com.ringcentral.definitions.UpdateIVRPromptRequest): com.ringcentral.definitions.PromptInfo? { + if (this.promptId == null) { + throw NullPointerException("promptId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), updateIVRPromptRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PromptInfo::class.java) - + } - - fun content() : com.ringcentral.paths.restapi.account.ivrprompts.content.Index - { + fun content(): com.ringcentral.paths.restapi.account.ivrprompts.content.Index { return com.ringcentral.paths.restapi.account.ivrprompts.content.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/ivrprompts/content/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/ivrprompts/content/Index.kt index fcdfa642..9b8ef39b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/ivrprompts/content/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/ivrprompts/content/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.ivrprompts.content class Index(val parent: com.ringcentral.paths.restapi.account.ivrprompts.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/content" - } - /** - * Operation: Get IVR Prompt Content - * Http Get /restapi/v1.0/account/{accountId}/ivr-prompts/{promptId}/content - */ - fun get() : ByteArray? - { + fun path(): String { + return "${parent.path()}/content" + } + + /** + * Operation: Get IVR Prompt Content + * Http Get /restapi/v1.0/account/{accountId}/ivr-prompts/{promptId}/content + */ + fun get(): ByteArray? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return rb.bytes() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/meetingrecordings/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/meetingrecordings/Index.kt new file mode 100644 index 00000000..22e01c4f --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/meetingrecordings/Index.kt @@ -0,0 +1,23 @@ +package com.ringcentral.paths.restapi.account.meetingrecordings + +class Index(val parent: com.ringcentral.paths.restapi.account.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/meeting-recordings" + } + + /** + * Operation: Get Account Meeting Recordings List + * Http Get /restapi/v1.0/account/{accountId}/meeting-recordings + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListAccountMeetingRecordingsParameters? = null): com.ringcentral.definitions.ListMeetingRecordingsResponse? { + val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ListMeetingRecordingsResponse::class.java) + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/messagestoreconfiguration/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/messagestoreconfiguration/Index.kt index 4147d880..73d9b825 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/messagestoreconfiguration/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/messagestoreconfiguration/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.account.messagestoreconfiguration class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/message-store-configuration" - } - - /** - * Operation: Get Message Store Configuration - * Http Get /restapi/v1.0/account/{accountId}/message-store-configuration - */ - fun get() : com.ringcentral.definitions.MessageStoreConfiguration? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/message-store-configuration" + } + + /** + * Operation: Get Message Store Configuration + * Http Get /restapi/v1.0/account/{accountId}/message-store-configuration + */ + fun get(): com.ringcentral.definitions.MessageStoreConfiguration? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MessageStoreConfiguration::class.java) - + } - - - /** - * Operation: Update Message Store Configuration - * Http Put /restapi/v1.0/account/{accountId}/message-store-configuration - */ - fun put(messageStoreConfiguration: com.ringcentral.definitions.MessageStoreConfiguration) : com.ringcentral.definitions.MessageStoreConfiguration? - { + + + /** + * Operation: Update Message Store Configuration + * Http Put /restapi/v1.0/account/{accountId}/message-store-configuration + */ + fun put(messageStoreConfiguration: com.ringcentral.definitions.MessageStoreConfiguration): com.ringcentral.definitions.MessageStoreConfiguration? { val rb: okhttp3.ResponseBody = rc.put(this.path(), messageStoreConfiguration) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MessageStoreConfiguration::class.java) - + } - + } 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 ce88d87a..c3e3352d 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 @@ -1,54 +1,48 @@ package com.ringcentral.paths.restapi.account.messagestorereport class Index(val parent: com.ringcentral.paths.restapi.account.Index, val taskId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && taskId != null) - { - return "${parent.path()}/message-store-report/${taskId}" - } - return "${parent.path()}/message-store-report" + fun path(withParameter: Boolean = true): String { + if (withParameter && taskId != null) { + return "${parent.path()}/message-store-report/${taskId}" } - /** - * Operation: Create Message Store Report - * Http Post /restapi/v1.0/account/{accountId}/message-store-report - */ - fun post(createMessageStoreReportRequest: com.ringcentral.definitions.CreateMessageStoreReportRequest) : com.ringcentral.definitions.MessageStoreReport? - { + return "${parent.path()}/message-store-report" + } + + /** + * Operation: Create Message Store Report + * Http Post /restapi/v1.0/account/{accountId}/message-store-report + */ + fun post(createMessageStoreReportRequest: com.ringcentral.definitions.CreateMessageStoreReportRequest): com.ringcentral.definitions.MessageStoreReport? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createMessageStoreReportRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MessageStoreReport::class.java) - + } - - - /** - * Operation: Get Message Store Report Task - * Http Get /restapi/v1.0/account/{accountId}/message-store-report/{taskId} - */ - fun get() : com.ringcentral.definitions.MessageStoreReport? - { - if (this.taskId == null) - { - throw NullPointerException("taskId"); - } + + + /** + * Operation: Get Message Store Report Task + * Http Get /restapi/v1.0/account/{accountId}/message-store-report/{taskId} + */ + fun get(): com.ringcentral.definitions.MessageStoreReport? { + if (this.taskId == null) { + throw NullPointerException("taskId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MessageStoreReport::class.java) - + } - - @JvmOverloads fun archive(archiveId: String? = null) : com.ringcentral.paths.restapi.account.messagestorereport.archive.Index - { + @JvmOverloads + fun archive(archiveId: String? = null): com.ringcentral.paths.restapi.account.messagestorereport.archive.Index { return com.ringcentral.paths.restapi.account.messagestorereport.archive.Index(this, archiveId) - } - -} \ No newline at end of file + } + +} 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 538d0263..7d538ab9 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 @@ -1,47 +1,42 @@ package com.ringcentral.paths.restapi.account.messagestorereport.archive class Index(val parent: com.ringcentral.paths.restapi.account.messagestorereport.Index, val archiveId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && archiveId != null) - { - return "${parent.path()}/archive/${archiveId}" - } - return "${parent.path()}/archive" + fun path(withParameter: Boolean = true): String { + if (withParameter && archiveId != null) { + return "${parent.path()}/archive/${archiveId}" } - /** - * Operation: Get Message Store Report Archive - * Http Get /restapi/v1.0/account/{accountId}/message-store-report/{taskId}/archive - */ - fun list() : com.ringcentral.definitions.MessageStoreReportArchive? - { + return "${parent.path()}/archive" + } + + /** + * Operation: Get Message Store Report Archive + * Http Get /restapi/v1.0/account/{accountId}/message-store-report/{taskId}/archive + */ + fun list(): com.ringcentral.definitions.MessageStoreReportArchive? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.MessageStoreReportArchive::class.java) - + } - - - /** - * Operation: Get Message Store Report Archive Content - * Http Get /restapi/v1.0/account/{accountId}/message-store-report/{taskId}/archive/{archiveId} - */ - fun get() : String? - { - if (this.archiveId == null) - { - throw NullPointerException("archiveId"); - } + + + /** + * Operation: Get Message Store Report Archive Content + * Http Get /restapi/v1.0/account/{accountId}/message-store-report/{taskId}/archive/{archiveId} + */ + fun get(): String? { + if (this.archiveId == null) { + throw NullPointerException("archiveId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/Index.kt index 09528a03..9bb3689e 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/Index.kt @@ -1,37 +1,30 @@ package com.ringcentral.paths.restapi.account.pagingonlygroups class Index(val parent: com.ringcentral.paths.restapi.account.Index, val pagingOnlyGroupId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && pagingOnlyGroupId != null) - { - return "${parent.path()}/paging-only-groups/${pagingOnlyGroupId}" - } - return "${parent.path()}/paging-only-groups" + fun path(withParameter: Boolean = true): String { + if (withParameter && pagingOnlyGroupId != null) { + return "${parent.path()}/paging-only-groups/${pagingOnlyGroupId}" } + return "${parent.path()}/paging-only-groups" + } - fun users() : com.ringcentral.paths.restapi.account.pagingonlygroups.users.Index - { + + fun users(): com.ringcentral.paths.restapi.account.pagingonlygroups.users.Index { return com.ringcentral.paths.restapi.account.pagingonlygroups.users.Index(this) - } - + } - fun devices() : com.ringcentral.paths.restapi.account.pagingonlygroups.devices.Index - { + fun devices(): com.ringcentral.paths.restapi.account.pagingonlygroups.devices.Index { return com.ringcentral.paths.restapi.account.pagingonlygroups.devices.Index(this) - } - + } - fun bulkassign() : com.ringcentral.paths.restapi.account.pagingonlygroups.bulkassign.Index - { + fun bulkassign(): com.ringcentral.paths.restapi.account.pagingonlygroups.bulkassign.Index { return com.ringcentral.paths.restapi.account.pagingonlygroups.bulkassign.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/bulkassign/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/bulkassign/Index.kt index 9b1e5721..a8a55e14 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/bulkassign/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/bulkassign/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.pagingonlygroups.bulkassign class Index(val parent: com.ringcentral.paths.restapi.account.pagingonlygroups.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/bulk-assign" - } - /** - * Operation: Assign Paging Group Users and Devices - * Http Post /restapi/v1.0/account/{accountId}/paging-only-groups/{pagingOnlyGroupId}/bulk-assign - */ - fun post(editPagingGroupRequest: com.ringcentral.definitions.EditPagingGroupRequest) : String? - { + fun path(): String { + return "${parent.path()}/bulk-assign" + } + + /** + * Operation: Assign Paging Group Users and Devices + * Http Post /restapi/v1.0/account/{accountId}/paging-only-groups/{pagingOnlyGroupId}/bulk-assign + */ + fun post(editPagingGroupRequest: com.ringcentral.definitions.EditPagingGroupRequest): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), editPagingGroupRequest) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/devices/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/devices/Index.kt index 3703fc8b..067eebe5 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/devices/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/devices/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.pagingonlygroups.devices class Index(val parent: com.ringcentral.paths.restapi.account.pagingonlygroups.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/devices" - } - /** - * Operation: Get Paging Group Devices - * Http Get /restapi/v1.0/account/{accountId}/paging-only-groups/{pagingOnlyGroupId}/devices - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListPagingGroupDevicesParameters? = null) : com.ringcentral.definitions.PagingOnlyGroupDevices? - { + fun path(): String { + return "${parent.path()}/devices" + } + + /** + * Operation: Get Paging Group Devices + * Http Get /restapi/v1.0/account/{accountId}/paging-only-groups/{pagingOnlyGroupId}/devices + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListPagingGroupDevicesParameters? = null): com.ringcentral.definitions.PagingOnlyGroupDevices? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PagingOnlyGroupDevices::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/users/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/users/Index.kt index bbcbaa26..78f07ff2 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/users/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/pagingonlygroups/users/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.pagingonlygroups.users class Index(val parent: com.ringcentral.paths.restapi.account.pagingonlygroups.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/users" - } - /** - * Operation: Get Paging Group Users - * Http Get /restapi/v1.0/account/{accountId}/paging-only-groups/{pagingOnlyGroupId}/users - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListPagingGroupUsersParameters? = null) : com.ringcentral.definitions.PagingOnlyGroupUsers? - { + fun path(): String { + return "${parent.path()}/users" + } + + /** + * Operation: Get Paging Group Users + * Http Get /restapi/v1.0/account/{accountId}/paging-only-groups/{pagingOnlyGroupId}/users + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListPagingGroupUsersParameters? = null): com.ringcentral.definitions.PagingOnlyGroupUsers? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PagingOnlyGroupUsers::class.java) - + } - + } 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 f1f47047..2d05acf1 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 @@ -1,47 +1,43 @@ package com.ringcentral.paths.restapi.account.phonenumber class Index(val parent: com.ringcentral.paths.restapi.account.Index, val phoneNumberId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && phoneNumberId != null) - { - return "${parent.path()}/phone-number/${phoneNumberId}" - } - return "${parent.path()}/phone-number" + fun path(withParameter: Boolean = true): String { + if (withParameter && phoneNumberId != null) { + return "${parent.path()}/phone-number/${phoneNumberId}" } - /** - * Operation: Get Company Phone Number List - * Http Get /restapi/v1.0/account/{accountId}/phone-number - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListAccountPhoneNumbersParameters? = null) : com.ringcentral.definitions.AccountPhoneNumbers? - { + return "${parent.path()}/phone-number" + } + + /** + * Operation: Get Company Phone Number List + * Http Get /restapi/v1.0/account/{accountId}/phone-number + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListAccountPhoneNumbersParameters? = null): com.ringcentral.definitions.AccountPhoneNumbers? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AccountPhoneNumbers::class.java) - + } - - - /** - * Operation: Get Phone Number - * Http Get /restapi/v1.0/account/{accountId}/phone-number/{phoneNumberId} - */ - fun get() : com.ringcentral.definitions.CompanyPhoneNumberInfo? - { - if (this.phoneNumberId == null) - { - throw NullPointerException("phoneNumberId"); - } + + + /** + * Operation: Get Phone Number + * Http Get /restapi/v1.0/account/{accountId}/phone-number/{phoneNumberId} + */ + fun get(): com.ringcentral.definitions.CompanyPhoneNumberInfo? { + if (this.phoneNumberId == null) { + throw NullPointerException("phoneNumberId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CompanyPhoneNumberInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/presence/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/presence/Index.kt index 3deadcf3..8cad6fe3 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/presence/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/presence/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.account.presence class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/presence" - } - /** - * Operation: Get User Presence Status List - * Http Get /restapi/v1.0/account/{accountId}/presence - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadAccountPresenceParameters? = null) : com.ringcentral.definitions.AccountPresenceInfo? - { + fun path(): String { + return "${parent.path()}/presence" + } + + /** + * Operation: Get User Presence Status List + * Http Get /restapi/v1.0/account/{accountId}/presence + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadAccountPresenceParameters? = null): com.ringcentral.definitions.AccountPresenceInfo? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.AccountPresenceInfo::class.java) - + } - + } 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 27ae7e1c..5fbdff9e 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 @@ -1,41 +1,35 @@ package com.ringcentral.paths.restapi.account.recording class Index(val parent: com.ringcentral.paths.restapi.account.Index, val recordingId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && recordingId != null) - { - return "${parent.path()}/recording/${recordingId}" - } - return "${parent.path()}/recording" + fun path(withParameter: Boolean = true): String { + if (withParameter && recordingId != null) { + return "${parent.path()}/recording/${recordingId}" } - /** - * Operation: Get Call Recording - * Http Get /restapi/v1.0/account/{accountId}/recording/{recordingId} - */ - fun get() : com.ringcentral.definitions.GetCallRecordingResponse? - { - if (this.recordingId == null) - { - throw NullPointerException("recordingId"); - } + return "${parent.path()}/recording" + } + + /** + * Operation: Get Call Recording + * Http Get /restapi/v1.0/account/{accountId}/recording/{recordingId} + */ + fun get(): com.ringcentral.definitions.GetCallRecordingResponse? { + if (this.recordingId == null) { + throw NullPointerException("recordingId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetCallRecordingResponse::class.java) - + } - - fun content() : com.ringcentral.paths.restapi.account.recording.content.Index - { + fun content(): com.ringcentral.paths.restapi.account.recording.content.Index { return com.ringcentral.paths.restapi.account.recording.content.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/recording/content/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/recording/content/Index.kt index a7289ef0..b320eea8 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/recording/content/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/recording/content/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.recording.content class Index(val parent: com.ringcentral.paths.restapi.account.recording.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/content" - } - /** - * Operation: Get Call Recordings Data - * Http Get /restapi/v1.0/account/{accountId}/recording/{recordingId}/content - */ - fun get() : ByteArray? - { + fun path(): String { + return "${parent.path()}/content" + } + + /** + * Operation: Get Call Recordings Data + * Http Get /restapi/v1.0/account/{accountId}/recording/{recordingId}/content + */ + fun get(): ByteArray? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return rb.bytes() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/serviceinfo/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/serviceinfo/Index.kt index 2ff9012b..0d1f344b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/serviceinfo/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/serviceinfo/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.serviceinfo class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/service-info" - } - /** - * Operation: Get Account Service Info - * Http Get /restapi/v1.0/account/{accountId}/service-info - */ - fun get() : com.ringcentral.definitions.GetServiceInfoResponse? - { + fun path(): String { + return "${parent.path()}/service-info" + } + + /** + * Operation: Get Account Service Info + * Http Get /restapi/v1.0/account/{accountId}/service-info + */ + fun get(): com.ringcentral.definitions.GetServiceInfoResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetServiceInfoResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/Index.kt index 4907327a..57617d81 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/Index.kt @@ -1,25 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony class Index(val parent: com.ringcentral.paths.restapi.account.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/telephony" - } + fun path(): String { + return "${parent.path()}/telephony" + } - fun callout() : com.ringcentral.paths.restapi.account.telephony.callout.Index - { + + fun callout(): com.ringcentral.paths.restapi.account.telephony.callout.Index { return com.ringcentral.paths.restapi.account.telephony.callout.Index(this) - } - + } - @JvmOverloads fun sessions(telephonySessionId: String? = null) : com.ringcentral.paths.restapi.account.telephony.sessions.Index - { + @JvmOverloads + fun sessions(telephonySessionId: String? = null): com.ringcentral.paths.restapi.account.telephony.sessions.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.Index(this, telephonySessionId) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/callout/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/callout/Index.kt index 73b2e262..c575e6f6 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/callout/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/callout/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.callout class Index(val parent: com.ringcentral.paths.restapi.account.telephony.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/call-out" - } - /** - * Operation: Create CallOut Call Session - * Http Post /restapi/v1.0/account/{accountId}/telephony/call-out - */ - fun post(makeCallOutRequest: com.ringcentral.definitions.MakeCallOutRequest) : com.ringcentral.definitions.CallSession? - { + fun path(): String { + return "${parent.path()}/call-out" + } + + /** + * Operation: Make CallOut + * Http Post /restapi/v1.0/account/{accountId}/telephony/call-out + */ + fun post(makeCallOutRequest: com.ringcentral.definitions.MakeCallOutRequest): com.ringcentral.definitions.CallSession? { val rb: okhttp3.ResponseBody = rc.post(this.path(), makeCallOutRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallSession::class.java) - + } - + } 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 bcd2c5ce..cc527e49 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 @@ -1,66 +1,58 @@ package com.ringcentral.paths.restapi.account.telephony.sessions class Index(val parent: com.ringcentral.paths.restapi.account.telephony.Index, val telephonySessionId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && telephonySessionId != null) - { - return "${parent.path()}/sessions/${telephonySessionId}" - } - return "${parent.path()}/sessions" + fun path(withParameter: Boolean = true): String { + if (withParameter && telephonySessionId != null) { + return "${parent.path()}/sessions/${telephonySessionId}" } - /** - * Operation: Get Call Session Status - * Http Get /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId} - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadCallSessionStatusParameters? = null) : com.ringcentral.definitions.CallSession? - { - if (this.telephonySessionId == null) - { - throw NullPointerException("telephonySessionId"); - } + return "${parent.path()}/sessions" + } + + /** + * Operation: Get Call Session Status + * Http Get /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId} + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadCallSessionStatusParameters? = null): com.ringcentral.definitions.CallSession? { + if (this.telephonySessionId == null) { + throw NullPointerException("telephonySessionId") + } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallSession::class.java) - + } - - - /** - * Operation: Drop Call Session - * Http Delete /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId} - */ - fun delete() : String? - { - if (this.telephonySessionId == null) - { - throw NullPointerException("telephonySessionId"); - } + + + /** + * Operation: Drop Call Session + * Http Delete /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId} + */ + fun delete(): String? { + if (this.telephonySessionId == null) { + throw NullPointerException("telephonySessionId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - @JvmOverloads fun parties(partyId: String? = null) : com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index - { + @JvmOverloads + fun parties(partyId: String? = null): com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index(this, partyId) - } - + } - fun supervise() : com.ringcentral.paths.restapi.account.telephony.sessions.supervise.Index - { + fun supervise(): com.ringcentral.paths.restapi.account.telephony.sessions.supervise.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.supervise.Index(this) - } - -} \ No newline at end of file + } + +} 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 df5c4092..4b55e788 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 @@ -1,122 +1,112 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.Index, val partyId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && partyId != null) - { - return "${parent.path()}/parties/${partyId}" - } - return "${parent.path()}/parties" + fun path(withParameter: Boolean = true): String { + if (withParameter && partyId != null) { + return "${parent.path()}/parties/${partyId}" } - /** - * Operation: Get Call Party Status - * Http Get /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId} - */ - fun get() : com.ringcentral.definitions.CallParty? - { - if (this.partyId == null) - { - throw NullPointerException("partyId"); - } + return "${parent.path()}/parties" + } + + /** + * Operation: Get Call Party Status + * Http Get /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId} + */ + fun get(): com.ringcentral.definitions.CallParty? { + if (this.partyId == null) { + throw NullPointerException("partyId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallParty::class.java) - + } - - /** - * Operation: Update Call Party - * Http Patch /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId} - */ - fun patch(partyUpdateRequest: com.ringcentral.definitions.PartyUpdateRequest) : com.ringcentral.definitions.CallParty? - { - if (this.partyId == null) - { - throw NullPointerException("partyId"); - } + + /** + * Operation: Update Call Party + * Http Patch /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId} + */ + fun patch(partyUpdateRequest: com.ringcentral.definitions.PartyUpdateRequest): com.ringcentral.definitions.CallParty? { + if (this.partyId == null) { + throw NullPointerException("partyId") + } val rb: okhttp3.ResponseBody = rc.patch(this.path(), partyUpdateRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallParty::class.java) - + } - - fun hold() : com.ringcentral.paths.restapi.account.telephony.sessions.parties.hold.Index - { + fun hold(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.hold.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.parties.hold.Index(this) - } - + } - fun unhold() : com.ringcentral.paths.restapi.account.telephony.sessions.parties.unhold.Index - { + fun unhold(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.unhold.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.parties.unhold.Index(this) - } - + } - fun reject() : com.ringcentral.paths.restapi.account.telephony.sessions.parties.reject.Index - { + fun reject(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.reject.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.parties.reject.Index(this) - } - + } - fun transfer() : com.ringcentral.paths.restapi.account.telephony.sessions.parties.transfer.Index - { + fun ignore(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.ignore.Index { + return com.ringcentral.paths.restapi.account.telephony.sessions.parties.ignore.Index(this) + } + + + fun transfer(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.transfer.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.parties.transfer.Index(this) - } - + } - fun answer() : com.ringcentral.paths.restapi.account.telephony.sessions.parties.answer.Index - { + fun answer(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.answer.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.parties.answer.Index(this) - } - + } - fun pickup() : com.ringcentral.paths.restapi.account.telephony.sessions.parties.pickup.Index - { + fun pickup(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.pickup.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.parties.pickup.Index(this) - } - + } - fun play() : com.ringcentral.paths.restapi.account.telephony.sessions.parties.play.Index - { - return com.ringcentral.paths.restapi.account.telephony.sessions.parties.play.Index(this) - } - + fun forward(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.forward.Index { + return com.ringcentral.paths.restapi.account.telephony.sessions.parties.forward.Index(this) + } - fun forward() : com.ringcentral.paths.restapi.account.telephony.sessions.parties.forward.Index - { - return com.ringcentral.paths.restapi.account.telephony.sessions.parties.forward.Index(this) - } - + fun reply(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.reply.Index { + return com.ringcentral.paths.restapi.account.telephony.sessions.parties.reply.Index(this) + } - fun flip() : com.ringcentral.paths.restapi.account.telephony.sessions.parties.flip.Index - { + fun flip(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.flip.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.parties.flip.Index(this) - } - + } - @JvmOverloads fun recordings(recordingId: String? = null) : com.ringcentral.paths.restapi.account.telephony.sessions.parties.recordings.Index - { + fun park(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.park.Index { + return com.ringcentral.paths.restapi.account.telephony.sessions.parties.park.Index(this) + } + + + @JvmOverloads + fun recordings(recordingId: String? = null): com.ringcentral.paths.restapi.account.telephony.sessions.parties.recordings.Index { return com.ringcentral.paths.restapi.account.telephony.sessions.parties.recordings.Index(this, recordingId) - } - -} \ No newline at end of file + } + + + fun supervise(): com.ringcentral.paths.restapi.account.telephony.sessions.parties.supervise.Index { + return com.ringcentral.paths.restapi.account.telephony.sessions.parties.supervise.Index(this) + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/answer/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/answer/Index.kt index e03eb323..58a2cf7e 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/answer/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/answer/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties.answer class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/answer" - } - /** - * Operation: Answer Call Party - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/answer - */ - fun post(answerTarget: com.ringcentral.definitions.AnswerTarget) : com.ringcentral.definitions.CallParty? - { + fun path(): String { + return "${parent.path()}/answer" + } + + /** + * Operation: Answer Call Party + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/answer + */ + fun post(answerTarget: com.ringcentral.definitions.AnswerTarget): com.ringcentral.definitions.CallParty? { val rb: okhttp3.ResponseBody = rc.post(this.path(), answerTarget) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallParty::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/flip/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/flip/Index.kt index 34dbe9c4..f2bb4d10 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/flip/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/flip/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties.flip class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/flip" - } - /** - * Operation: Call Flip on Party - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/flip - */ - fun post(callPartyFlip: com.ringcentral.definitions.CallPartyFlip) : String? - { + fun path(): String { + return "${parent.path()}/flip" + } + + /** + * Operation: Call Flip on Party + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/flip + */ + fun post(callPartyFlip: com.ringcentral.definitions.CallPartyFlip): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), callPartyFlip) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/forward/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/forward/Index.kt index e3765b08..7f6261ca 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/forward/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/forward/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties.forward class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/forward" - } - /** - * Operation: Forward Call Party - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/forward - */ - fun post(forwardTarget: com.ringcentral.definitions.ForwardTarget) : com.ringcentral.definitions.CallParty? - { + fun path(): String { + return "${parent.path()}/forward" + } + + /** + * Operation: Forward Call Party + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/forward + */ + fun post(forwardTarget: com.ringcentral.definitions.ForwardTarget): com.ringcentral.definitions.CallParty? { val rb: okhttp3.ResponseBody = rc.post(this.path(), forwardTarget) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallParty::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/hold/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/hold/Index.kt index 2b9942d9..e8d6208b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/hold/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/hold/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties.hold class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/hold" - } - /** - * Operation: Hold Call Party - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/hold - */ - fun post() : com.ringcentral.definitions.CallParty? - { + fun path(): String { + return "${parent.path()}/hold" + } + + /** + * Operation: Hold Call Party + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/hold + */ + fun post(): com.ringcentral.definitions.CallParty? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallParty::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/ignore/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/ignore/Index.kt new file mode 100644 index 00000000..ce0be416 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/ignore/Index.kt @@ -0,0 +1,22 @@ +package com.ringcentral.paths.restapi.account.telephony.sessions.parties.ignore + +class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/ignore" + } + + /** + * Operation: Ignore Call in Queue + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/ignore + */ + fun post(ignoreRequestBody: com.ringcentral.definitions.IgnoreRequestBody): String? { + val rb: okhttp3.ResponseBody = rc.post(this.path(), ignoreRequestBody) + + return rb.string() + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/park/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/park/Index.kt new file mode 100644 index 00000000..f7a2c222 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/park/Index.kt @@ -0,0 +1,22 @@ +package com.ringcentral.paths.restapi.account.telephony.sessions.parties.park + +class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/park" + } + + /** + * Operation: Call Park + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/park + */ + fun post(): com.ringcentral.definitions.CallParty? { + val rb: okhttp3.ResponseBody = rc.post(this.path()) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallParty::class.java) + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/pickup/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/pickup/Index.kt index bb37a487..2b2a8fb3 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/pickup/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/pickup/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties.pickup class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/pickup" - } - /** - * Operation: Pickup Call - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/pickup - */ - fun post(pickupTarget: com.ringcentral.definitions.PickupTarget) : com.ringcentral.definitions.CallParty? - { + fun path(): String { + return "${parent.path()}/pickup" + } + + /** + * Operation: Pickup Call + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/pickup + */ + fun post(pickupTarget: com.ringcentral.definitions.PickupTarget): com.ringcentral.definitions.CallParty? { val rb: okhttp3.ResponseBody = rc.post(this.path(), pickupTarget) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallParty::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/play/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/play/Index.kt deleted file mode 100644 index f8794a8b..00000000 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/play/Index.kt +++ /dev/null @@ -1,24 +0,0 @@ -package com.ringcentral.paths.restapi.account.telephony.sessions.parties.play - -class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/play" - } - - /** - * Operation: Play audio files into a party. - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/play - */ - fun post(playTarget: com.ringcentral.definitions.PlayTarget) : String? - { - val rb: okhttp3.ResponseBody = rc.post(this.path(), playTarget) - - return rb.string() - - } - -} 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 d6002326..a7634a8d 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 @@ -1,47 +1,43 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties.recordings class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index, val recordingId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && recordingId != null) - { - return "${parent.path()}/recordings/${recordingId}" - } - return "${parent.path()}/recordings" + fun path(withParameter: Boolean = true): String { + if (withParameter && recordingId != null) { + return "${parent.path()}/recordings/${recordingId}" } - /** - * Operation: Create Recording - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/recordings - */ - fun post() : String? - { + return "${parent.path()}/recordings" + } + + /** + * Operation: Create Recording + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/recordings + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(false)) - + return rb.string() - + } - - - /** - * Operation: Pause/Resume Recording - * Http Patch /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/recordings/{recordingId} - */ - @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"); - } + + + /** + * Operation: Pause/Resume Recording + * Http Patch /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/recordings/{recordingId} + */ + @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") + } val rb: okhttp3.ResponseBody = rc.patch(this.path(), callRecordingUpdate, queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallRecording::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/reject/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/reject/Index.kt index 16586c7a..4e4b9140 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/reject/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/reject/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties.reject class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/reject" - } - /** - * Operation: Reject Call Party - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/reject - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/reject" + } + + /** + * Operation: Reject Call Party + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/reject + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/reply/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/reply/Index.kt new file mode 100644 index 00000000..e322a072 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/reply/Index.kt @@ -0,0 +1,22 @@ +package com.ringcentral.paths.restapi.account.telephony.sessions.parties.reply + +class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/reply" + } + + /** + * Operation: Reply with Text + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/reply + */ + fun post(callPartyReply: com.ringcentral.definitions.CallPartyReply): com.ringcentral.definitions.ReplyParty? { + val rb: okhttp3.ResponseBody = rc.post(this.path(), callPartyReply) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ReplyParty::class.java) + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/supervise/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/supervise/Index.kt new file mode 100644 index 00000000..a3cac5db --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/supervise/Index.kt @@ -0,0 +1,22 @@ +package com.ringcentral.paths.restapi.account.telephony.sessions.parties.supervise + +class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/supervise" + } + + /** + * Operation: Supervise Call Party + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/supervise + */ + fun post(partySuperviseRequest: com.ringcentral.definitions.PartySuperviseRequest): com.ringcentral.definitions.PartySuperviseResponse? { + val rb: okhttp3.ResponseBody = rc.post(this.path(), partySuperviseRequest) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.PartySuperviseResponse::class.java) + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/transfer/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/transfer/Index.kt index dd071fbe..b597e42f 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/transfer/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/transfer/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties.transfer class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/transfer" - } - /** - * Operation: Transfer Call Party - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/transfer - */ - fun post(transferTarget: com.ringcentral.definitions.TransferTarget) : com.ringcentral.definitions.CallParty? - { + fun path(): String { + return "${parent.path()}/transfer" + } + + /** + * Operation: Transfer Call Party + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/transfer + */ + fun post(transferTarget: com.ringcentral.definitions.TransferTarget): com.ringcentral.definitions.CallParty? { val rb: okhttp3.ResponseBody = rc.post(this.path(), transferTarget) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallParty::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/unhold/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/unhold/Index.kt index 4813a191..955b12a3 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/unhold/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/parties/unhold/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.parties.unhold class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.parties.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/unhold" - } - /** - * Operation: Unhold Call Party - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/unhold - */ - fun post() : com.ringcentral.definitions.CallParty? - { + fun path(): String { + return "${parent.path()}/unhold" + } + + /** + * Operation: Unhold Call Party + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/parties/{partyId}/unhold + */ + fun post(): com.ringcentral.definitions.CallParty? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CallParty::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/supervise/Index.kt b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/supervise/Index.kt index 2fc858a5..56f10c6d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/supervise/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/account/telephony/sessions/supervise/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.account.telephony.sessions.supervise class Index(val parent: com.ringcentral.paths.restapi.account.telephony.sessions.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/supervise" - } - /** - * Operation: Supervise Call - * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/supervise - */ - fun post(superviseCallSessionRequest: com.ringcentral.definitions.SuperviseCallSessionRequest) : com.ringcentral.definitions.SuperviseCallSession? - { + fun path(): String { + return "${parent.path()}/supervise" + } + + /** + * Operation: Supervise Call Session + * Http Post /restapi/v1.0/account/{accountId}/telephony/sessions/{telephonySessionId}/supervise + */ + fun post(superviseCallSessionRequest: com.ringcentral.definitions.SuperviseCallSessionRequest): com.ringcentral.definitions.SuperviseCallSession? { val rb: okhttp3.ResponseBody = rc.post(this.path(), superviseCallSessionRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.SuperviseCallSession::class.java) - + } - + } 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 289c84c5..6cfd4903 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 @@ -1,47 +1,43 @@ package com.ringcentral.paths.restapi.account.templates class Index(val parent: com.ringcentral.paths.restapi.account.Index, val templateId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && templateId != null) - { - return "${parent.path()}/templates/${templateId}" - } - return "${parent.path()}/templates" + fun path(withParameter: Boolean = true): String { + if (withParameter && templateId != null) { + return "${parent.path()}/templates/${templateId}" } - /** - * Operation: Get User Template List - * Http Get /restapi/v1.0/account/{accountId}/templates - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListUserTemplatesParameters? = null) : com.ringcentral.definitions.UserTemplates? - { + return "${parent.path()}/templates" + } + + /** + * Operation: Get User Template List + * Http Get /restapi/v1.0/account/{accountId}/templates + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListUserTemplatesParameters? = null): com.ringcentral.definitions.UserTemplates? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserTemplates::class.java) - + } - - - /** - * Operation: Get User Template - * Http Get /restapi/v1.0/account/{accountId}/templates/{templateId} - */ - fun get() : com.ringcentral.definitions.TemplateInfo? - { - if (this.templateId == null) - { - throw NullPointerException("templateId"); - } + + + /** + * Operation: Get User Template + * Http Get /restapi/v1.0/account/{accountId}/templates/{templateId} + */ + fun get(): com.ringcentral.definitions.TemplateInfo? { + if (this.templateId == null) { + throw NullPointerException("templateId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.TemplateInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/clientinfo/Index.kt b/src/main/java/com/ringcentral/paths/restapi/clientinfo/Index.kt index fb67ee92..b0e0dafe 100644 --- a/src/main/java/com/ringcentral/paths/restapi/clientinfo/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/clientinfo/Index.kt @@ -1,18 +1,16 @@ package com.ringcentral.paths.restapi.clientinfo class Index(val parent: com.ringcentral.paths.restapi.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/client-info" - } + fun path(): String { + return "${parent.path()}/client-info" + } - fun sipprovision() : com.ringcentral.paths.restapi.clientinfo.sipprovision.Index - { + + fun sipprovision(): com.ringcentral.paths.restapi.clientinfo.sipprovision.Index { return com.ringcentral.paths.restapi.clientinfo.sipprovision.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/clientinfo/sipprovision/Index.kt b/src/main/java/com/ringcentral/paths/restapi/clientinfo/sipprovision/Index.kt index 4cd35d17..7a4a22b6 100644 --- a/src/main/java/com/ringcentral/paths/restapi/clientinfo/sipprovision/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/clientinfo/sipprovision/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.clientinfo.sipprovision class Index(val parent: com.ringcentral.paths.restapi.clientinfo.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/sip-provision" - } - /** - * Operation: Register SIP Device - * Http Post /restapi/v1.0/client-info/sip-provision - */ - fun post(createSipRegistrationRequest: com.ringcentral.definitions.CreateSipRegistrationRequest) : com.ringcentral.definitions.CreateSipRegistrationResponse? - { + fun path(): String { + return "${parent.path()}/sip-provision" + } + + /** + * Operation: Register SIP Device + * Http Post /restapi/v1.0/client-info/sip-provision + */ + fun post(createSipRegistrationRequest: com.ringcentral.definitions.CreateSipRegistrationRequest): com.ringcentral.definitions.CreateSipRegistrationResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), createSipRegistrationRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.CreateSipRegistrationResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/Index.kt b/src/main/java/com/ringcentral/paths/restapi/dictionary/Index.kt index 45154e3b..653b6dfb 100644 --- a/src/main/java/com/ringcentral/paths/restapi/dictionary/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/Index.kt @@ -1,60 +1,51 @@ package com.ringcentral.paths.restapi.dictionary class Index(val parent: com.ringcentral.paths.restapi.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/dictionary" - } + fun path(): String { + return "${parent.path()}/dictionary" + } - fun faxcoverpage() : com.ringcentral.paths.restapi.dictionary.faxcoverpage.Index - { + + fun faxcoverpage(): com.ringcentral.paths.restapi.dictionary.faxcoverpage.Index { return com.ringcentral.paths.restapi.dictionary.faxcoverpage.Index(this) - } - + } - @JvmOverloads fun greeting(greetingId: String? = null) : com.ringcentral.paths.restapi.dictionary.greeting.Index - { + @JvmOverloads + fun greeting(greetingId: String? = null): com.ringcentral.paths.restapi.dictionary.greeting.Index { return com.ringcentral.paths.restapi.dictionary.greeting.Index(this, greetingId) - } - + } - @JvmOverloads fun language(languageId: String? = null) : com.ringcentral.paths.restapi.dictionary.language.Index - { + @JvmOverloads + fun language(languageId: String? = null): com.ringcentral.paths.restapi.dictionary.language.Index { return com.ringcentral.paths.restapi.dictionary.language.Index(this, languageId) - } - + } - @JvmOverloads fun country(countryId: String? = null) : com.ringcentral.paths.restapi.dictionary.country.Index - { + @JvmOverloads + fun country(countryId: String? = null): com.ringcentral.paths.restapi.dictionary.country.Index { return com.ringcentral.paths.restapi.dictionary.country.Index(this, countryId) - } - + } - fun location() : com.ringcentral.paths.restapi.dictionary.location.Index - { + fun location(): com.ringcentral.paths.restapi.dictionary.location.Index { return com.ringcentral.paths.restapi.dictionary.location.Index(this) - } - + } - @JvmOverloads fun state(stateId: String? = null) : com.ringcentral.paths.restapi.dictionary.state.Index - { + @JvmOverloads + fun state(stateId: String? = null): com.ringcentral.paths.restapi.dictionary.state.Index { return com.ringcentral.paths.restapi.dictionary.state.Index(this, stateId) - } - + } - @JvmOverloads fun timezone(timezoneId: String? = null) : com.ringcentral.paths.restapi.dictionary.timezone.Index - { + @JvmOverloads + fun timezone(timezoneId: String? = null): com.ringcentral.paths.restapi.dictionary.timezone.Index { return com.ringcentral.paths.restapi.dictionary.timezone.Index(this, timezoneId) - } - -} \ No newline at end of file + } + +} 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 5134a428..8aeaa3a6 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 @@ -1,47 +1,43 @@ package com.ringcentral.paths.restapi.dictionary.country class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val countryId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && countryId != null) - { - return "${parent.path()}/country/${countryId}" - } - return "${parent.path()}/country" + fun path(withParameter: Boolean = true): String { + if (withParameter && countryId != null) { + return "${parent.path()}/country/${countryId}" } - /** - * Operation: Get Country List - * Http Get /restapi/v1.0/dictionary/country - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListCountriesParameters? = null) : com.ringcentral.definitions.GetCountryListResponse? - { + return "${parent.path()}/country" + } + + /** + * Operation: Get Country List + * Http Get /restapi/v1.0/dictionary/country + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListCountriesParameters? = null): com.ringcentral.definitions.GetCountryListResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetCountryListResponse::class.java) - + } - - - /** - * Operation: Get Country - * Http Get /restapi/v1.0/dictionary/country/{countryId} - */ - fun get() : com.ringcentral.definitions.GetCountryInfoDictionaryResponse? - { - if (this.countryId == null) - { - throw NullPointerException("countryId"); - } + + + /** + * Operation: Get Country + * Http Get /restapi/v1.0/dictionary/country/{countryId} + */ + fun get(): com.ringcentral.definitions.GetCountryInfoDictionaryResponse? { + if (this.countryId == null) { + throw NullPointerException("countryId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetCountryInfoDictionaryResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/faxcoverpage/Index.kt b/src/main/java/com/ringcentral/paths/restapi/dictionary/faxcoverpage/Index.kt index 29cf5aa4..82c21ed4 100644 --- a/src/main/java/com/ringcentral/paths/restapi/dictionary/faxcoverpage/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/faxcoverpage/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.dictionary.faxcoverpage class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/fax-cover-page" - } - /** - * Operation: Get Fax Cover Page List - * Http Get /restapi/v1.0/dictionary/fax-cover-page - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListFaxCoverPagesParameters? = null) : com.ringcentral.definitions.ListFaxCoverPagesResponse? - { + fun path(): String { + return "${parent.path()}/fax-cover-page" + } + + /** + * Operation: Get Fax Cover Page List + * Http Get /restapi/v1.0/dictionary/fax-cover-page + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListFaxCoverPagesParameters? = null): com.ringcentral.definitions.ListFaxCoverPagesResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ListFaxCoverPagesResponse::class.java) - + } - + } 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 d36ad9b5..3e2ed2c6 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 @@ -1,47 +1,43 @@ package com.ringcentral.paths.restapi.dictionary.greeting class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val greetingId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && greetingId != null) - { - return "${parent.path()}/greeting/${greetingId}" - } - return "${parent.path()}/greeting" + fun path(withParameter: Boolean = true): String { + if (withParameter && greetingId != null) { + return "${parent.path()}/greeting/${greetingId}" } - /** - * Operation: Get Standard Greeting List - * Http Get /restapi/v1.0/dictionary/greeting - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListStandardGreetingsParameters? = null) : com.ringcentral.definitions.DictionaryGreetingList? - { + return "${parent.path()}/greeting" + } + + /** + * Operation: Get Standard Greeting List + * Http Get /restapi/v1.0/dictionary/greeting + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListStandardGreetingsParameters? = null): com.ringcentral.definitions.DictionaryGreetingList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.DictionaryGreetingList::class.java) - + } - - - /** - * Operation: Get Standard Greeting - * Http Get /restapi/v1.0/dictionary/greeting/{greetingId} - */ - fun get() : com.ringcentral.definitions.DictionaryGreetingInfo? - { - if (this.greetingId == null) - { - throw NullPointerException("greetingId"); - } + + + /** + * Operation: Get Standard Greeting + * Http Get /restapi/v1.0/dictionary/greeting/{greetingId} + */ + fun get(): com.ringcentral.definitions.DictionaryGreetingInfo? { + if (this.greetingId == null) { + throw NullPointerException("greetingId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.DictionaryGreetingInfo::class.java) - + } - + } 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 ce980a08..11681460 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 @@ -1,47 +1,42 @@ package com.ringcentral.paths.restapi.dictionary.language class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val languageId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && languageId != null) - { - return "${parent.path()}/language/${languageId}" - } - return "${parent.path()}/language" + fun path(withParameter: Boolean = true): String { + if (withParameter && languageId != null) { + return "${parent.path()}/language/${languageId}" } - /** - * Operation: Get Language List - * Http Get /restapi/v1.0/dictionary/language - */ - fun list() : com.ringcentral.definitions.LanguageList? - { + return "${parent.path()}/language" + } + + /** + * Operation: Get Language List + * Http Get /restapi/v1.0/dictionary/language + */ + fun list(): com.ringcentral.definitions.LanguageList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.LanguageList::class.java) - + } - - - /** - * Operation: Get Language - * Http Get /restapi/v1.0/dictionary/language/{languageId} - */ - fun get() : com.ringcentral.definitions.LanguageInfo? - { - if (this.languageId == null) - { - throw NullPointerException("languageId"); - } + + + /** + * Operation: Get Language + * Http Get /restapi/v1.0/dictionary/language/{languageId} + */ + fun get(): com.ringcentral.definitions.LanguageInfo? { + if (this.languageId == null) { + throw NullPointerException("languageId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.LanguageInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/dictionary/location/Index.kt b/src/main/java/com/ringcentral/paths/restapi/dictionary/location/Index.kt index 5109edbb..6c2a842e 100644 --- a/src/main/java/com/ringcentral/paths/restapi/dictionary/location/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/dictionary/location/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.dictionary.location class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/location" - } - /** - * Operation: Get Location List - * Http Get /restapi/v1.0/dictionary/location - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListLocationsParameters? = null) : com.ringcentral.definitions.GetLocationListResponse? - { + fun path(): String { + return "${parent.path()}/location" + } + + /** + * Operation: Get Location List + * Http Get /restapi/v1.0/dictionary/location + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListLocationsParameters? = null): com.ringcentral.definitions.GetLocationListResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetLocationListResponse::class.java) - + } - + } 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 2dbcb44c..a7f46b85 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 @@ -1,47 +1,43 @@ package com.ringcentral.paths.restapi.dictionary.state class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val stateId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && stateId != null) - { - return "${parent.path()}/state/${stateId}" - } - return "${parent.path()}/state" + fun path(withParameter: Boolean = true): String { + if (withParameter && stateId != null) { + return "${parent.path()}/state/${stateId}" } - /** - * Operation: Get States List - * Http Get /restapi/v1.0/dictionary/state - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListStatesParameters? = null) : com.ringcentral.definitions.GetStateListResponse? - { + return "${parent.path()}/state" + } + + /** + * Operation: Get States List + * Http Get /restapi/v1.0/dictionary/state + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListStatesParameters? = null): com.ringcentral.definitions.GetStateListResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetStateListResponse::class.java) - + } - - - /** - * Operation: Get State - * Http Get /restapi/v1.0/dictionary/state/{stateId} - */ - fun get() : com.ringcentral.definitions.GetStateInfoResponse? - { - if (this.stateId == null) - { - throw NullPointerException("stateId"); - } + + + /** + * Operation: Get State + * Http Get /restapi/v1.0/dictionary/state/{stateId} + */ + fun get(): com.ringcentral.definitions.GetStateInfoResponse? { + if (this.stateId == null) { + throw NullPointerException("stateId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetStateInfoResponse::class.java) - + } - + } 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 d157d5f4..a20fdbd2 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 @@ -1,47 +1,44 @@ package com.ringcentral.paths.restapi.dictionary.timezone class Index(val parent: com.ringcentral.paths.restapi.dictionary.Index, val timezoneId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && timezoneId != null) - { - return "${parent.path()}/timezone/${timezoneId}" - } - return "${parent.path()}/timezone" + fun path(withParameter: Boolean = true): String { + if (withParameter && timezoneId != null) { + return "${parent.path()}/timezone/${timezoneId}" } - /** - * Operation: Get Timezone List - * Http Get /restapi/v1.0/dictionary/timezone - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListTimezonesParameters? = null) : com.ringcentral.definitions.GetTimezoneListResponse? - { + return "${parent.path()}/timezone" + } + + /** + * Operation: Get Timezone List + * Http Get /restapi/v1.0/dictionary/timezone + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListTimezonesParameters? = null): com.ringcentral.definitions.GetTimezoneListResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetTimezoneListResponse::class.java) - + } - - - /** - * Operation: Get Timezone - * Http Get /restapi/v1.0/dictionary/timezone/{timezoneId} - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ReadTimezoneParameters? = null) : com.ringcentral.definitions.GetTimezoneInfoResponse? - { - if (this.timezoneId == null) - { - throw NullPointerException("timezoneId"); - } + + + /** + * Operation: Get Timezone + * Http Get /restapi/v1.0/dictionary/timezone/{timezoneId} + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ReadTimezoneParameters? = null): com.ringcentral.definitions.GetTimezoneInfoResponse? { + if (this.timezoneId == null) { + throw NullPointerException("timezoneId") + } val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetTimezoneInfoResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/Index.kt index 5cac1c50..6a708803 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/Index.kt @@ -1,123 +1,108 @@ package com.ringcentral.paths.restapi.glip class Index(val parent: com.ringcentral.paths.restapi.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/glip" - } + fun path(): String { + return "${parent.path()}/glip" + } - @JvmOverloads fun chats(chatId: String? = null) : com.ringcentral.paths.restapi.glip.chats.Index - { + + @JvmOverloads + fun chats(chatId: String? = null): com.ringcentral.paths.restapi.glip.chats.Index { return com.ringcentral.paths.restapi.glip.chats.Index(this, chatId) - } - + } - @JvmOverloads fun conversations(chatId: String? = null) : com.ringcentral.paths.restapi.glip.conversations.Index - { + @JvmOverloads + fun conversations(chatId: String? = null): com.ringcentral.paths.restapi.glip.conversations.Index { return com.ringcentral.paths.restapi.glip.conversations.Index(this, chatId) - } - + } - @JvmOverloads fun teams(chatId: String? = null) : com.ringcentral.paths.restapi.glip.teams.Index - { + @JvmOverloads + fun teams(chatId: String? = null): com.ringcentral.paths.restapi.glip.teams.Index { return com.ringcentral.paths.restapi.glip.teams.Index(this, chatId) - } - + } - fun everyone() : com.ringcentral.paths.restapi.glip.everyone.Index - { + fun everyone(): com.ringcentral.paths.restapi.glip.everyone.Index { return com.ringcentral.paths.restapi.glip.everyone.Index(this) - } - + } - fun recent() : com.ringcentral.paths.restapi.glip.recent.Index - { + fun recent(): com.ringcentral.paths.restapi.glip.recent.Index { return com.ringcentral.paths.restapi.glip.recent.Index(this) - } - + } - fun favorites() : com.ringcentral.paths.restapi.glip.favorites.Index - { + fun favorites(): com.ringcentral.paths.restapi.glip.favorites.Index { return com.ringcentral.paths.restapi.glip.favorites.Index(this) - } - + } - @JvmOverloads fun groups(groupId: String? = null) : com.ringcentral.paths.restapi.glip.groups.Index - { + @JvmOverloads + fun groups(groupId: String? = null): com.ringcentral.paths.restapi.glip.groups.Index { return com.ringcentral.paths.restapi.glip.groups.Index(this, groupId) - } - + } - @JvmOverloads fun cards(cardId: String? = null) : com.ringcentral.paths.restapi.glip.cards.Index - { + @JvmOverloads + fun cards(cardId: String? = null): com.ringcentral.paths.restapi.glip.cards.Index { return com.ringcentral.paths.restapi.glip.cards.Index(this, cardId) - } - + } - @JvmOverloads fun events(eventId: String? = null) : com.ringcentral.paths.restapi.glip.events.Index - { + @JvmOverloads + fun events(eventId: String? = null): com.ringcentral.paths.restapi.glip.events.Index { return com.ringcentral.paths.restapi.glip.events.Index(this, eventId) - } - + } + + @JvmOverloads + fun notes(noteId: String? = null): com.ringcentral.paths.restapi.glip.notes.Index { + return com.ringcentral.paths.restapi.glip.notes.Index(this, noteId) + } - @JvmOverloads fun tasks(taskId: String? = null) : com.ringcentral.paths.restapi.glip.tasks.Index - { + + @JvmOverloads + fun tasks(taskId: String? = null): com.ringcentral.paths.restapi.glip.tasks.Index { return com.ringcentral.paths.restapi.glip.tasks.Index(this, taskId) - } - + } - @JvmOverloads fun persons(personId: String? = null) : com.ringcentral.paths.restapi.glip.persons.Index - { + @JvmOverloads + fun persons(personId: String? = null): com.ringcentral.paths.restapi.glip.persons.Index { return com.ringcentral.paths.restapi.glip.persons.Index(this, personId) - } - + } - @JvmOverloads fun companies(companyId: String? = null) : com.ringcentral.paths.restapi.glip.companies.Index - { + @JvmOverloads + fun companies(companyId: String? = null): com.ringcentral.paths.restapi.glip.companies.Index { return com.ringcentral.paths.restapi.glip.companies.Index(this, companyId) - } - + } - @JvmOverloads fun webhooks(webhookId: String? = null) : com.ringcentral.paths.restapi.glip.webhooks.Index - { + @JvmOverloads + fun webhooks(webhookId: String? = null): com.ringcentral.paths.restapi.glip.webhooks.Index { return com.ringcentral.paths.restapi.glip.webhooks.Index(this, webhookId) - } - + } - fun preferences() : com.ringcentral.paths.restapi.glip.preferences.Index - { + fun preferences(): com.ringcentral.paths.restapi.glip.preferences.Index { return com.ringcentral.paths.restapi.glip.preferences.Index(this) - } - + } - fun posts() : com.ringcentral.paths.restapi.glip.posts.Index - { + fun posts(): com.ringcentral.paths.restapi.glip.posts.Index { return com.ringcentral.paths.restapi.glip.posts.Index(this) - } - + } - @JvmOverloads fun dataexport(taskId: String? = null) : com.ringcentral.paths.restapi.glip.dataexport.Index - { + @JvmOverloads + fun dataexport(taskId: String? = null): com.ringcentral.paths.restapi.glip.dataexport.Index { return com.ringcentral.paths.restapi.glip.dataexport.Index(this, taskId) - } - -} \ No newline at end of file + } + +} 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 87f62420..8b7b7182 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 @@ -1,83 +1,75 @@ package com.ringcentral.paths.restapi.glip.cards class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val cardId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && cardId != null) - { - return "${parent.path()}/cards/${cardId}" - } - return "${parent.path()}/cards" + fun path(withParameter: Boolean = true): String { + if (withParameter && cardId != null) { + return "${parent.path()}/cards/${cardId}" } - /** - * Operation: Create Card - * Http Post /restapi/v1.0/glip/cards - */ - @JvmOverloads fun post(glipMessageAttachmentInfoRequest: com.ringcentral.definitions.GlipMessageAttachmentInfoRequest, queryParams: com.ringcentral.definitions.CreateGlipCardParameters? = null) : com.ringcentral.definitions.GlipMessageAttachmentInfo? - { + return "${parent.path()}/cards" + } + + /** + * Operation: Create Card + * Http Post /restapi/v1.0/glip/cards + */ + @JvmOverloads + fun post(glipMessageAttachmentInfoRequest: com.ringcentral.definitions.GlipMessageAttachmentInfoRequest, queryParams: com.ringcentral.definitions.CreateGlipCardParameters? = null): com.ringcentral.definitions.GlipMessageAttachmentInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), glipMessageAttachmentInfoRequest, queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipMessageAttachmentInfo::class.java) - + } - - - /** - * Operation: Get Card - * Http Get /restapi/v1.0/glip/cards/{cardId} - */ - fun get() : com.ringcentral.definitions.GlipMessageAttachmentInfo? - { - if (this.cardId == null) - { - throw NullPointerException("cardId"); - } + + + /** + * Operation: Get Card + * Http Get /restapi/v1.0/glip/cards/{cardId} + */ + fun get(): com.ringcentral.definitions.GlipMessageAttachmentInfo? { + if (this.cardId == null) { + throw NullPointerException("cardId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipMessageAttachmentInfo::class.java) - + } - - - /** - * Operation: Update Card - * Http Put /restapi/v1.0/glip/cards/{cardId} - */ - fun put(glipMessageAttachmentInfoRequest: com.ringcentral.definitions.GlipMessageAttachmentInfoRequest) : String? - { - if (this.cardId == null) - { - throw NullPointerException("cardId"); - } + + + /** + * Operation: Update Card + * Http Put /restapi/v1.0/glip/cards/{cardId} + */ + fun put(glipMessageAttachmentInfoRequest: com.ringcentral.definitions.GlipMessageAttachmentInfoRequest): String? { + if (this.cardId == null) { + throw NullPointerException("cardId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), glipMessageAttachmentInfoRequest) - + return rb.string() - + } - - - /** - * Operation: Delete Card - * Http Delete /restapi/v1.0/glip/cards/{cardId} - */ - fun delete() : String? - { - if (this.cardId == null) - { - throw NullPointerException("cardId"); - } + + + /** + * Operation: Delete Card + * Http Delete /restapi/v1.0/glip/cards/{cardId} + */ + fun delete(): String? { + if (this.cardId == null) { + throw NullPointerException("cardId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } 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 19135fdf..5701c1e0 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 @@ -1,89 +1,79 @@ package com.ringcentral.paths.restapi.glip.chats class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val chatId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && chatId != null) - { - return "${parent.path()}/chats/${chatId}" - } - return "${parent.path()}/chats" + fun path(withParameter: Boolean = true): String { + if (withParameter && chatId != null) { + return "${parent.path()}/chats/${chatId}" } - /** - * Operation: Get Chats - * Http Get /restapi/v1.0/glip/chats - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListGlipChatsParameters? = null) : com.ringcentral.definitions.GlipChatsList? - { + return "${parent.path()}/chats" + } + + /** + * Operation: Get Chats + * Http Get /restapi/v1.0/glip/chats + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListGlipChatsParameters? = null): com.ringcentral.definitions.GlipChatsList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipChatsList::class.java) - + } - - - /** - * Operation: Get Chat - * Http Get /restapi/v1.0/glip/chats/{chatId} - */ - fun get() : com.ringcentral.definitions.GlipChatInfo? - { - if (this.chatId == null) - { - throw NullPointerException("chatId"); - } + + + /** + * Operation: Get Chat + * Http Get /restapi/v1.0/glip/chats/{chatId} + */ + fun get(): com.ringcentral.definitions.GlipChatInfo? { + if (this.chatId == null) { + throw NullPointerException("chatId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipChatInfo::class.java) - + } - - fun favorite() : com.ringcentral.paths.restapi.glip.chats.favorite.Index - { + fun favorite(): com.ringcentral.paths.restapi.glip.chats.favorite.Index { return com.ringcentral.paths.restapi.glip.chats.favorite.Index(this) - } - + } - fun unfavorite() : com.ringcentral.paths.restapi.glip.chats.unfavorite.Index - { + fun unfavorite(): com.ringcentral.paths.restapi.glip.chats.unfavorite.Index { return com.ringcentral.paths.restapi.glip.chats.unfavorite.Index(this) - } - + } - fun read() : com.ringcentral.paths.restapi.glip.chats.read.Index - { + fun read(): com.ringcentral.paths.restapi.glip.chats.read.Index { return com.ringcentral.paths.restapi.glip.chats.read.Index(this) - } - + } - fun unread() : com.ringcentral.paths.restapi.glip.chats.unread.Index - { + fun unread(): com.ringcentral.paths.restapi.glip.chats.unread.Index { return com.ringcentral.paths.restapi.glip.chats.unread.Index(this) - } - + } - @JvmOverloads fun posts(postId: String? = null) : com.ringcentral.paths.restapi.glip.chats.posts.Index - { + @JvmOverloads + fun posts(postId: String? = null): com.ringcentral.paths.restapi.glip.chats.posts.Index { return com.ringcentral.paths.restapi.glip.chats.posts.Index(this, postId) - } - + } - fun tasks() : com.ringcentral.paths.restapi.glip.chats.tasks.Index - { + fun notes(): com.ringcentral.paths.restapi.glip.chats.notes.Index { + return com.ringcentral.paths.restapi.glip.chats.notes.Index(this) + } + + + fun tasks(): com.ringcentral.paths.restapi.glip.chats.tasks.Index { return com.ringcentral.paths.restapi.glip.chats.tasks.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/chats/favorite/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/chats/favorite/Index.kt index be224f66..577839fa 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/chats/favorite/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/chats/favorite/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.chats.favorite class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/favorite" - } - /** - * Operation: Add Chat to Favorites - * Http Post /restapi/v1.0/glip/chats/{chatId}/favorite - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/favorite" + } + + /** + * Operation: Add Chat to Favorites + * Http Post /restapi/v1.0/glip/chats/{chatId}/favorite + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/chats/notes/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/chats/notes/Index.kt new file mode 100644 index 00000000..ba0bdb7b --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/glip/chats/notes/Index.kt @@ -0,0 +1,35 @@ +package com.ringcentral.paths.restapi.glip.chats.notes + +class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/notes" + } + + /** + * Operation: Create Note + * Http Post /restapi/v1.0/glip/chats/{chatId}/notes + */ + fun post(glipNoteCreate: com.ringcentral.definitions.GlipNoteCreate): com.ringcentral.definitions.GlipNoteInfo? { + val rb: okhttp3.ResponseBody = rc.post(this.path(), glipNoteCreate) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipNoteInfo::class.java) + + } + + + /** + * Operation: Get Chat Notes + * Http Get /restapi/v1.0/glip/chats/{chatId}/notes + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListChatNotesParameters? = null): com.ringcentral.definitions.GlipNotesInfo? { + val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipNotesInfo::class.java) + + } + +} 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 c0ef133e..27bbac17 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 @@ -1,96 +1,87 @@ package com.ringcentral.paths.restapi.glip.chats.posts class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index, val postId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && postId != null) - { - return "${parent.path()}/posts/${postId}" - } - return "${parent.path()}/posts" + fun path(withParameter: Boolean = true): String { + if (withParameter && postId != null) { + return "${parent.path()}/posts/${postId}" } - /** - * Operation: Get Posts - * Http Get /restapi/v1.0/glip/chats/{chatId}/posts - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ReadGlipPostsParameters? = null) : com.ringcentral.definitions.GlipPostsList? - { + return "${parent.path()}/posts" + } + + /** + * Operation: Get Posts + * Http Get /restapi/v1.0/glip/chats/{chatId}/posts + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ReadGlipPostsParameters? = null): com.ringcentral.definitions.GlipPostsList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPostsList::class.java) - + } - - - /** - * Operation: Create Post - * Http Post /restapi/v1.0/glip/chats/{chatId}/posts - */ - fun post(glipPostPostBody: com.ringcentral.definitions.GlipPostPostBody) : com.ringcentral.definitions.GlipPostInfo? - { + + + /** + * Operation: Create Post + * Http Post /restapi/v1.0/glip/chats/{chatId}/posts + */ + fun post(glipPostPostBody: com.ringcentral.definitions.GlipPostPostBody): com.ringcentral.definitions.GlipPostInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), glipPostPostBody) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPostInfo::class.java) - + } - - - /** - * Operation: Get Post - * Http Get /restapi/v1.0/glip/chats/{chatId}/posts/{postId} - */ - fun get() : com.ringcentral.definitions.GlipPostInfo? - { - if (this.postId == null) - { - throw NullPointerException("postId"); - } + + + /** + * Operation: Get Post + * Http Get /restapi/v1.0/glip/chats/{chatId}/posts/{postId} + */ + fun get(): com.ringcentral.definitions.GlipPostInfo? { + if (this.postId == null) { + throw NullPointerException("postId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPostInfo::class.java) - + } - - - /** - * Operation: Update Post - * Http Patch /restapi/v1.0/glip/chats/{chatId}/posts/{postId} - */ - fun patch(glipPatchPostBody: com.ringcentral.definitions.GlipPatchPostBody) : com.ringcentral.definitions.GlipPostInfo? - { - if (this.postId == null) - { - throw NullPointerException("postId"); - } + + + /** + * Operation: Update Post + * Http Patch /restapi/v1.0/glip/chats/{chatId}/posts/{postId} + */ + fun patch(glipPatchPostBody: com.ringcentral.definitions.GlipPatchPostBody): com.ringcentral.definitions.GlipPostInfo? { + if (this.postId == null) { + throw NullPointerException("postId") + } val rb: okhttp3.ResponseBody = rc.patch(this.path(), glipPatchPostBody) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPostInfo::class.java) - + } - - - /** - * Operation: Delete Post - * Http Delete /restapi/v1.0/glip/chats/{chatId}/posts/{postId} - */ - fun delete() : String? - { - if (this.postId == null) - { - throw NullPointerException("postId"); - } + + + /** + * Operation: Delete Post + * Http Delete /restapi/v1.0/glip/chats/{chatId}/posts/{postId} + */ + fun delete(): String? { + if (this.postId == null) { + throw NullPointerException("postId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/chats/read/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/chats/read/Index.kt index 5d2b85bf..80e5fdb0 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/chats/read/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/chats/read/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.chats.read class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/read" - } - /** - * Operation: Mark Chat as Read - * Http Post /restapi/v1.0/glip/chats/{chatId}/read - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/read" + } + + /** + * Operation: Mark Chat as Read + * Http Post /restapi/v1.0/glip/chats/{chatId}/read + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/chats/tasks/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/chats/tasks/Index.kt index 7d21ff43..0fdadf20 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/chats/tasks/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/chats/tasks/Index.kt @@ -1,37 +1,35 @@ package com.ringcentral.paths.restapi.glip.chats.tasks class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/tasks" - } - - /** - * Operation: Get Chat Tasks - * Http Get /restapi/v1.0/glip/chats/{chatId}/tasks - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListChatTasksParameters? = null) : com.ringcentral.definitions.GlipTaskList? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/tasks" + } + + /** + * Operation: Get Chat Tasks + * Http Get /restapi/v1.0/glip/chats/{chatId}/tasks + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListChatTasksParameters? = null): com.ringcentral.definitions.GlipTaskList? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipTaskList::class.java) - + } - - - /** - * Operation: Create Task - * Http Post /restapi/v1.0/glip/chats/{chatId}/tasks - */ - fun post(glipCreateTask: com.ringcentral.definitions.GlipCreateTask) : com.ringcentral.definitions.GlipTaskInfo? - { + + + /** + * Operation: Create Task + * Http Post /restapi/v1.0/glip/chats/{chatId}/tasks + */ + fun post(glipCreateTask: com.ringcentral.definitions.GlipCreateTask): com.ringcentral.definitions.GlipTaskInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(), glipCreateTask) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipTaskInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/chats/unfavorite/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/chats/unfavorite/Index.kt index 481fc637..4d3a481d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/chats/unfavorite/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/chats/unfavorite/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.chats.unfavorite class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/unfavorite" - } - /** - * Operation: Remove Chat from Favorites - * Http Post /restapi/v1.0/glip/chats/{chatId}/unfavorite - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/unfavorite" + } + + /** + * Operation: Remove Chat from Favorites + * Http Post /restapi/v1.0/glip/chats/{chatId}/unfavorite + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/chats/unread/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/chats/unread/Index.kt index 947e94db..4b076037 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/chats/unread/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/chats/unread/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.chats.unread class Index(val parent: com.ringcentral.paths.restapi.glip.chats.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/unread" - } - /** - * Operation: Mark Chat as Unread - * Http Post /restapi/v1.0/glip/chats/{chatId}/unread - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/unread" + } + + /** + * Operation: Mark Chat as Unread + * Http Post /restapi/v1.0/glip/chats/{chatId}/unread + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } 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 b19e0d0e..ec8fc2ce 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 @@ -1,34 +1,30 @@ package com.ringcentral.paths.restapi.glip.companies class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val companyId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && companyId != null) - { - return "${parent.path()}/companies/${companyId}" - } - return "${parent.path()}/companies" + fun path(withParameter: Boolean = true): String { + if (withParameter && companyId != null) { + return "${parent.path()}/companies/${companyId}" } - /** - * Operation: Get Company Info - * Http Get /restapi/v1.0/glip/companies/{companyId} - */ - fun get() : com.ringcentral.definitions.GlipCompany? - { - if (this.companyId == null) - { - throw NullPointerException("companyId"); - } + return "${parent.path()}/companies" + } + + /** + * Operation: Get Company Info + * Http Get /restapi/v1.0/glip/companies/{companyId} + */ + fun get(): com.ringcentral.definitions.GlipCompany? { + if (this.companyId == null) { + throw NullPointerException("companyId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipCompany::class.java) - + } - + } 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 3c5a6409..35ff1069 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 @@ -1,60 +1,55 @@ package com.ringcentral.paths.restapi.glip.conversations class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val chatId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && chatId != null) - { - return "${parent.path()}/conversations/${chatId}" - } - return "${parent.path()}/conversations" + fun path(withParameter: Boolean = true): String { + if (withParameter && chatId != null) { + return "${parent.path()}/conversations/${chatId}" } - /** - * Operation: Get Conversations - * Http Get /restapi/v1.0/glip/conversations - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListGlipConversationsParameters? = null) : com.ringcentral.definitions.GlipConversationsList? - { + return "${parent.path()}/conversations" + } + + /** + * Operation: Get Conversations + * Http Get /restapi/v1.0/glip/conversations + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListGlipConversationsParameters? = null): com.ringcentral.definitions.GlipConversationsList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipConversationsList::class.java) - + } - - - /** - * Operation: Create/Open Conversation - * Http Post /restapi/v1.0/glip/conversations - */ - fun post(createGlipConversationRequest: com.ringcentral.definitions.CreateGlipConversationRequest) : com.ringcentral.definitions.GlipConversationInfo? - { + + + /** + * Operation: Create/Open Conversation + * Http Post /restapi/v1.0/glip/conversations + */ + fun post(createGlipConversationRequest: com.ringcentral.definitions.CreateGlipConversationRequest): com.ringcentral.definitions.GlipConversationInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createGlipConversationRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipConversationInfo::class.java) - + } - - - /** - * Operation: Get Conversation - * Http Get /restapi/v1.0/glip/conversations/{chatId} - */ - fun get() : com.ringcentral.definitions.GlipConversationInfo? - { - if (this.chatId == null) - { - throw NullPointerException("chatId"); - } + + + /** + * Operation: Get Conversation + * Http Get /restapi/v1.0/glip/conversations/{chatId} + */ + fun get(): com.ringcentral.definitions.GlipConversationInfo? { + if (this.chatId == null) { + throw NullPointerException("chatId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipConversationInfo::class.java) - + } - + } 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 df020575..9330d14c 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 @@ -1,47 +1,42 @@ package com.ringcentral.paths.restapi.glip.dataexport class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val taskId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && taskId != null) - { - return "${parent.path()}/data-export/${taskId}" - } - return "${parent.path()}/data-export" + fun path(withParameter: Boolean = true): String { + if (withParameter && taskId != null) { + return "${parent.path()}/data-export/${taskId}" } - /** - * Operation: Create Data Export Task - * Http Post /restapi/v1.0/glip/data-export - */ - fun post(createDataExportTaskRequest: com.ringcentral.definitions.CreateDataExportTaskRequest) : com.ringcentral.definitions.DataExportTask? - { + return "${parent.path()}/data-export" + } + + /** + * Operation: Create Data Export Task + * Http Post /restapi/v1.0/glip/data-export + */ + fun post(createDataExportTaskRequest: com.ringcentral.definitions.CreateDataExportTaskRequest): com.ringcentral.definitions.DataExportTask? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createDataExportTaskRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.DataExportTask::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"); - } + + + /** + * 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") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.DataExportTask::class.java) - + } - + } 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 4ac160cd..d4158afc 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 @@ -1,96 +1,87 @@ package com.ringcentral.paths.restapi.glip.events class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val eventId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && eventId != null) - { - return "${parent.path()}/events/${eventId}" - } - return "${parent.path()}/events" + fun path(withParameter: Boolean = true): String { + if (withParameter && eventId != null) { + return "${parent.path()}/events/${eventId}" } - /** - * Operation: Get User Events List - * Http Get /restapi/v1.0/glip/events - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ReadGlipEventsParameters? = null) : com.ringcentral.definitions.GlipEventsInfo? - { + return "${parent.path()}/events" + } + + /** + * Operation: Get User Events List + * Http Get /restapi/v1.0/glip/events + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ReadGlipEventsParameters? = null): com.ringcentral.definitions.GlipEventsInfo? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipEventsInfo::class.java) - + } - - - /** - * Operation: Create Event - * Http Post /restapi/v1.0/glip/events - */ - fun post(glipEventCreate: com.ringcentral.definitions.GlipEventCreate) : com.ringcentral.definitions.GlipEventInfo? - { + + + /** + * Operation: Create Event + * Http Post /restapi/v1.0/glip/events + */ + fun post(glipEventCreate: com.ringcentral.definitions.GlipEventCreate): com.ringcentral.definitions.GlipEventInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), glipEventCreate) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipEventInfo::class.java) - + } - - - /** - * Operation: Get Event - * Http Get /restapi/v1.0/glip/events/{eventId} - */ - fun get() : com.ringcentral.definitions.GlipEventInfo? - { - if (this.eventId == null) - { - throw NullPointerException("eventId"); - } + + + /** + * Operation: Get Event + * Http Get /restapi/v1.0/glip/events/{eventId} + */ + fun get(): com.ringcentral.definitions.GlipEventInfo? { + if (this.eventId == null) { + throw NullPointerException("eventId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipEventInfo::class.java) - + } - - - /** - * Operation: Update Event - * Http Put /restapi/v1.0/glip/events/{eventId} - */ - fun put(glipEventCreate: com.ringcentral.definitions.GlipEventCreate) : com.ringcentral.definitions.GlipEventInfo? - { - if (this.eventId == null) - { - throw NullPointerException("eventId"); - } + + + /** + * Operation: Update Event + * Http Put /restapi/v1.0/glip/events/{eventId} + */ + fun put(glipEventCreate: com.ringcentral.definitions.GlipEventCreate): com.ringcentral.definitions.GlipEventInfo? { + if (this.eventId == null) { + throw NullPointerException("eventId") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), glipEventCreate) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipEventInfo::class.java) - + } - - - /** - * Operation: Delete Event - * Http Delete /restapi/v1.0/glip/events/{eventId} - */ - fun delete() : String? - { - if (this.eventId == null) - { - throw NullPointerException("eventId"); - } + + + /** + * Operation: Delete Event + * Http Delete /restapi/v1.0/glip/events/{eventId} + */ + fun delete(): String? { + if (this.eventId == null) { + throw NullPointerException("eventId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/everyone/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/everyone/Index.kt index 815f412e..2a84994f 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/everyone/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/everyone/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.glip.everyone class Index(val parent: com.ringcentral.paths.restapi.glip.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/everyone" - } - - /** - * Operation: Get Everyone Chat - * Http Get /restapi/v1.0/glip/everyone - */ - fun get() : com.ringcentral.definitions.GlipEveryoneInfo? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/everyone" + } + + /** + * Operation: Get Everyone Chat + * Http Get /restapi/v1.0/glip/everyone + */ + fun get(): com.ringcentral.definitions.GlipEveryoneInfo? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipEveryoneInfo::class.java) - + } - - - /** - * Operation: Update Everyone Сhat - * Http Patch /restapi/v1.0/glip/everyone - */ - fun patch(updateGlipEveryoneRequest: com.ringcentral.definitions.UpdateGlipEveryoneRequest) : com.ringcentral.definitions.GlipEveryoneInfo? - { + + + /** + * Operation: Update Everyone Сhat + * Http Patch /restapi/v1.0/glip/everyone + */ + fun patch(updateGlipEveryoneRequest: com.ringcentral.definitions.UpdateGlipEveryoneRequest): com.ringcentral.definitions.GlipEveryoneInfo? { val rb: okhttp3.ResponseBody = rc.patch(this.path(), updateGlipEveryoneRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipEveryoneInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/favorites/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/favorites/Index.kt index 38ab7d72..7810f02e 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/favorites/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/favorites/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.glip.favorites class Index(val parent: com.ringcentral.paths.restapi.glip.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/favorites" - } - /** - * Operation: Get Favorite Chats - * Http Get /restapi/v1.0/glip/favorites - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListFavoriteChatsParameters? = null) : com.ringcentral.definitions.GlipChatsListWithoutNavigation? - { + fun path(): String { + return "${parent.path()}/favorites" + } + + /** + * Operation: Get Favorite Chats + * Http Get /restapi/v1.0/glip/favorites + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListFavoriteChatsParameters? = null): com.ringcentral.definitions.GlipChatsListWithoutNavigation? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipChatsListWithoutNavigation::class.java) - + } - + } 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 aa14b6c1..26b1cc1d 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 @@ -1,88 +1,76 @@ package com.ringcentral.paths.restapi.glip.groups class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val groupId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && groupId != null) - { - return "${parent.path()}/groups/${groupId}" - } - return "${parent.path()}/groups" + fun path(withParameter: Boolean = true): String { + if (withParameter && groupId != null) { + return "${parent.path()}/groups/${groupId}" } - /** - * Operation: Get User Groups - * Http Get /restapi/v1.0/glip/groups - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListGlipGroupsParameters? = null) : com.ringcentral.definitions.GlipGroupList? - { + return "${parent.path()}/groups" + } + + /** + * Operation: Get User Groups + * Http Get /restapi/v1.0/glip/groups + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListGlipGroupsParameters? = null): com.ringcentral.definitions.GlipGroupList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipGroupList::class.java) - + } - - - /** - * Operation: Create Group - * Http Post /restapi/v1.0/glip/groups - */ - fun post(glipCreateGroup: com.ringcentral.definitions.GlipCreateGroup) : com.ringcentral.definitions.GlipGroupInfo? - { + + + /** + * Operation: Create Group + * Http Post /restapi/v1.0/glip/groups + */ + fun post(glipCreateGroup: com.ringcentral.definitions.GlipCreateGroup): com.ringcentral.definitions.GlipGroupInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), glipCreateGroup) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipGroupInfo::class.java) - + } - - - /** - * Operation: Get Group - * Http Get /restapi/v1.0/glip/groups/{groupId} - */ - fun get() : com.ringcentral.definitions.GlipGroupInfo? - { - if (this.groupId == null) - { - throw NullPointerException("groupId"); - } + + + /** + * Operation: Get Group + * Http Get /restapi/v1.0/glip/groups/{groupId} + */ + fun get(): com.ringcentral.definitions.GlipGroupInfo? { + if (this.groupId == null) { + throw NullPointerException("groupId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipGroupInfo::class.java) - + } - - @JvmOverloads fun posts(postId: String? = null) : com.ringcentral.paths.restapi.glip.groups.posts.Index - { + @JvmOverloads + fun posts(postId: String? = null): com.ringcentral.paths.restapi.glip.groups.posts.Index { return com.ringcentral.paths.restapi.glip.groups.posts.Index(this, postId) - } - + } - fun events() : com.ringcentral.paths.restapi.glip.groups.events.Index - { + fun events(): com.ringcentral.paths.restapi.glip.groups.events.Index { return com.ringcentral.paths.restapi.glip.groups.events.Index(this) - } - + } - fun webhooks() : com.ringcentral.paths.restapi.glip.groups.webhooks.Index - { + fun webhooks(): com.ringcentral.paths.restapi.glip.groups.webhooks.Index { return com.ringcentral.paths.restapi.glip.groups.webhooks.Index(this) - } - + } - fun bulkassign() : com.ringcentral.paths.restapi.glip.groups.bulkassign.Index - { + fun bulkassign(): com.ringcentral.paths.restapi.glip.groups.bulkassign.Index { return com.ringcentral.paths.restapi.glip.groups.bulkassign.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/groups/bulkassign/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/groups/bulkassign/Index.kt index 38e690a8..6d29ba64 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/groups/bulkassign/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/groups/bulkassign/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.groups.bulkassign class Index(val parent: com.ringcentral.paths.restapi.glip.groups.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/bulk-assign" - } - /** - * Operation: Edit Group Members - * Http Post /restapi/v1.0/glip/groups/{groupId}/bulk-assign - */ - fun post(editGroupRequest: com.ringcentral.definitions.EditGroupRequest) : com.ringcentral.definitions.GlipGroupInfo? - { + fun path(): String { + return "${parent.path()}/bulk-assign" + } + + /** + * Operation: Edit Group Members + * Http Post /restapi/v1.0/glip/groups/{groupId}/bulk-assign + */ + fun post(editGroupRequest: com.ringcentral.definitions.EditGroupRequest): com.ringcentral.definitions.GlipGroupInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(), editGroupRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipGroupInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/groups/events/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/groups/events/Index.kt index 345eddf6..9b4971b1 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/groups/events/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/groups/events/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.glip.groups.events class Index(val parent: com.ringcentral.paths.restapi.glip.groups.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/events" - } - - /** - * Operation: Create Event by Group ID - * Http Post /restapi/v1.0/glip/groups/{groupId}/events - */ - fun post(glipEventCreate: com.ringcentral.definitions.GlipEventCreate) : com.ringcentral.definitions.GlipEventInfo? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/events" + } + + /** + * Operation: Create Event by Group ID + * Http Post /restapi/v1.0/glip/groups/{groupId}/events + */ + fun post(glipEventCreate: com.ringcentral.definitions.GlipEventCreate): com.ringcentral.definitions.GlipEventInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(), glipEventCreate) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipEventInfo::class.java) - + } - - - /** - * Operation: Get Group Events - * Http Get /restapi/v1.0/glip/groups/{groupId}/events - */ - fun get() : com.ringcentral.definitions.GlipEventInfo? - { + + + /** + * Operation: Get Group Events + * Http Get /restapi/v1.0/glip/groups/{groupId}/events + */ + fun get(): com.ringcentral.definitions.GlipEventInfo? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipEventInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/groups/posts/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/groups/posts/Index.kt index ca445e7e..a4ffc57f 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/groups/posts/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/groups/posts/Index.kt @@ -1,49 +1,44 @@ package com.ringcentral.paths.restapi.glip.groups.posts class Index(val parent: com.ringcentral.paths.restapi.glip.groups.Index, val postId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && postId != null) - { - return "${parent.path()}/posts/${postId}" - } - return "${parent.path()}/posts" + fun path(withParameter: Boolean = true): String { + if (withParameter && postId != null) { + return "${parent.path()}/posts/${postId}" } - /** - * Operation: Get Group Posts - * Http Get /restapi/v1.0/glip/groups/{groupId}/posts - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListGlipGroupPostsParameters? = null) : com.ringcentral.definitions.GlipPosts? - { + return "${parent.path()}/posts" + } + + /** + * Operation: Get Group Posts + * Http Get /restapi/v1.0/glip/groups/{groupId}/posts + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListGlipGroupPostsParameters? = null): com.ringcentral.definitions.GlipPosts? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPosts::class.java) - + } - - - /** - * Operation: Create Post in Group - * Http Post /restapi/v1.0/glip/groups/{groupId}/posts - */ - fun post(glipCreatePost: com.ringcentral.definitions.GlipCreatePost) : com.ringcentral.definitions.GlipPostInfo? - { + + + /** + * Operation: Create Post in Group + * Http Post /restapi/v1.0/glip/groups/{groupId}/posts + */ + fun post(glipCreatePost: com.ringcentral.definitions.GlipCreatePost): com.ringcentral.definitions.GlipPostInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), glipCreatePost) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPostInfo::class.java) - + } - - fun text() : com.ringcentral.paths.restapi.glip.groups.posts.text.Index - { + fun text(): com.ringcentral.paths.restapi.glip.groups.posts.text.Index { return com.ringcentral.paths.restapi.glip.groups.posts.text.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/groups/posts/text/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/groups/posts/text/Index.kt index 2a89c8de..c3b005ba 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/groups/posts/text/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/groups/posts/text/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.groups.posts.text class Index(val parent: com.ringcentral.paths.restapi.glip.groups.posts.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/text" - } - /** - * Operation: Update Post - * Http Put /restapi/v1.0/glip/groups/{groupId}/posts/{postId}/text - */ - fun put(body: String) : String? - { + fun path(): String { + return "${parent.path()}/text" + } + + /** + * Operation: Update Post + * Http Put /restapi/v1.0/glip/groups/{groupId}/posts/{postId}/text + */ + fun put(body: String): String? { val rb: okhttp3.ResponseBody = rc.put(this.path(), body) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/groups/webhooks/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/groups/webhooks/Index.kt index f239511c..abf3f3b4 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/groups/webhooks/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/groups/webhooks/Index.kt @@ -1,37 +1,34 @@ package com.ringcentral.paths.restapi.glip.groups.webhooks class Index(val parent: com.ringcentral.paths.restapi.glip.groups.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/webhooks" - } - - /** - * Operation: Create Webhook in Group - * Http Post /restapi/v1.0/glip/groups/{groupId}/webhooks - */ - fun post() : com.ringcentral.definitions.GlipWebhookInfo? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/webhooks" + } + + /** + * Operation: Create Webhook in Group + * Http Post /restapi/v1.0/glip/groups/{groupId}/webhooks + */ + fun post(): com.ringcentral.definitions.GlipWebhookInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipWebhookInfo::class.java) - + } - - - /** - * Operation: Get Webhooks in Group - * Http Get /restapi/v1.0/glip/groups/{groupId}/webhooks - */ - fun get() : com.ringcentral.definitions.GlipWebhookList? - { + + + /** + * Operation: Get Webhooks in Group + * Http Get /restapi/v1.0/glip/groups/{groupId}/webhooks + */ + fun get(): com.ringcentral.definitions.GlipWebhookList? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipWebhookList::class.java) - + } - + } 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 new file mode 100644 index 00000000..d2c3f122 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/glip/notes/Index.kt @@ -0,0 +1,77 @@ +package com.ringcentral.paths.restapi.glip.notes + +class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val noteId: String? = null) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(withParameter: Boolean = true): String { + if (withParameter && noteId != null) { + return "${parent.path()}/notes/${noteId}" + } + + return "${parent.path()}/notes" + } + + /** + * Operation: Get Note + * Http Get /restapi/v1.0/glip/notes/{noteId} + */ + fun get(): com.ringcentral.definitions.GetGlipNoteInfo? { + if (this.noteId == null) { + throw NullPointerException("noteId") + } + + val rb: okhttp3.ResponseBody = rc.get(this.path()) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GetGlipNoteInfo::class.java) + + } + + + /** + * Operation: Update Note + * Http Patch /restapi/v1.0/glip/notes/{noteId} + */ + fun patch(glipNoteCreate: com.ringcentral.definitions.GlipNoteCreate): com.ringcentral.definitions.GlipNoteInfo? { + if (this.noteId == null) { + throw NullPointerException("noteId") + } + + val rb: okhttp3.ResponseBody = rc.patch(this.path(), glipNoteCreate) + + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipNoteInfo::class.java) + + } + + + /** + * Operation: Delete Note + * Http Delete /restapi/v1.0/glip/notes/{noteId} + */ + fun delete(): String? { + if (this.noteId == null) { + throw NullPointerException("noteId") + } + + val rb: okhttp3.ResponseBody = rc.delete(this.path()) + + return rb.string() + + } + + + fun lock(): com.ringcentral.paths.restapi.glip.notes.lock.Index { + return com.ringcentral.paths.restapi.glip.notes.lock.Index(this) + } + + + fun unlock(): com.ringcentral.paths.restapi.glip.notes.unlock.Index { + return com.ringcentral.paths.restapi.glip.notes.unlock.Index(this) + } + + + fun publish(): com.ringcentral.paths.restapi.glip.notes.publish.Index { + return com.ringcentral.paths.restapi.glip.notes.publish.Index(this) + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/notes/lock/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/notes/lock/Index.kt new file mode 100644 index 00000000..f61c100c --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/glip/notes/lock/Index.kt @@ -0,0 +1,22 @@ +package com.ringcentral.paths.restapi.glip.notes.lock + +class Index(val parent: com.ringcentral.paths.restapi.glip.notes.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/lock" + } + + /** + * Operation: Lock Note + * Http Post /restapi/v1.0/glip/notes/{noteId}/lock + */ + fun post(): String? { + val rb: okhttp3.ResponseBody = rc.post(this.path()) + + return rb.string() + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/notes/publish/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/notes/publish/Index.kt new file mode 100644 index 00000000..03d1f484 --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/glip/notes/publish/Index.kt @@ -0,0 +1,22 @@ +package com.ringcentral.paths.restapi.glip.notes.publish + +class Index(val parent: com.ringcentral.paths.restapi.glip.notes.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/publish" + } + + /** + * Operation: Publish Note + * Http Post /restapi/v1.0/glip/notes/{noteId}/publish + */ + fun post(): String? { + val rb: okhttp3.ResponseBody = rc.post(this.path()) + + return rb.string() + + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/notes/unlock/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/notes/unlock/Index.kt new file mode 100644 index 00000000..7915530e --- /dev/null +++ b/src/main/java/com/ringcentral/paths/restapi/glip/notes/unlock/Index.kt @@ -0,0 +1,22 @@ +package com.ringcentral.paths.restapi.glip.notes.unlock + +class Index(val parent: com.ringcentral.paths.restapi.glip.notes.Index) { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/unlock" + } + + /** + * Operation: Unlock Note + * Http Post /restapi/v1.0/glip/notes/{noteId}/unlock + */ + fun post(): String? { + val rb: okhttp3.ResponseBody = rc.post(this.path()) + + return rb.string() + + } + +} 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 964579b6..72acdf00 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 @@ -1,34 +1,30 @@ package com.ringcentral.paths.restapi.glip.persons class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val personId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && personId != null) - { - return "${parent.path()}/persons/${personId}" - } - return "${parent.path()}/persons" + fun path(withParameter: Boolean = true): String { + if (withParameter && personId != null) { + return "${parent.path()}/persons/${personId}" } - /** - * Operation: Get Person - * Http Get /restapi/v1.0/glip/persons/{personId} - */ - fun get() : com.ringcentral.definitions.GlipPersonInfo? - { - if (this.personId == null) - { - throw NullPointerException("personId"); - } + return "${parent.path()}/persons" + } + + /** + * Operation: Get Person + * Http Get /restapi/v1.0/glip/persons/{personId} + */ + fun get(): com.ringcentral.definitions.GlipPersonInfo? { + if (this.personId == null) { + throw NullPointerException("personId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPersonInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/posts/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/posts/Index.kt index ca91bab1..bcad5d61 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/posts/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/posts/Index.kt @@ -1,37 +1,35 @@ package com.ringcentral.paths.restapi.glip.posts class Index(val parent: com.ringcentral.paths.restapi.glip.Index) { - var rc: com.ringcentral.RestClient = parent.rc - - - fun path(): String - { - return "${parent.path()}/posts" - } - - /** - * Operation: Get Posts - * Http Get /restapi/v1.0/glip/posts - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListGlipPostsParameters? = null) : com.ringcentral.definitions.GlipPosts? - { + var rc: com.ringcentral.RestClient = parent.rc + + + fun path(): String { + return "${parent.path()}/posts" + } + + /** + * Operation: Get Posts + * Http Get /restapi/v1.0/glip/posts + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListGlipPostsParameters? = null): com.ringcentral.definitions.GlipPosts? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPosts::class.java) - + } - - - /** - * Operation: Create Post - * Http Post /restapi/v1.0/glip/posts - */ - fun post(glipCreatePost: com.ringcentral.definitions.GlipCreatePost) : com.ringcentral.definitions.GlipPostInfo? - { + + + /** + * Operation: Create Post + * Http Post /restapi/v1.0/glip/posts + */ + fun post(glipCreatePost: com.ringcentral.definitions.GlipCreatePost): com.ringcentral.definitions.GlipPostInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(), glipCreatePost) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPostInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/preferences/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/preferences/Index.kt index 1366d259..72c6c45e 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/preferences/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/preferences/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.preferences class Index(val parent: com.ringcentral.paths.restapi.glip.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/preferences" - } - /** - * Operation: Get Preferences - * Http Get /restapi/v1.0/glip/preferences - */ - fun get() : com.ringcentral.definitions.GlipPreferencesInfo? - { + fun path(): String { + return "${parent.path()}/preferences" + } + + /** + * Operation: Get Preferences + * Http Get /restapi/v1.0/glip/preferences + */ + fun get(): com.ringcentral.definitions.GlipPreferencesInfo? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipPreferencesInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/recent/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/recent/Index.kt index dd6d0851..d22d7cfb 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/recent/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/recent/Index.kt @@ -1,18 +1,16 @@ package com.ringcentral.paths.restapi.glip.recent class Index(val parent: com.ringcentral.paths.restapi.glip.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/recent" - } + fun path(): String { + return "${parent.path()}/recent" + } - fun chats() : com.ringcentral.paths.restapi.glip.recent.chats.Index - { + + fun chats(): com.ringcentral.paths.restapi.glip.recent.chats.Index { return com.ringcentral.paths.restapi.glip.recent.chats.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/recent/chats/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/recent/chats/Index.kt index 8ae3c179..953e6014 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/recent/chats/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/recent/chats/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.glip.recent.chats class Index(val parent: com.ringcentral.paths.restapi.glip.recent.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/chats" - } - /** - * Operation: Get Recent Chats - * Http Get /restapi/v1.0/glip/recent/chats - */ - @JvmOverloads fun get(queryParams: com.ringcentral.definitions.ListRecentChatsParameters? = null) : com.ringcentral.definitions.GlipChatsListWithoutNavigation? - { + fun path(): String { + return "${parent.path()}/chats" + } + + /** + * Operation: Get Recent Chats + * Http Get /restapi/v1.0/glip/recent/chats + */ + @JvmOverloads + fun get(queryParams: com.ringcentral.definitions.ListRecentChatsParameters? = null): com.ringcentral.definitions.GlipChatsListWithoutNavigation? { val rb: okhttp3.ResponseBody = rc.get(this.path(), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipChatsListWithoutNavigation::class.java) - + } - + } 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 f7d14a91..40a2e609 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 @@ -1,77 +1,67 @@ package com.ringcentral.paths.restapi.glip.tasks class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val taskId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && taskId != null) - { - return "${parent.path()}/tasks/${taskId}" - } - return "${parent.path()}/tasks" + fun path(withParameter: Boolean = true): String { + if (withParameter && taskId != null) { + return "${parent.path()}/tasks/${taskId}" } - /** - * Operation: Get Task - * Http Get /restapi/v1.0/glip/tasks/{taskId} - */ - fun get() : com.ringcentral.definitions.GlipTaskInfo? - { - if (this.taskId == null) - { - throw NullPointerException("taskId"); - } + return "${parent.path()}/tasks" + } + + /** + * Operation: Get Task + * Http Get /restapi/v1.0/glip/tasks/{taskId} + */ + fun get(): com.ringcentral.definitions.GlipTaskInfo? { + if (this.taskId == null) { + throw NullPointerException("taskId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipTaskInfo::class.java) - + } - - - /** - * Operation: Patch Task - * Http Patch /restapi/v1.0/glip/tasks/{taskId} - */ - fun patch(glipUpdateTask: com.ringcentral.definitions.GlipUpdateTask) : com.ringcentral.definitions.GlipTaskList? - { - if (this.taskId == null) - { - throw NullPointerException("taskId"); - } + + + /** + * Operation: Patch Task + * Http Patch /restapi/v1.0/glip/tasks/{taskId} + */ + fun patch(glipUpdateTask: com.ringcentral.definitions.GlipUpdateTask): com.ringcentral.definitions.GlipTaskList? { + if (this.taskId == null) { + throw NullPointerException("taskId") + } val rb: okhttp3.ResponseBody = rc.patch(this.path(), glipUpdateTask) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipTaskList::class.java) - + } - - - /** - * Operation: Delete Task - * Http Delete /restapi/v1.0/glip/tasks/{taskId} - */ - fun delete() : String? - { - if (this.taskId == null) - { - throw NullPointerException("taskId"); - } + + + /** + * Operation: Delete Task + * Http Delete /restapi/v1.0/glip/tasks/{taskId} + */ + fun delete(): String? { + if (this.taskId == null) { + throw NullPointerException("taskId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - fun complete() : com.ringcentral.paths.restapi.glip.tasks.complete.Index - { + fun complete(): com.ringcentral.paths.restapi.glip.tasks.complete.Index { return com.ringcentral.paths.restapi.glip.tasks.complete.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/tasks/complete/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/tasks/complete/Index.kt index 3d6b6251..8fef1513 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/tasks/complete/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/tasks/complete/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.tasks.complete class Index(val parent: com.ringcentral.paths.restapi.glip.tasks.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/complete" - } - /** - * Operation: Complete Task - * Http Post /restapi/v1.0/glip/tasks/{taskId}/complete - */ - fun post(glipCompleteTask: com.ringcentral.definitions.GlipCompleteTask) : String? - { + fun path(): String { + return "${parent.path()}/complete" + } + + /** + * Operation: Complete Task + * Http Post /restapi/v1.0/glip/tasks/{taskId}/complete + */ + fun post(glipCompleteTask: com.ringcentral.definitions.GlipCompleteTask): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), glipCompleteTask) - + return rb.string() - + } - + } 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 f57157d4..17e36f8f 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 @@ -1,138 +1,117 @@ package com.ringcentral.paths.restapi.glip.teams class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val chatId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && chatId != null) - { - return "${parent.path()}/teams/${chatId}" - } - return "${parent.path()}/teams" + fun path(withParameter: Boolean = true): String { + if (withParameter && chatId != null) { + return "${parent.path()}/teams/${chatId}" } - /** - * Operation: Get Teams - * Http Get /restapi/v1.0/glip/teams - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.ListGlipTeamsParameters? = null) : com.ringcentral.definitions.GlipTeamsList? - { + return "${parent.path()}/teams" + } + + /** + * Operation: Get Teams + * Http Get /restapi/v1.0/glip/teams + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.ListGlipTeamsParameters? = null): com.ringcentral.definitions.GlipTeamsList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipTeamsList::class.java) - + } - - - /** - * Operation: Create Team - * Http Post /restapi/v1.0/glip/teams - */ - fun post(glipPostTeamBody: com.ringcentral.definitions.GlipPostTeamBody) : com.ringcentral.definitions.GlipTeamInfo? - { + + + /** + * Operation: Create Team + * Http Post /restapi/v1.0/glip/teams + */ + fun post(glipPostTeamBody: com.ringcentral.definitions.GlipPostTeamBody): com.ringcentral.definitions.GlipTeamInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), glipPostTeamBody) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipTeamInfo::class.java) - + } - - - /** - * Operation: Get Team - * Http Get /restapi/v1.0/glip/teams/{chatId} - */ - fun get() : com.ringcentral.definitions.GlipTeamInfo? - { - if (this.chatId == null) - { - throw NullPointerException("chatId"); - } + + + /** + * Operation: Get Team + * Http Get /restapi/v1.0/glip/teams/{chatId} + */ + fun get(): com.ringcentral.definitions.GlipTeamInfo? { + if (this.chatId == null) { + throw NullPointerException("chatId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipTeamInfo::class.java) - + } - - - /** - * Operation: Update Team - * Http Patch /restapi/v1.0/glip/teams/{chatId} - */ - fun patch(glipPatchTeamBody: com.ringcentral.definitions.GlipPatchTeamBody) : com.ringcentral.definitions.GlipTeamInfo? - { - if (this.chatId == null) - { - throw NullPointerException("chatId"); - } + + + /** + * Operation: Update Team + * Http Patch /restapi/v1.0/glip/teams/{chatId} + */ + fun patch(glipPatchTeamBody: com.ringcentral.definitions.GlipPatchTeamBody): com.ringcentral.definitions.GlipTeamInfo? { + if (this.chatId == null) { + throw NullPointerException("chatId") + } val rb: okhttp3.ResponseBody = rc.patch(this.path(), glipPatchTeamBody) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipTeamInfo::class.java) - + } - - - /** - * Operation: Delete Team - * Http Delete /restapi/v1.0/glip/teams/{chatId} - */ - fun delete() : String? - { - if (this.chatId == null) - { - throw NullPointerException("chatId"); - } + + + /** + * Operation: Delete Team + * Http Delete /restapi/v1.0/glip/teams/{chatId} + */ + fun delete(): String? { + if (this.chatId == null) { + throw NullPointerException("chatId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - fun join() : com.ringcentral.paths.restapi.glip.teams.join.Index - { + fun join(): com.ringcentral.paths.restapi.glip.teams.join.Index { return com.ringcentral.paths.restapi.glip.teams.join.Index(this) - } - + } - fun leave() : com.ringcentral.paths.restapi.glip.teams.leave.Index - { + fun leave(): com.ringcentral.paths.restapi.glip.teams.leave.Index { return com.ringcentral.paths.restapi.glip.teams.leave.Index(this) - } - + } - fun add() : com.ringcentral.paths.restapi.glip.teams.add.Index - { + fun add(): com.ringcentral.paths.restapi.glip.teams.add.Index { return com.ringcentral.paths.restapi.glip.teams.add.Index(this) - } - + } - fun remove() : com.ringcentral.paths.restapi.glip.teams.remove.Index - { + fun remove(): com.ringcentral.paths.restapi.glip.teams.remove.Index { return com.ringcentral.paths.restapi.glip.teams.remove.Index(this) - } - + } - fun archive() : com.ringcentral.paths.restapi.glip.teams.archive.Index - { + fun archive(): com.ringcentral.paths.restapi.glip.teams.archive.Index { return com.ringcentral.paths.restapi.glip.teams.archive.Index(this) - } - + } - fun unarchive() : com.ringcentral.paths.restapi.glip.teams.unarchive.Index - { + fun unarchive(): com.ringcentral.paths.restapi.glip.teams.unarchive.Index { return com.ringcentral.paths.restapi.glip.teams.unarchive.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/teams/add/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/teams/add/Index.kt index fe80ba94..a1c8a900 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/teams/add/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/teams/add/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.teams.add class Index(val parent: com.ringcentral.paths.restapi.glip.teams.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/add" - } - /** - * Operation: Add Team Members - * Http Post /restapi/v1.0/glip/teams/{chatId}/add - */ - fun post(glipPostMembersListBody: com.ringcentral.definitions.GlipPostMembersListBody) : String? - { + fun path(): String { + return "${parent.path()}/add" + } + + /** + * Operation: Add Team Members + * Http Post /restapi/v1.0/glip/teams/{chatId}/add + */ + fun post(glipPostMembersListBody: com.ringcentral.definitions.GlipPostMembersListBody): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), glipPostMembersListBody) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/teams/archive/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/teams/archive/Index.kt index 87583b88..d3d3b40c 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/teams/archive/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/teams/archive/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.teams.archive class Index(val parent: com.ringcentral.paths.restapi.glip.teams.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/archive" - } - /** - * Operation: Archive Team - * Http Post /restapi/v1.0/glip/teams/{chatId}/archive - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/archive" + } + + /** + * Operation: Archive Team + * Http Post /restapi/v1.0/glip/teams/{chatId}/archive + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/teams/join/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/teams/join/Index.kt index ff55b0a4..59155318 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/teams/join/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/teams/join/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.teams.join class Index(val parent: com.ringcentral.paths.restapi.glip.teams.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/join" - } - /** - * Operation: Join Team - * Http Post /restapi/v1.0/glip/teams/{chatId}/join - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/join" + } + + /** + * Operation: Join Team + * Http Post /restapi/v1.0/glip/teams/{chatId}/join + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/teams/leave/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/teams/leave/Index.kt index 0ef0e618..21b03a81 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/teams/leave/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/teams/leave/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.teams.leave class Index(val parent: com.ringcentral.paths.restapi.glip.teams.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/leave" - } - /** - * Operation: Leave Team - * Http Post /restapi/v1.0/glip/teams/{chatId}/leave - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/leave" + } + + /** + * Operation: Leave Team + * Http Post /restapi/v1.0/glip/teams/{chatId}/leave + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/teams/remove/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/teams/remove/Index.kt index 4b4f4ff1..d2611d2d 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/teams/remove/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/teams/remove/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.teams.remove class Index(val parent: com.ringcentral.paths.restapi.glip.teams.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/remove" - } - /** - * Operation: Remove Team Members - * Http Post /restapi/v1.0/glip/teams/{chatId}/remove - */ - fun post(glipPostMembersIdsListBody: com.ringcentral.definitions.GlipPostMembersIdsListBody) : String? - { + fun path(): String { + return "${parent.path()}/remove" + } + + /** + * Operation: Remove Team Members + * Http Post /restapi/v1.0/glip/teams/{chatId}/remove + */ + fun post(glipPostMembersIdsListBody: com.ringcentral.definitions.GlipPostMembersIdsListBody): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), glipPostMembersIdsListBody) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/teams/unarchive/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/teams/unarchive/Index.kt index 0626ab56..64ed7a63 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/teams/unarchive/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/teams/unarchive/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.teams.unarchive class Index(val parent: com.ringcentral.paths.restapi.glip.teams.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/unarchive" - } - /** - * Operation: Unarchive Team - * Http Post /restapi/v1.0/glip/teams/{chatId}/unarchive - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/unarchive" + } + + /** + * Operation: Unarchive Team + * Http Post /restapi/v1.0/glip/teams/{chatId}/unarchive + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } 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 c3fa8fbb..4a0d25de 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 @@ -1,79 +1,68 @@ package com.ringcentral.paths.restapi.glip.webhooks class Index(val parent: com.ringcentral.paths.restapi.glip.Index, val webhookId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && webhookId != null) - { - return "${parent.path()}/webhooks/${webhookId}" - } - return "${parent.path()}/webhooks" + fun path(withParameter: Boolean = true): String { + if (withParameter && webhookId != null) { + return "${parent.path()}/webhooks/${webhookId}" } - /** - * Operation: Get Webhooks - * Http Get /restapi/v1.0/glip/webhooks - */ - fun list() : com.ringcentral.definitions.GlipWebhookList? - { + return "${parent.path()}/webhooks" + } + + /** + * Operation: Get Webhooks + * Http Get /restapi/v1.0/glip/webhooks + */ + fun list(): com.ringcentral.definitions.GlipWebhookList? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipWebhookList::class.java) - + } - - - /** - * Operation: Get Webhook - * Http Get /restapi/v1.0/glip/webhooks/{webhookId} - */ - fun get() : com.ringcentral.definitions.GlipWebhookList? - { - if (this.webhookId == null) - { - throw NullPointerException("webhookId"); - } + + + /** + * Operation: Get Webhook + * Http Get /restapi/v1.0/glip/webhooks/{webhookId} + */ + fun get(): com.ringcentral.definitions.GlipWebhookList? { + if (this.webhookId == null) { + throw NullPointerException("webhookId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.GlipWebhookList::class.java) - + } - - - /** - * Operation: Delete Webhook - * Http Delete /restapi/v1.0/glip/webhooks/{webhookId} - */ - fun delete() : String? - { - if (this.webhookId == null) - { - throw NullPointerException("webhookId"); - } + + + /** + * Operation: Delete Webhook + * Http Delete /restapi/v1.0/glip/webhooks/{webhookId} + */ + fun delete(): String? { + if (this.webhookId == null) { + throw NullPointerException("webhookId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - fun activate() : com.ringcentral.paths.restapi.glip.webhooks.activate.Index - { + fun activate(): com.ringcentral.paths.restapi.glip.webhooks.activate.Index { return com.ringcentral.paths.restapi.glip.webhooks.activate.Index(this) - } - + } - fun suspend() : com.ringcentral.paths.restapi.glip.webhooks.suspend.Index - { + fun suspend(): com.ringcentral.paths.restapi.glip.webhooks.suspend.Index { return com.ringcentral.paths.restapi.glip.webhooks.suspend.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/activate/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/activate/Index.kt index 9ab2d52f..55aaf9ff 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/activate/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/activate/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.webhooks.activate class Index(val parent: com.ringcentral.paths.restapi.glip.webhooks.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/activate" - } - /** - * Operation: Activate Webhook - * Http Post /restapi/v1.0/glip/webhooks/{webhookId}/activate - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/activate" + } + + /** + * Operation: Activate Webhook + * Http Post /restapi/v1.0/glip/webhooks/{webhookId}/activate + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/suspend/Index.kt b/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/suspend/Index.kt index 55f68310..bc61df92 100644 --- a/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/suspend/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/glip/webhooks/suspend/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.glip.webhooks.suspend class Index(val parent: com.ringcentral.paths.restapi.glip.webhooks.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/suspend" - } - /** - * Operation: Suspend Webhook - * Http Post /restapi/v1.0/glip/webhooks/{webhookId}/suspend - */ - fun post() : String? - { + fun path(): String { + return "${parent.path()}/suspend" + } + + /** + * Operation: Suspend Webhook + * Http Post /restapi/v1.0/glip/webhooks/{webhookId}/suspend + */ + fun post(): String? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/numberparser/Index.kt b/src/main/java/com/ringcentral/paths/restapi/numberparser/Index.kt index 6aaf262f..ad70d0c6 100644 --- a/src/main/java/com/ringcentral/paths/restapi/numberparser/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/numberparser/Index.kt @@ -1,18 +1,16 @@ package com.ringcentral.paths.restapi.numberparser class Index(val parent: com.ringcentral.paths.restapi.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/number-parser" - } + fun path(): String { + return "${parent.path()}/number-parser" + } - fun parse() : com.ringcentral.paths.restapi.numberparser.parse.Index - { + + fun parse(): com.ringcentral.paths.restapi.numberparser.parse.Index { return com.ringcentral.paths.restapi.numberparser.parse.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/numberparser/parse/Index.kt b/src/main/java/com/ringcentral/paths/restapi/numberparser/parse/Index.kt index 3d2d2e84..9d0e3c2b 100644 --- a/src/main/java/com/ringcentral/paths/restapi/numberparser/parse/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/numberparser/parse/Index.kt @@ -1,24 +1,23 @@ package com.ringcentral.paths.restapi.numberparser.parse class Index(val parent: com.ringcentral.paths.restapi.numberparser.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/parse" - } - /** - * Operation: Parse Phone Number - * Http Post /restapi/v1.0/number-parser/parse - */ - @JvmOverloads fun post(parsePhoneNumberRequest: com.ringcentral.definitions.ParsePhoneNumberRequest, queryParams: com.ringcentral.definitions.ParsePhoneNumberParameters? = null) : com.ringcentral.definitions.ParsePhoneNumberResponse? - { + fun path(): String { + return "${parent.path()}/parse" + } + + /** + * Operation: Parse Phone Number + * Http Post /restapi/v1.0/number-parser/parse + */ + @JvmOverloads + fun post(parsePhoneNumberRequest: com.ringcentral.definitions.ParsePhoneNumberRequest, queryParams: com.ringcentral.definitions.ParsePhoneNumberParameters? = null): com.ringcentral.definitions.ParsePhoneNumberResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), parsePhoneNumberRequest, queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ParsePhoneNumberResponse::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/oauth/Index.kt b/src/main/java/com/ringcentral/paths/restapi/oauth/Index.kt index 7359c4e3..d5df0d04 100644 --- a/src/main/java/com/ringcentral/paths/restapi/oauth/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/oauth/Index.kt @@ -1,25 +1,21 @@ package com.ringcentral.paths.restapi.oauth class Index(val parent: com.ringcentral.paths.restapi.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/oauth" - } + fun path(): String { + return "${parent.path()}/oauth" + } - fun revoke() : com.ringcentral.paths.restapi.oauth.revoke.Index - { + + fun revoke(): com.ringcentral.paths.restapi.oauth.revoke.Index { return com.ringcentral.paths.restapi.oauth.revoke.Index(this) - } - + } - fun token() : com.ringcentral.paths.restapi.oauth.token.Index - { + fun token(): com.ringcentral.paths.restapi.oauth.token.Index { return com.ringcentral.paths.restapi.oauth.token.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/oauth/revoke/Index.kt b/src/main/java/com/ringcentral/paths/restapi/oauth/revoke/Index.kt index 2ad9ec0c..e4a2a62c 100644 --- a/src/main/java/com/ringcentral/paths/restapi/oauth/revoke/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/oauth/revoke/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.oauth.revoke class Index(val parent: com.ringcentral.paths.restapi.oauth.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/revoke" - } - /** - * Operation: Revoke Token - * Http Post /restapi/oauth/revoke - */ - fun post(revokeTokenRequest: com.ringcentral.definitions.RevokeTokenRequest) : String? - { + fun path(): String { + return "${parent.path()}/revoke" + } + + /** + * Operation: Revoke Token + * Http Post /restapi/oauth/revoke + */ + fun post(revokeTokenRequest: com.ringcentral.definitions.RevokeTokenRequest): String? { val rb: okhttp3.ResponseBody = rc.post(this.path(), revokeTokenRequest, null, com.ringcentral.ContentType.FORM) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/oauth/token/Index.kt b/src/main/java/com/ringcentral/paths/restapi/oauth/token/Index.kt index 28163143..cfaffb98 100644 --- a/src/main/java/com/ringcentral/paths/restapi/oauth/token/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/oauth/token/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.oauth.token class Index(val parent: com.ringcentral.paths.restapi.oauth.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/token" - } - /** - * Operation: Get Token - * Http Post /restapi/oauth/token - */ - fun post(getTokenRequest: com.ringcentral.definitions.GetTokenRequest) : com.ringcentral.definitions.TokenInfo? - { + fun path(): String { + return "${parent.path()}/token" + } + + /** + * Operation: Get Token + * Http Post /restapi/oauth/token + */ + fun post(getTokenRequest: com.ringcentral.definitions.GetTokenRequest): com.ringcentral.definitions.TokenInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(), getTokenRequest, null, com.ringcentral.ContentType.FORM) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.TokenInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/restapi/status/Index.kt b/src/main/java/com/ringcentral/paths/restapi/status/Index.kt index 03659978..1b87d621 100644 --- a/src/main/java/com/ringcentral/paths/restapi/status/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/status/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.status class Index(val parent: com.ringcentral.paths.restapi.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/status" - } - /** - * Operation: Get Service Status - * Http Get /restapi/v1.0/status - */ - fun get() : String? - { + fun path(): String { + return "${parent.path()}/status" + } + + /** + * Operation: Get Service Status + * Http Get /restapi/v1.0/status + */ + fun get(): String? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return rb.string() - + } - + } 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 90c2cbd2..53a11e26 100644 --- a/src/main/java/com/ringcentral/paths/restapi/subscription/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/subscription/Index.kt @@ -1,103 +1,92 @@ package com.ringcentral.paths.restapi.subscription class Index(val parent: com.ringcentral.paths.restapi.Index, val subscriptionId: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && subscriptionId != null) - { - return "${parent.path()}/subscription/${subscriptionId}" - } - return "${parent.path()}/subscription" + fun path(withParameter: Boolean = true): String { + if (withParameter && subscriptionId != null) { + return "${parent.path()}/subscription/${subscriptionId}" } - /** - * Operation: Get Subscriptions - * Http Get /restapi/v1.0/subscription - */ - fun list() : com.ringcentral.definitions.RecordsCollectionResourceSubscriptionResponse? - { + return "${parent.path()}/subscription" + } + + /** + * Operation: Get Subscriptions + * Http Get /restapi/v1.0/subscription + */ + fun list(): com.ringcentral.definitions.RecordsCollectionResourceSubscriptionResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false)) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.RecordsCollectionResourceSubscriptionResponse::class.java) - + } - - - /** - * Operation: Create Subscription - * Http Post /restapi/v1.0/subscription - */ - fun post(createSubscriptionRequest: com.ringcentral.definitions.CreateSubscriptionRequest) : com.ringcentral.definitions.SubscriptionInfo? - { + + + /** + * Operation: Create Subscription + * Http Post /restapi/v1.0/subscription + */ + fun post(createSubscriptionRequest: com.ringcentral.definitions.CreateSubscriptionRequest): com.ringcentral.definitions.SubscriptionInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path(false), createSubscriptionRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.SubscriptionInfo::class.java) - + } - - - /** - * Operation: Get Subscription - * Http Get /restapi/v1.0/subscription/{subscriptionId} - */ - fun get() : com.ringcentral.definitions.SubscriptionInfo? - { - if (this.subscriptionId == null) - { - throw NullPointerException("subscriptionId"); - } + + + /** + * Operation: Get Subscription + * Http Get /restapi/v1.0/subscription/{subscriptionId} + */ + fun get(): com.ringcentral.definitions.SubscriptionInfo? { + if (this.subscriptionId == null) { + throw NullPointerException("subscriptionId") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.SubscriptionInfo::class.java) - + } - - - /** - * Operation: Renew Subscription / Update Event Filters - * Http Put /restapi/v1.0/subscription/{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"); - } + + + /** + * Operation: Renew Subscription / Update Event Filters + * Http Put /restapi/v1.0/subscription/{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") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), modifySubscriptionRequest, queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.SubscriptionInfo::class.java) - + } - - - /** - * Operation: Cancel Subscription - * Http Delete /restapi/v1.0/subscription/{subscriptionId} - */ - fun delete() : String? - { - if (this.subscriptionId == null) - { - throw NullPointerException("subscriptionId"); - } + + + /** + * Operation: Cancel Subscription + * Http Delete /restapi/v1.0/subscription/{subscriptionId} + */ + fun delete(): String? { + if (this.subscriptionId == null) { + throw NullPointerException("subscriptionId") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - fun renew() : com.ringcentral.paths.restapi.subscription.renew.Index - { + fun renew(): com.ringcentral.paths.restapi.subscription.renew.Index { return com.ringcentral.paths.restapi.subscription.renew.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/restapi/subscription/renew/Index.kt b/src/main/java/com/ringcentral/paths/restapi/subscription/renew/Index.kt index ecc8d265..d4907c3c 100644 --- a/src/main/java/com/ringcentral/paths/restapi/subscription/renew/Index.kt +++ b/src/main/java/com/ringcentral/paths/restapi/subscription/renew/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.restapi.subscription.renew class Index(val parent: com.ringcentral.paths.restapi.subscription.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/renew" - } - /** - * Operation: Renew Subscription - * Http Post /restapi/v1.0/subscription/{subscriptionId}/renew - */ - fun post() : com.ringcentral.definitions.SubscriptionInfo? - { + fun path(): String { + return "${parent.path()}/renew" + } + + /** + * Operation: Renew Subscription + * Http Post /restapi/v1.0/subscription/{subscriptionId}/renew + */ + fun post(): com.ringcentral.definitions.SubscriptionInfo? { val rb: okhttp3.ResponseBody = rc.post(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.SubscriptionInfo::class.java) - + } - + } diff --git a/src/main/java/com/ringcentral/paths/scim/Index.kt b/src/main/java/com/ringcentral/paths/scim/Index.kt index cb38293e..d39be44b 100644 --- a/src/main/java/com/ringcentral/paths/scim/Index.kt +++ b/src/main/java/com/ringcentral/paths/scim/Index.kt @@ -1,37 +1,30 @@ package com.ringcentral.paths.scim class Index(val rc: com.ringcentral.RestClient, val version: String? = "v2") { - - - fun path(withParameter: Boolean = true): String - { - if (withParameter && version != null) - { - return "/scim/${version}" - } - return "/scim" + fun path(withParameter: Boolean = true): String { + if (withParameter && version != null) { + return "/scim/${version}" } + return "/scim" + } - fun health() : com.ringcentral.paths.scim.health.Index - { + + fun health(): com.ringcentral.paths.scim.health.Index { return com.ringcentral.paths.scim.health.Index(this) - } - + } - fun serviceproviderconfig() : com.ringcentral.paths.scim.serviceproviderconfig.Index - { + fun serviceproviderconfig(): com.ringcentral.paths.scim.serviceproviderconfig.Index { return com.ringcentral.paths.scim.serviceproviderconfig.Index(this) - } - + } - @JvmOverloads fun users(id: String? = null) : com.ringcentral.paths.scim.users.Index - { + @JvmOverloads + fun users(id: String? = null): com.ringcentral.paths.scim.users.Index { return com.ringcentral.paths.scim.users.Index(this, id) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/scim/health/Index.kt b/src/main/java/com/ringcentral/paths/scim/health/Index.kt index 3c658947..357e082c 100644 --- a/src/main/java/com/ringcentral/paths/scim/health/Index.kt +++ b/src/main/java/com/ringcentral/paths/scim/health/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.scim.health class Index(val parent: com.ringcentral.paths.scim.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/health" - } - /** - * Operation: Check Health - * Http Get /scim/v2/health - */ - fun get() : String? - { + fun path(): String { + return "${parent.path()}/health" + } + + /** + * Operation: Check Health + * Http Get /scim/v2/health + */ + fun get(): String? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return rb.string() - + } - + } diff --git a/src/main/java/com/ringcentral/paths/scim/serviceproviderconfig/Index.kt b/src/main/java/com/ringcentral/paths/scim/serviceproviderconfig/Index.kt index 48ee70a4..e2665c6c 100644 --- a/src/main/java/com/ringcentral/paths/scim/serviceproviderconfig/Index.kt +++ b/src/main/java/com/ringcentral/paths/scim/serviceproviderconfig/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.scim.serviceproviderconfig class Index(val parent: com.ringcentral.paths.scim.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/ServiceProviderConfig" - } - /** - * Operation: Get Service Provider Config - * Http Get /scim/v2/ServiceProviderConfig - */ - fun get() : com.ringcentral.definitions.ServiceProviderConfig? - { + fun path(): String { + return "${parent.path()}/ServiceProviderConfig" + } + + /** + * Operation: Get Service Provider Config + * Http Get /scim/v2/ServiceProviderConfig + */ + fun get(): com.ringcentral.definitions.ServiceProviderConfig? { val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.ServiceProviderConfig::class.java) - + } - + } 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 4bc1e4d0..8b7b975c 100644 --- a/src/main/java/com/ringcentral/paths/scim/users/Index.kt +++ b/src/main/java/com/ringcentral/paths/scim/users/Index.kt @@ -1,121 +1,108 @@ package com.ringcentral.paths.scim.users class Index(val parent: com.ringcentral.paths.scim.Index, val id: String? = null) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(withParameter: Boolean = true): String - { - if (withParameter && id != null) - { - return "${parent.path()}/Users/${id}" - } - return "${parent.path()}/Users" + fun path(withParameter: Boolean = true): String { + if (withParameter && id != null) { + return "${parent.path()}/Users/${id}" } - /** - * Operation: Search/List Users - * Http Get /scim/v2/Users - */ - @JvmOverloads fun list(queryParams: com.ringcentral.definitions.SearchViaGet2Parameters? = null) : com.ringcentral.definitions.UserSearchResponse? - { + return "${parent.path()}/Users" + } + + /** + * Operation: Search/List Users + * Http Get /scim/v2/Users + */ + @JvmOverloads + fun list(queryParams: com.ringcentral.definitions.SearchViaGet2Parameters? = null): com.ringcentral.definitions.UserSearchResponse? { val rb: okhttp3.ResponseBody = rc.get(this.path(false), queryParams) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserSearchResponse::class.java) - + } - - - /** - * Operation: Create User - * Http Post /scim/v2/Users - */ - fun post(user: com.ringcentral.definitions.User) : com.ringcentral.definitions.UserResponse? - { - val rb: okhttp3.ResponseBody = rc.post(this.path(false), user) - + + + /** + * Operation: Create User + * Http Post /scim/v2/Users + */ + fun post(createUser: com.ringcentral.definitions.CreateUser): com.ringcentral.definitions.UserResponse? { + val rb: okhttp3.ResponseBody = rc.post(this.path(false), createUser) + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserResponse::class.java) - + } - - - /** - * Operation: Get User - * Http Get /scim/v2/Users/{id} - */ - fun get() : com.ringcentral.definitions.UserResponse? - { - if (this.id == null) - { - throw NullPointerException("id"); - } + + + /** + * Operation: Get User + * Http Get /scim/v2/Users/{id} + */ + fun get(): com.ringcentral.definitions.UserResponse? { + if (this.id == null) { + throw NullPointerException("id") + } val rb: okhttp3.ResponseBody = rc.get(this.path()) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserResponse::class.java) - + } - - - /** - * Operation: Update/Replace User - * Http Put /scim/v2/Users/{id} - */ - fun put(user: com.ringcentral.definitions.User) : com.ringcentral.definitions.UserResponse? - { - if (this.id == null) - { - throw NullPointerException("id"); - } + + + /** + * Operation: Update/Replace User + * Http Put /scim/v2/Users/{id} + */ + fun put(user: com.ringcentral.definitions.User): com.ringcentral.definitions.UserResponse? { + if (this.id == null) { + throw NullPointerException("id") + } val rb: okhttp3.ResponseBody = rc.put(this.path(), user) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserResponse::class.java) - + } - - - /** - * Operation: Delete User - * Http Delete /scim/v2/Users/{id} - */ - fun delete() : String? - { - if (this.id == null) - { - throw NullPointerException("id"); - } + + + /** + * Operation: Delete User + * Http Delete /scim/v2/Users/{id} + */ + fun delete(): String? { + if (this.id == null) { + throw NullPointerException("id") + } val rb: okhttp3.ResponseBody = rc.delete(this.path()) - + return rb.string() - + } - - - /** - * Operation: Update/Patch User - * Http Patch /scim/v2/Users/{id} - */ - fun patch(userPatch: com.ringcentral.definitions.UserPatch) : com.ringcentral.definitions.UserResponse? - { - if (this.id == null) - { - throw NullPointerException("id"); - } + + + /** + * Operation: Update/Patch User + * Http Patch /scim/v2/Users/{id} + */ + fun patch(userPatch: com.ringcentral.definitions.UserPatch): com.ringcentral.definitions.UserResponse? { + if (this.id == null) { + throw NullPointerException("id") + } val rb: okhttp3.ResponseBody = rc.patch(this.path(), userPatch) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserResponse::class.java) - + } - - fun dotsearch() : com.ringcentral.paths.scim.users.dotsearch.Index - { + fun dotsearch(): com.ringcentral.paths.scim.users.dotsearch.Index { return com.ringcentral.paths.scim.users.dotsearch.Index(this) - } - -} \ No newline at end of file + } + +} diff --git a/src/main/java/com/ringcentral/paths/scim/users/dotsearch/Index.kt b/src/main/java/com/ringcentral/paths/scim/users/dotsearch/Index.kt index 0ebdf584..325f4513 100644 --- a/src/main/java/com/ringcentral/paths/scim/users/dotsearch/Index.kt +++ b/src/main/java/com/ringcentral/paths/scim/users/dotsearch/Index.kt @@ -1,24 +1,22 @@ package com.ringcentral.paths.scim.users.dotsearch class Index(val parent: com.ringcentral.paths.scim.users.Index) { - var rc: com.ringcentral.RestClient = parent.rc - + var rc: com.ringcentral.RestClient = parent.rc - fun path(): String - { - return "${parent.path()}/.search" - } - /** - * Operation: Search/List Users - * Http Post /scim/v2/Users/.search - */ - fun post(searchRequest: com.ringcentral.definitions.SearchRequest) : com.ringcentral.definitions.UserSearchResponse? - { + fun path(): String { + return "${parent.path()}/.search" + } + + /** + * Operation: Search/List Users + * Http Post /scim/v2/Users/.search + */ + fun post(searchRequest: com.ringcentral.definitions.SearchRequest): com.ringcentral.definitions.UserSearchResponse? { val rb: okhttp3.ResponseBody = rc.post(this.path(), searchRequest) - + return com.alibaba.fastjson.JSON.parseObject(rb.string(), com.ringcentral.definitions.UserSearchResponse::class.java) - + } - + } diff --git a/src/test/java/com/ringcentral/CheckSubscriptionTest.java b/src/test/java/com/ringcentral/CheckSubscriptionTest.java index a98ed9f7..a920a705 100644 --- a/src/test/java/com/ringcentral/CheckSubscriptionTest.java +++ b/src/test/java/com/ringcentral/CheckSubscriptionTest.java @@ -1,9 +1,7 @@ package com.ringcentral; -import com.ringcentral.definitions.ReadUserCallLogParameters; import com.ringcentral.definitions.RecordsCollectionResourceSubscriptionResponse; import com.ringcentral.definitions.SubscriptionInfo; -import com.ringcentral.definitions.UserCallLogResponse; import org.junit.Test; import java.io.IOException; diff --git a/src/test/java/com/ringcentral/ConsumeTextTest.java b/src/test/java/com/ringcentral/ConsumeTextTest.java index 2b4a192d..5be37e3f 100644 --- a/src/test/java/com/ringcentral/ConsumeTextTest.java +++ b/src/test/java/com/ringcentral/ConsumeTextTest.java @@ -3,9 +3,6 @@ import org.junit.Test; import java.io.IOException; -import java.util.UUID; - -import static org.junit.Assert.assertEquals; public class ConsumeTextTest { @Test