20
20
@ JsonInclude (JsonInclude .Include .NON_ABSENT )
21
21
@ JsonDeserialize (builder = AccountsListRequest .Builder .class )
22
22
public final class AccountsListRequest {
23
- private final Optional <String > appId ;
24
-
25
23
private final Optional <String > externalUserId ;
26
24
27
25
private final Optional <String > oauthAppId ;
@@ -32,37 +30,31 @@ public final class AccountsListRequest {
32
30
33
31
private final Optional <Integer > limit ;
34
32
33
+ private final Optional <String > app ;
34
+
35
35
private final Optional <Boolean > includeCredentials ;
36
36
37
37
private final Map <String , Object > additionalProperties ;
38
38
39
39
private AccountsListRequest (
40
- Optional <String > appId ,
41
40
Optional <String > externalUserId ,
42
41
Optional <String > oauthAppId ,
43
42
Optional <String > after ,
44
43
Optional <String > before ,
45
44
Optional <Integer > limit ,
45
+ Optional <String > app ,
46
46
Optional <Boolean > includeCredentials ,
47
47
Map <String , Object > additionalProperties ) {
48
- this .appId = appId ;
49
48
this .externalUserId = externalUserId ;
50
49
this .oauthAppId = oauthAppId ;
51
50
this .after = after ;
52
51
this .before = before ;
53
52
this .limit = limit ;
53
+ this .app = app ;
54
54
this .includeCredentials = includeCredentials ;
55
55
this .additionalProperties = additionalProperties ;
56
56
}
57
57
58
- /**
59
- * @return The app slug or ID to filter accounts by.
60
- */
61
- @ JsonProperty ("app_id" )
62
- public Optional <String > getAppId () {
63
- return appId ;
64
- }
65
-
66
58
@ JsonProperty ("external_user_id" )
67
59
public Optional <String > getExternalUserId () {
68
60
return externalUserId ;
@@ -100,6 +92,14 @@ public Optional<Integer> getLimit() {
100
92
return limit ;
101
93
}
102
94
95
+ /**
96
+ * @return The app slug or ID to filter accounts by.
97
+ */
98
+ @ JsonProperty ("app" )
99
+ public Optional <String > getApp () {
100
+ return app ;
101
+ }
102
+
103
103
/**
104
104
* @return Whether to retrieve the account's credentials or not
105
105
*/
@@ -120,24 +120,24 @@ public Map<String, Object> getAdditionalProperties() {
120
120
}
121
121
122
122
private boolean equalTo (AccountsListRequest other ) {
123
- return appId .equals (other .appId )
124
- && externalUserId .equals (other .externalUserId )
123
+ return externalUserId .equals (other .externalUserId )
125
124
&& oauthAppId .equals (other .oauthAppId )
126
125
&& after .equals (other .after )
127
126
&& before .equals (other .before )
128
127
&& limit .equals (other .limit )
128
+ && app .equals (other .app )
129
129
&& includeCredentials .equals (other .includeCredentials );
130
130
}
131
131
132
132
@ java .lang .Override
133
133
public int hashCode () {
134
134
return Objects .hash (
135
- this .appId ,
136
135
this .externalUserId ,
137
136
this .oauthAppId ,
138
137
this .after ,
139
138
this .before ,
140
139
this .limit ,
140
+ this .app ,
141
141
this .includeCredentials );
142
142
}
143
143
@@ -152,8 +152,6 @@ public static Builder builder() {
152
152
153
153
@ JsonIgnoreProperties (ignoreUnknown = true )
154
154
public static final class Builder {
155
- private Optional <String > appId = Optional .empty ();
156
-
157
155
private Optional <String > externalUserId = Optional .empty ();
158
156
159
157
private Optional <String > oauthAppId = Optional .empty ();
@@ -164,6 +162,8 @@ public static final class Builder {
164
162
165
163
private Optional <Integer > limit = Optional .empty ();
166
164
165
+ private Optional <String > app = Optional .empty ();
166
+
167
167
private Optional <Boolean > includeCredentials = Optional .empty ();
168
168
169
169
@ JsonAnySetter
@@ -172,30 +172,16 @@ public static final class Builder {
172
172
private Builder () {}
173
173
174
174
public Builder from (AccountsListRequest other ) {
175
- appId (other .getAppId ());
176
175
externalUserId (other .getExternalUserId ());
177
176
oauthAppId (other .getOauthAppId ());
178
177
after (other .getAfter ());
179
178
before (other .getBefore ());
180
179
limit (other .getLimit ());
180
+ app (other .getApp ());
181
181
includeCredentials (other .getIncludeCredentials ());
182
182
return this ;
183
183
}
184
184
185
- /**
186
- * <p>The app slug or ID to filter accounts by.</p>
187
- */
188
- @ JsonSetter (value = "app_id" , nulls = Nulls .SKIP )
189
- public Builder appId (Optional <String > appId ) {
190
- this .appId = appId ;
191
- return this ;
192
- }
193
-
194
- public Builder appId (String appId ) {
195
- this .appId = Optional .ofNullable (appId );
196
- return this ;
197
- }
198
-
199
185
@ JsonSetter (value = "external_user_id" , nulls = Nulls .SKIP )
200
186
public Builder externalUserId (Optional <String > externalUserId ) {
201
187
this .externalUserId = externalUserId ;
@@ -263,6 +249,20 @@ public Builder limit(Integer limit) {
263
249
return this ;
264
250
}
265
251
252
+ /**
253
+ * <p>The app slug or ID to filter accounts by.</p>
254
+ */
255
+ @ JsonSetter (value = "app" , nulls = Nulls .SKIP )
256
+ public Builder app (Optional <String > app ) {
257
+ this .app = app ;
258
+ return this ;
259
+ }
260
+
261
+ public Builder app (String app ) {
262
+ this .app = Optional .ofNullable (app );
263
+ return this ;
264
+ }
265
+
266
266
/**
267
267
* <p>Whether to retrieve the account's credentials or not</p>
268
268
*/
@@ -279,7 +279,7 @@ public Builder includeCredentials(Boolean includeCredentials) {
279
279
280
280
public AccountsListRequest build () {
281
281
return new AccountsListRequest (
282
- appId , externalUserId , oauthAppId , after , before , limit , includeCredentials , additionalProperties );
282
+ externalUserId , oauthAppId , after , before , limit , app , includeCredentials , additionalProperties );
283
283
}
284
284
}
285
285
}
0 commit comments