Skip to content

Commit 68b9e07

Browse files
committed
New spec, new code
1 parent 10ca7c3 commit 68b9e07

File tree

516 files changed

+5183
-5299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

516 files changed

+5183
-5299
lines changed

samples.md

Lines changed: 2122 additions & 2097 deletions
Large diffs are not rendered by default.

src/main/java/com/ringcentral/RestClient.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package com.ringcentral;
22

3-
import com.ringcentral.definitions.*;
3+
import com.ringcentral.definitions.Attachment;
4+
import com.ringcentral.definitions.GetTokenRequest;
5+
import com.ringcentral.definitions.RevokeTokenRequest;
6+
import com.ringcentral.definitions.TokenInfo;
47
import okhttp3.*;
58
import okio.BufferedSink;
69

src/main/java/com/ringcentral/definitions/AccountLimits.java renamed to src/main/java/com/ringcentral/definitions/AccountLimitsInfo.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* Limits which are effective for the account
66
*/
7-
public class AccountLimits {
7+
public class AccountLimitsInfo {
88
/**
99
* Max number of free softphone phone lines per user extension
1010
* Format: int32
@@ -44,37 +44,37 @@ public class AccountLimits {
4444
*/
4545
public Long shortExtensionNumberLength;
4646

47-
public AccountLimits freeSoftPhoneLinesPerExtension(Long freeSoftPhoneLinesPerExtension) {
47+
public AccountLimitsInfo freeSoftPhoneLinesPerExtension(Long freeSoftPhoneLinesPerExtension) {
4848
this.freeSoftPhoneLinesPerExtension = freeSoftPhoneLinesPerExtension;
4949
return this;
5050
}
5151

52-
public AccountLimits meetingSize(Long meetingSize) {
52+
public AccountLimitsInfo meetingSize(Long meetingSize) {
5353
this.meetingSize = meetingSize;
5454
return this;
5555
}
5656

57-
public AccountLimits cloudRecordingStorage(Long cloudRecordingStorage) {
57+
public AccountLimitsInfo cloudRecordingStorage(Long cloudRecordingStorage) {
5858
this.cloudRecordingStorage = cloudRecordingStorage;
5959
return this;
6060
}
6161

62-
public AccountLimits maxMonitoredExtensionsPerUser(Long maxMonitoredExtensionsPerUser) {
62+
public AccountLimitsInfo maxMonitoredExtensionsPerUser(Long maxMonitoredExtensionsPerUser) {
6363
this.maxMonitoredExtensionsPerUser = maxMonitoredExtensionsPerUser;
6464
return this;
6565
}
6666

67-
public AccountLimits maxExtensionNumberLength(Long maxExtensionNumberLength) {
67+
public AccountLimitsInfo maxExtensionNumberLength(Long maxExtensionNumberLength) {
6868
this.maxExtensionNumberLength = maxExtensionNumberLength;
6969
return this;
7070
}
7171

72-
public AccountLimits siteCodeLength(Long siteCodeLength) {
72+
public AccountLimitsInfo siteCodeLength(Long siteCodeLength) {
7373
this.siteCodeLength = siteCodeLength;
7474
return this;
7575
}
7676

77-
public AccountLimits shortExtensionNumberLength(Long shortExtensionNumberLength) {
77+
public AccountLimitsInfo shortExtensionNumberLength(Long shortExtensionNumberLength) {
7878
this.shortExtensionNumberLength = shortExtensionNumberLength;
7979
return this;
8080
}

src/main/java/com/ringcentral/definitions/AccountLockSettingRecordResponse.java

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/main/java/com/ringcentral/definitions/AccountLockedSettingResponse.java

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/main/java/com/ringcentral/definitions/AccountPresenceEventBody.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public class AccountPresenceEventBody {
3636
* Enum: TakeAllCalls, DoNotAcceptDepartmentCalls, TakeDepartmentCallsOnly, DoNotAcceptAnyCalls, Unknown
3737
*/
3838
public String dndStatus;
39+
/**
40+
* Do Not Disturb status of a User extension. Connected to the DND State type.
41+
* Applicable for User extensions if the new communication handling service is
42+
* activated on account.
43+
* Enum: TakeAllCalls, DoNotAcceptAnyCalls, Unknown
44+
*/
45+
public String dndStatusPersonal;
3946
/**
4047
* Meetings presence status. Specifies if a user is on a meeting
4148
* Enum: Connected, Disconnected
@@ -45,6 +52,12 @@ public class AccountPresenceEventBody {
4552
* If set to `true` enables other extensions to see the extension presence status
4653
*/
4754
public Boolean allowSeeMyPresence;
55+
/**
56+
* Specifies if a Call Queue member extension will be able to receive Call Queue calls.
57+
* Used for the Agent state type. Applicable for User extensions if the new communication
58+
* handling service is activated on account
59+
*/
60+
public Boolean acceptCallQueueCalls;
4861
/**
4962
* If `true` enables to ring extension phone, if any user monitored
5063
* by this extension is ringing
@@ -89,6 +102,11 @@ public AccountPresenceEventBody dndStatus(String dndStatus) {
89102
return this;
90103
}
91104

105+
public AccountPresenceEventBody dndStatusPersonal(String dndStatusPersonal) {
106+
this.dndStatusPersonal = dndStatusPersonal;
107+
return this;
108+
}
109+
92110
public AccountPresenceEventBody meetingStatus(String meetingStatus) {
93111
this.meetingStatus = meetingStatus;
94112
return this;
@@ -99,6 +117,11 @@ public AccountPresenceEventBody allowSeeMyPresence(Boolean allowSeeMyPresence) {
99117
return this;
100118
}
101119

120+
public AccountPresenceEventBody acceptCallQueueCalls(Boolean acceptCallQueueCalls) {
121+
this.acceptCallQueueCalls = acceptCallQueueCalls;
122+
return this;
123+
}
124+
102125
public AccountPresenceEventBody ringOnMonitoredCall(Boolean ringOnMonitoredCall) {
103126
this.ringOnMonitoredCall = ringOnMonitoredCall;
104127
return this;

src/main/java/com/ringcentral/definitions/AccountRegionalSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class AccountRegionalSettings {
99
/**
1010
*
1111
*/
12-
public CountryInfoShortModelV2 homeCountry;
12+
public CountryInfoShortModel homeCountry;
1313
/**
1414
*
1515
*/
@@ -37,7 +37,7 @@ public class AccountRegionalSettings {
3737
*/
3838
public CurrencyInfo currency;
3939

40-
public AccountRegionalSettings homeCountry(CountryInfoShortModelV2 homeCountry) {
40+
public AccountRegionalSettings homeCountry(CountryInfoShortModel homeCountry) {
4141
this.homeCountry = homeCountry;
4242
return this;
4343
}

src/main/java/com/ringcentral/definitions/AccountServiceInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class AccountServiceInfo {
4343
/**
4444
*
4545
*/
46-
public AccountLimits limits;
46+
public AccountLimitsInfo limits;
4747
/**
4848
*
4949
*/
@@ -94,7 +94,7 @@ public AccountServiceInfo serviceFeatures(ServiceFeatureInfo[] serviceFeatures)
9494
return this;
9595
}
9696

97-
public AccountServiceInfo limits(AccountLimits limits) {
97+
public AccountServiceInfo limits(AccountLimitsInfo limits) {
9898
this.limits = limits;
9999
return this;
100100
}

src/main/java/com/ringcentral/definitions/AccountServiceInfoRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class AccountServiceInfoRequest {
4343
/**
4444
*
4545
*/
46-
public AccountLimits limits;
46+
public AccountLimitsInfo limits;
4747
/**
4848
*
4949
*/
@@ -90,7 +90,7 @@ public AccountServiceInfoRequest serviceFeatures(ServiceFeatureInfo[] serviceFea
9090
return this;
9191
}
9292

93-
public AccountServiceInfoRequest limits(AccountLimits limits) {
93+
public AccountServiceInfoRequest limits(AccountLimitsInfo limits) {
9494
this.limits = limits;
9595
return this;
9696
}

src/main/java/com/ringcentral/definitions/AddBlockedAllowedPhoneNumber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class AddBlockedAllowedPhoneNumber {
1414
*/
1515
public String label;
1616
/**
17-
* Status of a phone number
17+
* Status of a phone number blocking
1818
* Default: Blocked
1919
* Enum: Blocked, Allowed
2020
*/

0 commit comments

Comments
 (0)