Skip to content

Commit 5ad72be

Browse files
committed
Generate code using latest spec
1 parent 2f94f76 commit 5ad72be

413 files changed

Lines changed: 9390 additions & 7299 deletions

File tree

Some content is hidden

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

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33

44
public class AccountCallLogSyncResponse {
5+
/**
6+
* Link to account call log sync resource
7+
*/
8+
public String uri;
59
/**
610
* 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
711
*/
@@ -11,6 +15,11 @@ public class AccountCallLogSyncResponse {
1115
*/
1216
public CompanyCallLogSyncInfo syncInfo;
1317

18+
public AccountCallLogSyncResponse uri(String uri) {
19+
this.uri = uri;
20+
return this;
21+
}
22+
1423
public AccountCallLogSyncResponse records(CompanyCallLogRecord[] records) {
1524
this.records = records;
1625
return this;

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33

44
public class AccountDeviceUpdate {
55
/**
6-
* Address for emergency cases. The same emergency address is assigned to all numbers of a single device
6+
* Address for emergency cases. The same emergency address is assigned to all numbers of a single device. If the emergency address is also specified in `emergency` resource, then this value is ignored
77
*/
88
public EmergencyServiceAddressResourceRequest emergencyServiceAddress;
9+
/**
10+
* Device emergency settings
11+
*/
12+
public DeviceEmergencyInfo emergency;
913
/**
1014
* Information on extension that the device is assigned to
1115
*/
@@ -24,6 +28,11 @@ public AccountDeviceUpdate emergencyServiceAddress(EmergencyServiceAddressResour
2428
return this;
2529
}
2630

31+
public AccountDeviceUpdate emergency(DeviceEmergencyInfo emergency) {
32+
this.emergency = emergency;
33+
return this;
34+
}
35+
2736
public AccountDeviceUpdate extension(DeviceUpdateExtensionInfo extension) {
2837
this.extension = extension;
2938
return this;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.ringcentral.definitions;
2+
3+
4+
public class AccountLockedSettingResponse {
5+
/**
6+
* Scheduling meeting settings locked on account level
7+
*/
8+
public ScheduleUserMeetingInfo scheduleMeeting;
9+
/**
10+
* Meeting recording settings locked on account level
11+
*/
12+
public UserMeetingRecordingSetting recording;
13+
14+
public AccountLockedSettingResponse scheduleMeeting(ScheduleUserMeetingInfo scheduleMeeting) {
15+
this.scheduleMeeting = scheduleMeeting;
16+
return this;
17+
}
18+
19+
public AccountLockedSettingResponse recording(UserMeetingRecordingSetting recording) {
20+
this.recording = recording;
21+
return this;
22+
}
23+
24+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.ringcentral.definitions;
2+
3+
4+
// Operator extension information
5+
public class AccountOperatorInfo {
6+
/**
7+
* Link to an operator extension resource
8+
*/
9+
public String uri;
10+
/**
11+
* Internal identifier of an operator extension
12+
*/
13+
public Long id;
14+
/**
15+
* Number of an operator extension
16+
*/
17+
public String extensionNumber;
18+
19+
public AccountOperatorInfo uri(String uri) {
20+
this.uri = uri;
21+
return this;
22+
}
23+
24+
public AccountOperatorInfo id(Long id) {
25+
this.id = id;
26+
return this;
27+
}
28+
29+
public AccountOperatorInfo extensionNumber(String extensionNumber) {
30+
this.extensionNumber = extensionNumber;
31+
return this;
32+
}
33+
34+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
package com.ringcentral.definitions;
2+
3+
4+
public class AccountRegionalSettings {
5+
/**
6+
* Extension country information
7+
*/
8+
public CountryInfo homeCountry;
9+
/**
10+
* Extension timezone information
11+
*/
12+
public TimezoneInfo timezone;
13+
/**
14+
* User interface language data
15+
*/
16+
public LanguageInfo language;
17+
/**
18+
* Information on language used for telephony greetings
19+
*/
20+
public GreetingLanguageInfo greetingLanguage;
21+
/**
22+
* Formatting language preferences for numbers, dates and currencies
23+
*/
24+
public FormattingLocaleInfo formattingLocale;
25+
/**
26+
* Time format setting. The default value is '12h' = ['12h', '24h']
27+
* Enum: 12h, 24h
28+
*/
29+
public String timeFormat;
30+
/**
31+
* Currency information
32+
*/
33+
public CurrencyInfo currency;
34+
35+
public AccountRegionalSettings homeCountry(CountryInfo homeCountry) {
36+
this.homeCountry = homeCountry;
37+
return this;
38+
}
39+
40+
public AccountRegionalSettings timezone(TimezoneInfo timezone) {
41+
this.timezone = timezone;
42+
return this;
43+
}
44+
45+
public AccountRegionalSettings language(LanguageInfo language) {
46+
this.language = language;
47+
return this;
48+
}
49+
50+
public AccountRegionalSettings greetingLanguage(GreetingLanguageInfo greetingLanguage) {
51+
this.greetingLanguage = greetingLanguage;
52+
return this;
53+
}
54+
55+
public AccountRegionalSettings formattingLocale(FormattingLocaleInfo formattingLocale) {
56+
this.formattingLocale = formattingLocale;
57+
return this;
58+
}
59+
60+
public AccountRegionalSettings timeFormat(String timeFormat) {
61+
this.timeFormat = timeFormat;
62+
return this;
63+
}
64+
65+
public AccountRegionalSettings currency(CurrencyInfo currency) {
66+
this.currency = currency;
67+
return this;
68+
}
69+
70+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
package com.ringcentral.definitions;
2+
3+
4+
public class AccountTelephonySessionsEvent {
5+
/**
6+
* Universally unique identifier of a notification
7+
*/
8+
public String uuid;
9+
/**
10+
* Event filter URI
11+
*/
12+
public String event;
13+
/**
14+
* Datetime of sending a notification in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format including timezone, for example *2016-03-10T18:07:52.534Z*
15+
*/
16+
public String timestamp;
17+
/**
18+
* Internal identifier of a subscription
19+
*/
20+
public String subscriptionId;
21+
/**
22+
* Internal identifier of a subscription owner extension
23+
*/
24+
public String ownerId;
25+
/**
26+
* Notification payload body
27+
*/
28+
public TelephonySessionsEventBody body;
29+
30+
public AccountTelephonySessionsEvent uuid(String uuid) {
31+
this.uuid = uuid;
32+
return this;
33+
}
34+
35+
public AccountTelephonySessionsEvent event(String event) {
36+
this.event = event;
37+
return this;
38+
}
39+
40+
public AccountTelephonySessionsEvent timestamp(String timestamp) {
41+
this.timestamp = timestamp;
42+
return this;
43+
}
44+
45+
public AccountTelephonySessionsEvent subscriptionId(String subscriptionId) {
46+
this.subscriptionId = subscriptionId;
47+
return this;
48+
}
49+
50+
public AccountTelephonySessionsEvent ownerId(String ownerId) {
51+
this.ownerId = ownerId;
52+
return this;
53+
}
54+
55+
public AccountTelephonySessionsEvent body(TelephonySessionsEventBody body) {
56+
this.body = body;
57+
return this;
58+
}
59+
60+
}

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public class ActiveCallInfo {
3131
*/
3232
public String startTime;
3333
/**
34-
*
34+
* Telephony presence status
35+
* Enum: NoCall, CallConnected, Ringing, OnHold, ParkedCall
3536
*/
3637
public String telephonyStatus;
3738
/**
@@ -42,6 +43,18 @@ public class ActiveCallInfo {
4243
*
4344
*/
4445
public String sessionId;
46+
/**
47+
* Telephony identifier of a call session
48+
*/
49+
public String telephonySessionId;
50+
/**
51+
* Extension ID of the call owner on whose behalf a call is performed
52+
*/
53+
public String onBehalfOf;
54+
/**
55+
* Internal identifier of a call party
56+
*/
57+
public String partyId;
4558
/**
4659
*
4760
*/
@@ -105,6 +118,21 @@ public ActiveCallInfo sessionId(String sessionId) {
105118
return this;
106119
}
107120

121+
public ActiveCallInfo telephonySessionId(String telephonySessionId) {
122+
this.telephonySessionId = telephonySessionId;
123+
return this;
124+
}
125+
126+
public ActiveCallInfo onBehalfOf(String onBehalfOf) {
127+
this.onBehalfOf = onBehalfOf;
128+
return this;
129+
}
130+
131+
public ActiveCallInfo partyId(String partyId) {
132+
this.partyId = partyId;
133+
return this;
134+
}
135+
108136
public ActiveCallInfo terminationType(String terminationType) {
109137
this.terminationType = terminationType;
110138
return this;

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

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,27 @@ public class ActiveCallInfoWithoutSIP {
2727
* Name of a callee
2828
*/
2929
public String toName;
30+
/**
31+
* Internal identifier of a call party
32+
*/
33+
public String partyId;
3034
/**
3135
* Time when the call is actually started
3236
*/
3337
public String startTime;
38+
/**
39+
* Internal identifier of a call session
40+
*/
41+
public String sessionId;
3442
/**
3543
* Telephony call status
3644
* Enum: NoCall, CallConnected, Ringing, OnHold, ParkedCall
3745
*/
3846
public String telephonyStatus;
3947
/**
40-
* Internal identifier of a call session
48+
* Telephony identifier of a call session
4149
*/
42-
public String sessionId;
50+
public String telephonySessionId;
4351
/**
4452
* Type of call termination. Supported for calls in 'NoCall' status. If the returned termination type is 'intermediate' it means the call is not actually ended, the connection is established on one of the devices
4553
* Enum: final, intermediate
@@ -76,18 +84,28 @@ public ActiveCallInfoWithoutSIP toName(String toName) {
7684
return this;
7785
}
7886

87+
public ActiveCallInfoWithoutSIP partyId(String partyId) {
88+
this.partyId = partyId;
89+
return this;
90+
}
91+
7992
public ActiveCallInfoWithoutSIP startTime(String startTime) {
8093
this.startTime = startTime;
8194
return this;
8295
}
8396

97+
public ActiveCallInfoWithoutSIP sessionId(String sessionId) {
98+
this.sessionId = sessionId;
99+
return this;
100+
}
101+
84102
public ActiveCallInfoWithoutSIP telephonyStatus(String telephonyStatus) {
85103
this.telephonyStatus = telephonyStatus;
86104
return this;
87105
}
88106

89-
public ActiveCallInfoWithoutSIP sessionId(String sessionId) {
90-
this.sessionId = sessionId;
107+
public ActiveCallInfoWithoutSIP telephonySessionId(String telephonySessionId) {
108+
this.telephonySessionId = telephonySessionId;
91109
return this;
92110
}
93111

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public class AnsweringRuleInfo {
6969
* Enum: Off, NoCallerId, UnknownCallerId, Always
7070
*/
7171
public String screening;
72+
/**
73+
* SharedLines call handling action settings
74+
*/
75+
public SharedLinesInfo sharedLines;
7276

7377
public AnsweringRuleInfo uri(String uri) {
7478
this.uri = uri;
@@ -150,4 +154,9 @@ public AnsweringRuleInfo screening(String screening) {
150154
return this;
151155
}
152156

157+
public AnsweringRuleInfo sharedLines(SharedLinesInfo sharedLines) {
158+
this.sharedLines = sharedLines;
159+
return this;
160+
}
161+
153162
}

src/main/java/com/ringcentral/definitions/GlipUpdateTaskAssignee.java renamed to src/main/java/com/ringcentral/definitions/AssigneeInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package com.ringcentral.definitions;
22

33

4-
public class GlipUpdateTaskAssignee {
4+
public class AssigneeInfo {
55
/**
66
* Internal identifier of an assignee
77
*/
88
public String id;
99

10-
public GlipUpdateTaskAssignee id(String id) {
10+
public AssigneeInfo id(String id) {
1111
this.id = id;
1212
return this;
1313
}

0 commit comments

Comments
 (0)