Skip to content

Commit 201810a

Browse files
committed
[Auto Generated] 3.19.0
1 parent d7bd81b commit 201810a

19 files changed

+758
-17
lines changed

CHANGELOG.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,106 @@
1+
# CHANGE LOG (3.19.0) - 2.11.5
2+
3+
## Application Client
4+
5+
6+
7+
### Order
8+
9+
10+
11+
#### getRefundModesWithPriceBreakup
12+
13+
- ##### What's New
14+
- [Added] method <code>getRefundModesWithPriceBreakup</code>
15+
16+
17+
18+
### Payment
19+
20+
21+
22+
#### getPosPaymentModeRoutes
23+
24+
- ##### What's New
25+
- [Added] <code>query</code> parameter <code>fulfillmentOption</code> (type: <code>array</code>)
26+
27+
28+
29+
## Partner Client
30+
31+
32+
33+
### Webhook
34+
35+
36+
37+
#### validateFilterConfiguration
38+
39+
- ##### What's New
40+
- [Added] method <code>validateFilterConfiguration</code>
41+
42+
43+
44+
#### validateReducerConfiguration
45+
46+
- ##### What's New
47+
- [Added] method <code>validateReducerConfiguration</code>
48+
49+
50+
51+
#### saveFilterReducerConfiguration
52+
53+
- ##### What's New
54+
- [Added] method <code>saveFilterReducerConfiguration</code>
55+
56+
57+
58+
## Platform Client
59+
60+
61+
62+
### Order
63+
64+
65+
66+
#### addStateManagerConfig
67+
68+
- ##### What's New
69+
- [Added] property <code>data.configs[].preHooks[].filter</code> of schema <code>PreHook</code> in request body
70+
- [Added] property <code>data.configs[].postHooks[].filter</code> of schema <code>PostHook</code> in request body
71+
72+
- ##### What's Deprecated
73+
- [Breaking] [Deleted] property <code>data.configs[].preHooks[].filters</code> of schema <code>PreHook</code> in request body
74+
- [Breaking] [Deleted] property <code>data.configs[].postHooks[].filters</code> of schema <code>PostHook</code> in request body
75+
76+
77+
#### getStateManagerConfig
78+
79+
- ##### What's New
80+
- [Added] property <code>data[].configs[].preHooks[].filter</code> of schema <code>PreHook</code> in response with status code 200
81+
- [Added] property <code>data[].configs[].postHooks[].filter</code> of schema <code>PostHook</code> in response with status code 200
82+
83+
- ##### What's Deprecated
84+
- [Breaking] [Deleted] property <code>data[].configs[].preHooks[].filters</code> of schema <code>PreHook</code> in response with status code 200
85+
- [Breaking] [Deleted] property <code>data[].configs[].postHooks[].filters</code> of schema <code>PostHook</code> in response with status code 200
86+
87+
88+
### User
89+
90+
91+
92+
#### createUser
93+
94+
- ##### What's New
95+
- [Added] property <code>dob</code> of schema <code>CreateUserRequestSchema</code> in request body
96+
97+
98+
#### updateUser
99+
100+
- ##### What's New
101+
- [Added] property <code>dob</code> of schema <code>UpdateUserRequestSchema</code> in request body
102+
103+
1104
# CHANGE LOG (3.18.0) - 2.11.3
2105

3106
## Application 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.18.0</version>
19+
<version>3.19.0</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.18.0</version>
9+
<version>3.19.0</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.18.0");
42+
.addHeader("x-fp-sdk-version", "3.19.0");
4343
}
4444
}

