Skip to content

Commit 7273bed

Browse files
committed
[Auto Generated] 3.16.3
1 parent fab6c5f commit 7273bed

21 files changed

+505
-24
lines changed

CHANGELOG.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,81 @@
1+
# CHANGE LOG (3.16.3) - 2.10.3
2+
3+
## Application Client
4+
5+
6+
7+
### User
8+
9+
10+
11+
#### getAttributesDefinition
12+
13+
- ##### What's New
14+
- [Added] method <code>getAttributesDefinition</code>
15+
16+
17+
18+
## Platform Client
19+
20+
21+
22+
### Content
23+
24+
25+
26+
#### updateInjectableTag
27+
28+
- ##### What's Deprecated
29+
- [Breaking] [Deleted] property <code>page</code> of schema <code>TagsSchema</code> in response with status code 200
30+
31+
32+
#### getInjectableTags
33+
34+
- ##### What's Deprecated
35+
- [Breaking] [Deleted] <code>query</code> parameter <code>pageNo</code> (type: <code>integer</code>)
36+
37+
- [Breaking] [Deleted] <code>query</code> parameter <code>pageSize</code> (type: <code>integer</code>)
38+
39+
- [Breaking] [Deleted] property <code>page</code> of schema <code>TagsSchema</code> in response with status code 200
40+
41+
42+
#### addInjectableTag
43+
44+
- ##### What's Deprecated
45+
- [Breaking] [Deleted] property <code>page</code> of schema <code>TagsSchema</code> in response with status code 200
46+
47+
48+
#### editInjectableTag
49+
50+
- ##### What's Deprecated
51+
- [Breaking] [Deleted] property <code>page</code> of schema <code>TagsSchema</code> in response with status code 200
52+
53+
54+
### User
55+
56+
57+
58+
#### createUserGroup
59+
60+
- ##### What's New
61+
- [Breaking] [Added] Possible values <code>ne,eq,gt,lt,gte,lte,cnt,nct,is,nis,sw,ew,btw,today,tomorrow,week,month,xdays,days_after_value,days_before_value,in,nin</code> to property <code>conditions[].type</code> of schema <code>ConditionsSchema</code> in request body
62+
- [Added] property <code>conditions[].ignoreYear</code> of schema <code>ConditionsSchema</code> in request body
63+
64+
65+
#### updateUserGroup
66+
67+
- ##### What's New
68+
- [Breaking] [Added] Possible values <code>ne,eq,gt,lt,gte,lte,cnt,nct,is,nis,sw,ew,btw,today,tomorrow,week,month,xdays,days_after_value,days_before_value,in,nin</code> to property <code>conditions[].type</code> of schema <code>ConditionsSchema</code> in request body
69+
- [Added] property <code>conditions[].ignoreYear</code> of schema <code>ConditionsSchema</code> in request body
70+
71+
72+
#### deleteUserGroup
73+
74+
- ##### What's New
75+
- [Added] method <code>deleteUserGroup</code>
76+
77+
78+
179
# CHANGE LOG (3.16.2) - 2.10.2
280