src/main/java/com/sdk/application/order/OrderApplicationApiList.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ interface OrderApplicationApiList {
99
@GET
1010
Call<OrderApplicationModels.RefundOptions> getRefundModes(@Url String url1, @Query("line_numbers") List<Integer> lineNumbers, @HeaderMap Map<String, String> requestHeaders);
1111

12+
@POST
13+
Call<OrderApplicationModels.RefundOptions> getRefundModesWithPriceBreakup(@Url String url1, @Body OrderApplicationModels.RefundModeRequestData payload, @HeaderMap Map<String, String> requestHeaders);
14+
1215
@GET
1316
Call<OrderApplicationModels.OrderList> getOrders(@Url String url1, @Query("status") Integer status, @Query("page_no") Integer pageNo, @Query("page_size") Integer pageSize, @Query("from_date") String fromDate, @Query("to_date") String toDate, @Query("start_date") String startDate, @Query("end_date") String endDate, @Query("custom_meta") String customMeta, @Query("allow_inactive") Boolean allowInactive, @HeaderMap Map<String, String> requestHeaders);
1417

src/main/java/com/sdk/application/order/OrderApplicationModels.java

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,62 @@
1313
public class OrderApplicationModels{
1414

1515

16+
/*
17+
Model: RefundModeLineNumber
18+
*/
19+
@AllArgsConstructor
20+
@NoArgsConstructor
21+
@Getter
22+
@Setter
23+
@JsonIgnoreProperties(ignoreUnknown = true)
24+
@JsonInclude(JsonInclude.Include.NON_NULL)
25+
public static class RefundModeLineNumber{
26+
27+
28+
29+
30+
31+
32+
33+
@JsonProperty("line_number")
34+
private Double lineNumber;
35+
36+
37+
38+
39+
@JsonProperty("quantity")
40+
private Double quantity;
41+
42+
43+
44+
}
45+
46+
47+
/*
48+
Model: RefundModeRequestData
49+
*/
50+
@AllArgsConstructor
51+
@NoArgsConstructor
52+
@Getter
53+
@Setter
54+
@JsonIgnoreProperties(ignoreUnknown = true)
55+
@JsonInclude(JsonInclude.Include.NON_NULL)
56+
public static class RefundModeRequestData{
57+
58+
59+
60+
61+
62+
63+
64+
@JsonProperty("line_numbers")
65+
private List<RefundModeLineNumber> lineNumbers;
66+
67+
68+
69+
}
70+
71+
1672
/*
1773
Model: PriceBreakupValues
1874
*/

src/main/java/com/sdk/application/order/OrderApplicationService.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public OrderApplicationService(ApplicationConfig applicationConfig) {
3030

3131

3232
relativeUrls.put("getRefundModes","/service/application/order-manage/v1.0/shipment/{shipment_id}/refund/modes".substring(1));
33+
relativeUrls.put("getRefundModesWithPriceBreakup","/service/application/order-manage/v1.0/shipment/{shipment_id}/refund/modes".substring(1));
3334
relativeUrls.put("getOrders","/service/application/order/v1.0/orders".substring(1));
3435
relativeUrls.put("getOrderById","/service/application/order/v1.0/orders/{order_id}".substring(1));
3536
relativeUrls.put("getPosOrderById","/service/application/order/v1.0/orders/pos-order/{order_id}".substring(1));
@@ -77,6 +78,24 @@ public OrderApplicationModels.RefundOptions getRefundModes(String shipmentId, Li
7778
}
7879

7980

81+
public OrderApplicationModels.RefundOptions getRefundModesWithPriceBreakup(String shipmentId, OrderApplicationModels.RefundModeRequestData body) throws IOException {
82+
return this.getRefundModesWithPriceBreakup(shipmentId, body, new HashMap<>());
83+
}
84+
85+
public OrderApplicationModels.RefundOptions getRefundModesWithPriceBreakup(String shipmentId, OrderApplicationModels.RefundModeRequestData body, Map<String, String> requestHeaders) throws IOException {
86+
87+
String fullUrl = relativeUrls.get("getRefundModesWithPriceBreakup");
88+
fullUrl = fullUrl.replace("{" + "shipment_id" + "}",shipmentId.toString());
89+
90+
Response<OrderApplicationModels.RefundOptions> response = orderApplicationApiList.getRefundModesWithPriceBreakup(fullUrl, body, requestHeaders).execute();
91+
if(!response.isSuccessful()) {
92+
throw new IOException(response.errorBody() != null
93+
? response.errorBody().string() : Fields.UNKNOWN_ERROR);
94+
}
95+
return response.body();
96+
}
97+
98+
8099
public OrderApplicationModels.OrderList getOrders(Integer status, Integer pageNo, Integer pageSize, String fromDate, String toDate, String startDate, String endDate, String customMeta, Boolean allowInactive) throws IOException {
81100
return this.getOrders(status, pageNo, pageSize, fromDate, toDate, startDate, endDate, customMeta, allowInactive, new HashMap<>());
82101
}

src/main/java/com/sdk/application/payment/PaymentApplicationApiList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ interface PaymentApplicationApiList {
3737
Call<PaymentApplicationModels.PaymentModeRouteDetails> getPaymentModeRoutes(@Url String url1, @Query("amount") Integer amount, @Query("cart_id") String cartId, @Query("checkout_mode") String checkoutMode, @Query("refresh") Boolean refresh, @Query("order_id") String orderId, @Query("card_reference") String cardReference, @Query("user_details") String userDetails, @Query("display_split") Boolean displaySplit, @Query("advance_payment") Boolean advancePayment, @Query("shipment_id") String shipmentId, @Query("fulfillment_option") List<String> fulfillmentOption, @HeaderMap Map<String, String> requestHeaders);
3838

3939
@GET
40-
Call<PaymentApplicationModels.PaymentModeRouteDetails> getPosPaymentModeRoutes(@Url String url1, @Query("amount") Integer amount, @Query("cart_id") String cartId, @Query("pincode") String pincode, @Query("checkout_mode") String checkoutMode, @Query("refresh") Boolean refresh, @Query("card_reference") String cardReference, @Query("order_type") String orderType, @Query("user_details") String userDetails, @HeaderMap Map<String, String> requestHeaders);
40+
Call<PaymentApplicationModels.PaymentModeRouteDetails> getPosPaymentModeRoutes(@Url String url1, @Query("amount") Integer amount, @Query("cart_id") String cartId, @Query("pincode") String pincode, @Query("checkout_mode") String checkoutMode, @Query("refresh") Boolean refresh, @Query("card_reference") String cardReference, @Query("order_type") String orderType, @Query("fulfillment_option") List<String> fulfillmentOption, @Query("user_details") String userDetails, @HeaderMap Map<String, String> requestHeaders);
4141

4242
@POST
4343
Call<PaymentApplicationModels.WalletResponseSchema> walletLinkInitiate(@Url String url1, @Body PaymentApplicationModels.WalletLinkRequestSchema payload, @HeaderMap Map<String, String> requestHeaders);

src/main/java/com/sdk/application/payment/PaymentApplicationService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,15 @@ public PaymentApplicationModels.PaymentModeRouteDetails getPaymentModeRoutes(Int
264264
}
265265

266266

267-
public PaymentApplicationModels.PaymentModeRouteDetails getPosPaymentModeRoutes(Integer amount, String cartId, String pincode, String checkoutMode, Boolean refresh, String cardReference, String orderType, String userDetails) throws IOException {
268-
return this.getPosPaymentModeRoutes(amount, cartId, pincode, checkoutMode, refresh, cardReference, orderType, userDetails, new HashMap<>());
267+
public PaymentApplicationModels.PaymentModeRouteDetails getPosPaymentModeRoutes(Integer amount, String cartId, String pincode, String checkoutMode, Boolean refresh, String cardReference, String orderType, List<String> fulfillmentOption, String userDetails) throws IOException {
268+
return this.getPosPaymentModeRoutes(amount, cartId, pincode, checkoutMode, refresh, cardReference, orderType, fulfillmentOption, userDetails, new HashMap<>());
269269
}
270270

271-
public PaymentApplicationModels.PaymentModeRouteDetails getPosPaymentModeRoutes(Integer amount, String cartId, String pincode, String checkoutMode, Boolean refresh, String cardReference, String orderType, String userDetails, Map<String, String> requestHeaders) throws IOException {
271+
public PaymentApplicationModels.PaymentModeRouteDetails getPosPaymentModeRoutes(Integer amount, String cartId, String pincode, String checkoutMode, Boolean refresh, String cardReference, String orderType, List<String> fulfillmentOption, String userDetails, Map<String, String> requestHeaders) throws IOException {
272272

273273
String fullUrl = relativeUrls.get("getPosPaymentModeRoutes");
274274

275-
Response<PaymentApplicationModels.PaymentModeRouteDetails> response = paymentApplicationApiList.getPosPaymentModeRoutes(fullUrl, amount, cartId, pincode, checkoutMode, refresh, cardReference, orderType, userDetails, requestHeaders).execute();
275+
Response<PaymentApplicationModels.PaymentModeRouteDetails> response = paymentApplicationApiList.getPosPaymentModeRoutes(fullUrl, amount, cartId, pincode, checkoutMode, refresh, cardReference, orderType, fulfillmentOption, userDetails, requestHeaders).execute();
276276
if(!response.isSuccessful()) {
277277
throw new IOException(response.errorBody() != null
278278
? response.errorBody().string() : Fields.UNKNOWN_ERROR);

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.18.0");
29+
.addHeader("x-fp-sdk-version", "3.19.0");
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)