381
## Platform Client

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Get started with the Java Development SDK for Fynd Platform
1616
<dependency>
1717
<groupId>com.github.gofynd</groupId>
1818
<artifactId>fdk-client-java</artifactId>
19-
<version>3.16.2</version>
19+
<version>3.16.3</version>
2020
</dependency>
2121
```
2222

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.github.gofynd</groupId>
88
<artifactId>fynd-client-java</artifactId>
9-
<version>3.16.2</version>
9+
<version>3.16.3</version>
1010

1111
<parent>
1212
<groupId>org.springframework.boot</groupId>

src/main/java/com/sdk/application/ApplicationHeaderInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ private Request.Builder buildHeaders(Request request, String bearerToken) {
3939
.addHeader("User-Agent", applicationConfig.getUserAgent())
4040
.addHeader("Accept-Language", "en-IN")
4141
.addHeader("Authorization", "Bearer "+bearerToken)
42-
.addHeader("x-fp-sdk-version", "3.16.2");
42+
.addHeader("x-fp-sdk-version", "3.16.3");
4343
}
4444
}

src/main/java/com/sdk/application/user/UserApplicationApiList.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ interface UserApplicationApiList {
135135
@PATCH
136136
Call<UserApplicationModels.UserAttributes> updateUserAttributes(@Url String url1, @Body UserApplicationModels.UpdateUserAttributes payload, @HeaderMap Map<String, String> requestHeaders);
137137

138+
@GET
139+
Call<Object> getAttributesDefinition(@Url String url1, @Query("excluding_ids") String excludingIds, @Query("slug") String slug, @Query("type") String type, @Query("customer_editable") Boolean customerEditable, @Query("encrypted") Boolean encrypted, @Query("pinned") Boolean pinned, @Query("pin_order") Integer pinOrder, @Query("is_locked") Boolean isLocked, @Query("name") String name, @Query("registration_enabled") Boolean registrationEnabled, @Query("registration_type") Object registrationType, @Query("page_size") Integer pageSize, @Query("page_no") Integer pageNo, @HeaderMap Map<String, String> requestHeaders);
140+
138141
@POST
139142
Call<UserApplicationModels.SendOtpSuccess> sendOTPOnPrimary(@Url String url1, @Body UserApplicationModels.SendPrimaryOTPRequestSchema payload, @HeaderMap Map<String, String> requestHeaders);
140143

src/main/java/com/sdk/application/user/UserApplicationModels.java

Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,232 @@
1313
public class UserApplicationModels{
1414

1515

16+
/*
17+
Model: UserAttributesDefinition
18+
*/
19+
@AllArgsConstructor
20+
@NoArgsConstructor
21+
@Getter
22+
@Setter
23+
@JsonIgnoreProperties(ignoreUnknown = true)
24+
@JsonInclude(JsonInclude.Include.NON_NULL)
25+
public static class UserAttributesDefinition{
26+
27+
28+
29+
30+
31+
32+
33+
@JsonProperty("id")
34+
private String id;
35+
36+
37+
38+
39+
@JsonProperty("name")
40+
private String name;
41+
42+
43+
44+
45+
@JsonProperty("slug")
46+
private String slug;
47+
48+
49+
50+
51+
@JsonProperty("description")
52+
private String description;
53+
54+
55+
56+
57+
@JsonProperty("application_id")
58+
private String applicationId;
59+
60+
61+
62+
63+
@JsonProperty("type")
64+
private String type;
65+
66+
67+
68+
69+
@JsonProperty("icon")
70+
private String icon;
71+
72+
73+
74+
75+
@JsonProperty("ordering_channels")
76+
private List<String> orderingChannels;
77+
78+
79+
80+
81+
@JsonProperty("masking")
82+
private AttributeMaskingProperties masking;
83+
84+
85+
86+
87+
@JsonProperty("registration")
88+
private AttributeRegistrationProperties registration;
89+
90+
91+
92+
93+
@JsonProperty("is_multi_value")
94+
private Boolean isMultiValue;
95+
96+
97+
98+
99+
@JsonProperty("customer_editable")
100+
private Boolean customerEditable;
101+
102+
103+
104+
105+
@JsonProperty("encrypted")
106+
private Boolean encrypted;
107+
108+
109+
110+
111+
@JsonProperty("pinned")
112+
private Boolean pinned;
113+
114+
115+
116+
117+
@JsonProperty("pin_order")
118+
private Integer pinOrder;
119+
120+
121+
122+
123+
@JsonProperty("validations")
124+
private List<Object> validations;
125+
126+
127+
128+
129+
@JsonProperty("is_locked")
130+
private Boolean isLocked;
131+
132+
133+
134+
135+
@JsonProperty("created_at")
136+
private String createdAt;
137+
138+
139+
140+
141+
@JsonProperty("modified_at")
142+
private String modifiedAt;
143+
144+
145+
146+
}
147+
148+
149+
/*
150+
Model: AttributeMaskingProperties
151+
*/
152+
@AllArgsConstructor
153+
@NoArgsConstructor
154+
@Getter
155+
@Setter
156+
@JsonIgnoreProperties(ignoreUnknown = true)
157+
@JsonInclude(JsonInclude.Include.NON_NULL)
158+
public static class AttributeMaskingProperties{
159+
160+
161+
162+
163+
164+
165+
166+
@JsonProperty("enabled")
167+
private Boolean enabled;
168+
169+
170+
171+
172+
@JsonProperty("type")
173+
private String type;
174+
175+
176+
177+
}
178+
179+
180+
/*
181+
Model: AttributeRegistrationProperties
182+
*/
183+
@AllArgsConstructor
184+
@NoArgsConstructor
185+
@Getter
186+
@Setter
187+
@JsonIgnoreProperties(ignoreUnknown = true)
188+
@JsonInclude(JsonInclude.Include.NON_NULL)
189+
public static class AttributeRegistrationProperties{
190+
191+
192+
193+
194+
195+
196+
197+
@JsonProperty("enabled")
198+
private Boolean enabled;
199+
200+
201+
202+
203+
@JsonProperty("type")
204+
private String type;
205+
206+
207+
208+
}
209+
210+
211+
/*
212+
Model: UserAttributeDefinitionValidation
213+
*/
214+
@AllArgsConstructor
215+
@NoArgsConstructor
216+
@Getter
217+
@Setter
218+
@JsonIgnoreProperties(ignoreUnknown = true)
219+
@JsonInclude(JsonInclude.Include.NON_NULL)
220+
public static class UserAttributeDefinitionValidation{
221+
222+
223+
224+
225+
226+
227+
228+
@JsonProperty("type")
229+
private String type;
230+
231+
232+
233+
234+
@JsonProperty("value")
235+
private Object value;
236+
237+
238+
239+
}
240+
241+
16242
/*
17243
Model: VerifyOTPForUpdateRequestSchema
18244
*/

src/main/java/com/sdk/application/user/UserApplicationService.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public UserApplicationService(ApplicationConfig applicationConfig) {
7272
relativeUrls.put("logout","/service/application/user/authentication/v1.0/logout".substring(1));
7373
relativeUrls.put("getUserAttributes","/service/application/user/profile/v1.0/user-attributes".substring(1));
7474
relativeUrls.put("updateUserAttributes","/service/application/user/profile/v1.0/user-attributes".substring(1));
75+
relativeUrls.put("getAttributesDefinition","/service/application/user/profile/v1.0/attributes/definition".substring(1));
7576
relativeUrls.put("sendOTPOnPrimary","/service/application/user/profile/v2.0/{entity}/primary/otp/send".substring(1));
7677
relativeUrls.put("verifyOTPonPrimary","/service/application/user/profile/v2.0/{entity}/primary/otp/verify".substring(1));
7778
relativeUrls.put("sendOTPForUpdate","/service/application/user/profile/v2.0/{entity}/otp/send".substring(1));
@@ -823,6 +824,23 @@ public UserApplicationModels.UserAttributes updateUserAttributes(UserApplication
823824
}
824825

825826

827+
public Object getAttributesDefinition(String excludingIds, String slug, String type, Boolean customerEditable, Boolean encrypted, Boolean pinned, Integer pinOrder, Boolean isLocked, String name, Boolean registrationEnabled, Object registrationType, Integer pageSize, Integer pageNo) throws IOException {
828+
return this.getAttributesDefinition(excludingIds, slug, type, customerEditable, encrypted, pinned, pinOrder, isLocked, name, registrationEnabled, registrationType, pageSize, pageNo, new HashMap<>());
829+
}
830+
831+
public Object getAttributesDefinition(String excludingIds, String slug, String type, Boolean customerEditable, Boolean encrypted, Boolean pinned, Integer pinOrder, Boolean isLocked, String name, Boolean registrationEnabled, Object registrationType, Integer pageSize, Integer pageNo, Map<String, String> requestHeaders) throws IOException {
832+
833+
String fullUrl = relativeUrls.get("getAttributesDefinition");
834+
835+
Response<Object> response = userApplicationApiList.getAttributesDefinition(fullUrl, excludingIds, slug, type, customerEditable, encrypted, pinned, pinOrder, isLocked, name, registrationEnabled, registrationType, pageSize, pageNo, requestHeaders).execute();
836+
if(!response.isSuccessful()) {
837+
throw new IOException(response.errorBody() != null
838+
? response.errorBody().string() : Fields.UNKNOWN_ERROR);
839+
}
840+
return response.body();
841+
}
842+
843+
826844
public UserApplicationModels.SendOtpSuccess sendOTPOnPrimary(String entity, UserApplicationModels.SendPrimaryOTPRequestSchema body) throws IOException {
827845
return this.sendOTPOnPrimary(entity, body, new HashMap<>());
828846
}

src/main/java/com/sdk/partner/AccessTokenInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public Response intercept(Chain chain) throws IOException {
2626
okhttp3.Request.Builder builder = original.newBuilder()
2727
.addHeader("Authorization", "Bearer "+ partnerConfig.getPartnerOauthClient().getToken())
2828
.addHeader("Content-Type", "application/x-www-form-urlencoded")
29-
.addHeader("x-fp-sdk-version", "3.16.2");
29+
.addHeader("x-fp-sdk-version", "3.16.3");
3030
if (!partnerConfig.getExtraHeaders().isEmpty()) {
3131
HashMap<String, String> extraHeaders = partnerConfig.getExtraHeaders();
3232
for(Map.Entry<String,String> entry:extraHeaders.entrySet()){

0 commit comments

Comments
 (0)