Skip to content

Commit

Permalink
[Auto Generated] 1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Jan 21, 2025
1 parent a328971 commit cb45f0b
Show file tree
Hide file tree
Showing 11 changed files with 175 additions and 13 deletions.
150 changes: 150 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,153 @@
# CHANGE LOG (1.6.2) - 2.1.0

## Application Client



### Cart



#### checkoutCart

- ##### What's New
- [Added] property <code>orderTags</code> of schema <code>CartCheckoutDetailCreation</code> in request body


#### checkoutCartV2

- ##### What's New
- [Added] property <code>orderTags</code> of schema <code>CartCheckoutDetailV2Creation</code> in request body


### Logistic



#### getCountries

- ##### What's New
- [Added] <code>query</code> parameter <code>phoneCode</code> (type: <code>string</code>)



#### getCountry

- ##### What's New
- [Added] Possible nullable value <code>true</code> to property <code>fields.address[].input</code> of schema <code>GetCountryFieldsAddress</code> in response with status code 200
- [Breaking] [Added] Possible values <code>list,textbox</code> to property <code>fields.address[].input</code> of schema <code>GetCountryFieldsAddress</code> in response with status code 200
- [Added] property <code>fields.address[].next</code> of schema <code>GetCountryFieldsAddress</code> in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] <code>fields.address[].input</code> made optional in response with status code 200


## Partner Client



### FileStorage



#### signUrls

- ##### What's New
- [Added] method <code>signUrls</code>



### Webhook



#### fetchSubscribers

- ##### What's New
- [Breaking] [Added] Type <code>object</code> to property <code>items[].association</code> of schema <code>Association</code> in response with status code 200
- [Breaking] [Added] Type <code>object</code> to property <code>items[].authMeta</code> of schema <code>AuthMeta</code> in response with status code 200


## Platform Client



### AuditTrail



#### createAuditLog

- ##### What's New
- [Breaking] [Added] Type <code>object</code> to property <code></code> of schema <code>CreateLogResp</code> in response with status code 200

- ##### What's Deprecated
- [Deleted] Required status to Request body content


### Cart



#### platformCheckoutCart

- ##### What's New
- [Added] property <code>orderTags</code> of schema <code>PlatformCartCheckoutDetailCreation</code> in request body


#### platformCheckoutCartV2

- ##### What's New
- [Added] property <code>orderTags</code> of schema <code>PlatformCartCheckoutDetailV2Creation</code> in request body


### Content



#### createPagePreview

- ##### What's Deprecated
- [Breaking] [Deleted] method <code>createPagePreview</code>



### Order



#### getShipments

- ##### What's New
- [Added] <code>query</code> parameter <code>statusAssigned</code> (type: <code>string</code>)

- [Added] <code>query</code> parameter <code>statusAssignedStartDate</code> (type: <code>string</code>)

- [Added] <code>query</code> parameter <code>statusAssignedEndDate</code> (type: <code>string</code>)



### Payment



#### validateCustomerAndCreditSummary

- ##### What's New
- [Added] method <code>validateCustomerAndCreditSummary</code>



### User



#### createUser

- ##### What's Changed
- [Changed] <code>username</code> made optional in request body


# CHANGE LOG (1.6.1) - 2.1.0

## Application Client
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Get started with the Java Development SDK for Fynd Platform
<dependency>
<groupId>com.github.gofynd</groupId>
<artifactId>fdk-client-java</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.gofynd</groupId>
<artifactId>fynd-client-java</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>

<parent>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ private Request.Builder buildHeaders(Request request, String bearerToken) {
.addHeader("User-Agent", applicationConfig.getUserAgent())
.addHeader("Accept-Language", "en-IN")
.addHeader("Authorization", "Bearer "+bearerToken)
.addHeader("x-fp-sdk-version", "1.6.1");
.addHeader("x-fp-sdk-version", "1.6.2");
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/sdk/partner/AccessTokenInterceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public Response intercept(Chain chain) throws IOException {
okhttp3.Request.Builder builder = original.newBuilder()
.addHeader("Authorization", "Bearer "+ partnerConfig.getPartnerOauthClient().getToken())
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.addHeader("x-fp-sdk-version", "1.6.1");
.addHeader("x-fp-sdk-version", "1.6.2");
if (!partnerConfig.getExtraHeaders().isEmpty()) {
HashMap<String, String> extraHeaders = partnerConfig.getExtraHeaders();
for(Map.Entry<String,String> entry:extraHeaders.entrySet()){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private Request.Builder buildHeaders(Request request, String bearerToken) {
.addHeader("Accept-Language", "en-IN")
.addHeader("Authorization", "Basic "+ bearerToken)
.addHeader("Content-Type","application/x-www-form-urlencoded")
.addHeader("x-fp-sdk-version", "1.6.1");
.addHeader("x-fp-sdk-version", "1.6.2");
}

}
2 changes: 1 addition & 1 deletion src/main/java/com/sdk/platform/AccessTokenInterceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public Response intercept(Chain chain) throws IOException {
okhttp3.Request.Builder builder = original.newBuilder()
.addHeader("Authorization", "Bearer "+ platformConfig.getPlatformOauthClient().getToken())
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.addHeader("x-fp-sdk-version", "1.6.1");
.addHeader("x-fp-sdk-version", "1.6.2");
if (!platformConfig.getExtraHeaders().isEmpty()) {
HashMap<String, String> extraHeaders = platformConfig.getExtraHeaders();
for(Map.Entry<String,String> entry:extraHeaders.entrySet()){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private Request.Builder buildHeaders(Request request, String bearerToken) {
.addHeader("Accept-Language", "en-IN")
.addHeader("Authorization", "Basic "+ bearerToken)
.addHeader("Content-Type","application/x-www-form-urlencoded")
.addHeader("x-fp-sdk-version", "1.6.1");
.addHeader("x-fp-sdk-version", "1.6.2");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ interface OrderPlatformApiList {
Call<OrderPlatformModels.ShipmentBagReasons> getShipmentBagReasons(@Path("company_id") String companyId, @Path("application_id") String applicationId, @Path("shipment_id") String shipmentId, @Path("line_number") Integer lineNumber, @HeaderMap Map<String, String> requestHeaders);

@GET ("/service/platform/order/v1.0/company/{company_id}/shipments-listing")
Call<OrderPlatformModels.ShipmentInternalPlatformViewResponseSchema> getShipments(@Path("company_id") String companyId, @Query("lane") String lane, @Query("bag_status") String bagStatus, @Query("status_override_lane") Boolean statusOverrideLane, @Query("time_to_dispatch") Integer timeToDispatch, @Query("search_type") String searchType, @Query("search_value") String searchValue, @Query("from_date") String fromDate, @Query("to_date") String toDate, @Query("start_date") String startDate, @Query("end_date") String endDate, @Query("dp_ids") String dpIds, @Query("stores") String stores, @Query("sales_channels") String salesChannels, @Query("page_no") Integer pageNo, @Query("page_size") Integer pageSize, @Query("fetch_active_shipment") Boolean fetchActiveShipment, @Query("allow_inactive") Boolean allowInactive, @Query("exclude_locked_shipments") Boolean excludeLockedShipments, @Query("payment_methods") String paymentMethods, @Query("channel_shipment_id") String channelShipmentId, @Query("channel_order_id") String channelOrderId, @Query("custom_meta") String customMeta, @Query("ordering_channel") String orderingChannel, @Query("company_affiliate_tag") String companyAffiliateTag, @Query("my_orders") Boolean myOrders, @Query("platform_user_id") String platformUserId, @Query("sort_type") String sortType, @Query("show_cross_company_data") Boolean showCrossCompanyData, @Query("tags") String tags, @Query("customer_id") String customerId, @Query("order_type") String orderType, @Query("group_entity") String groupEntity, @Query("enforce_date_filter") Boolean enforceDateFilter, @Query("fulfillment_type") String fulfillmentType, @HeaderMap Map<String, String> requestHeaders);
Call<OrderPlatformModels.ShipmentInternalPlatformViewResponseSchema> getShipments(@Path("company_id") String companyId, @Query("lane") String lane, @Query("bag_status") String bagStatus, @Query("status_assigned") String statusAssigned, @Query("status_override_lane") Boolean statusOverrideLane, @Query("time_to_dispatch") Integer timeToDispatch, @Query("search_type") String searchType, @Query("search_value") String searchValue, @Query("from_date") String fromDate, @Query("to_date") String toDate, @Query("start_date") String startDate, @Query("end_date") String endDate, @Query("status_assigned_start_date") String statusAssignedStartDate, @Query("status_assigned_end_date") String statusAssignedEndDate, @Query("dp_ids") String dpIds, @Query("stores") String stores, @Query("sales_channels") String salesChannels, @Query("page_no") Integer pageNo, @Query("page_size") Integer pageSize, @Query("fetch_active_shipment") Boolean fetchActiveShipment, @Query("allow_inactive") Boolean allowInactive, @Query("exclude_locked_shipments") Boolean excludeLockedShipments, @Query("payment_methods") String paymentMethods, @Query("channel_shipment_id") String channelShipmentId, @Query("channel_order_id") String channelOrderId, @Query("custom_meta") String customMeta, @Query("ordering_channel") String orderingChannel, @Query("company_affiliate_tag") String companyAffiliateTag, @Query("my_orders") Boolean myOrders, @Query("platform_user_id") String platformUserId, @Query("sort_type") String sortType, @Query("show_cross_company_data") Boolean showCrossCompanyData, @Query("tags") String tags, @Query("customer_id") String customerId, @Query("order_type") String orderType, @Query("group_entity") String groupEntity, @Query("enforce_date_filter") Boolean enforceDateFilter, @Query("fulfillment_type") String fulfillmentType, @HeaderMap Map<String, String> requestHeaders);

@GET ("/service/platform/order/v1.0/company/{company_id}/shipment-details")
Call<OrderPlatformModels.ShipmentInfoResponseSchema> getShipmentById(@Path("company_id") String companyId, @Query("channel_shipment_id") String channelShipmentId, @Query("shipment_id") String shipmentId, @Query("fetch_active_shipment") Boolean fetchActiveShipment, @Query("allow_inactive") Boolean allowInactive, @HeaderMap Map<String, String> requestHeaders);
Expand Down
20 changes: 16 additions & 4 deletions src/main/java/com/sdk/platform/order/OrderPlatformService.java
Original file line number Diff line number Diff line change
Expand Up @@ -2126,6 +2126,18 @@ public Object updatePaymentInfo(OrderPlatformModels.UpdateShipmentPaymentMode bo


















Expand All @@ -2140,15 +2152,15 @@ public Object updatePaymentInfo(OrderPlatformModels.UpdateShipmentPaymentMode bo



public OrderPlatformModels.ShipmentInternalPlatformViewResponseSchema getShipments(String lane, String bagStatus, Boolean statusOverrideLane, Integer timeToDispatch, String searchType, String searchValue, String fromDate, String toDate, String startDate, String endDate, String dpIds, String stores, String salesChannels, Integer pageNo, Integer pageSize, Boolean fetchActiveShipment, Boolean allowInactive, Boolean excludeLockedShipments, String paymentMethods, String channelShipmentId, String channelOrderId, String customMeta, String orderingChannel, String companyAffiliateTag, Boolean myOrders, String platformUserId, String sortType, Boolean showCrossCompanyData, String tags, String customerId, String orderType, String groupEntity, Boolean enforceDateFilter, String fulfillmentType) throws FDKServerResponseError, FDKException {
return this.getShipments(lane, bagStatus, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, new HashMap<>());
public OrderPlatformModels.ShipmentInternalPlatformViewResponseSchema getShipments(String lane, String bagStatus, String statusAssigned, Boolean statusOverrideLane, Integer timeToDispatch, String searchType, String searchValue, String fromDate, String toDate, String startDate, String endDate, String statusAssignedStartDate, String statusAssignedEndDate, String dpIds, String stores, String salesChannels, Integer pageNo, Integer pageSize, Boolean fetchActiveShipment, Boolean allowInactive, Boolean excludeLockedShipments, String paymentMethods, String channelShipmentId, String channelOrderId, String customMeta, String orderingChannel, String companyAffiliateTag, Boolean myOrders, String platformUserId, String sortType, Boolean showCrossCompanyData, String tags, String customerId, String orderType, String groupEntity, Boolean enforceDateFilter, String fulfillmentType) throws FDKServerResponseError, FDKException {
return this.getShipments(lane, bagStatus, statusAssigned, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, statusAssignedStartDate, statusAssignedEndDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, new HashMap<>());
}

public OrderPlatformModels.ShipmentInternalPlatformViewResponseSchema getShipments(String lane, String bagStatus, Boolean statusOverrideLane, Integer timeToDispatch, String searchType, String searchValue, String fromDate, String toDate, String startDate, String endDate, String dpIds, String stores, String salesChannels, Integer pageNo, Integer pageSize, Boolean fetchActiveShipment, Boolean allowInactive, Boolean excludeLockedShipments, String paymentMethods, String channelShipmentId, String channelOrderId, String customMeta, String orderingChannel, String companyAffiliateTag, Boolean myOrders, String platformUserId, String sortType, Boolean showCrossCompanyData, String tags, String customerId, String orderType, String groupEntity, Boolean enforceDateFilter, String fulfillmentType, Map<String, String> requestHeaders) throws FDKServerResponseError, FDKException {
public OrderPlatformModels.ShipmentInternalPlatformViewResponseSchema getShipments(String lane, String bagStatus, String statusAssigned, Boolean statusOverrideLane, Integer timeToDispatch, String searchType, String searchValue, String fromDate, String toDate, String startDate, String endDate, String statusAssignedStartDate, String statusAssignedEndDate, String dpIds, String stores, String salesChannels, Integer pageNo, Integer pageSize, Boolean fetchActiveShipment, Boolean allowInactive, Boolean excludeLockedShipments, String paymentMethods, String channelShipmentId, String channelOrderId, String customMeta, String orderingChannel, String companyAffiliateTag, Boolean myOrders, String platformUserId, String sortType, Boolean showCrossCompanyData, String tags, String customerId, String orderType, String groupEntity, Boolean enforceDateFilter, String fulfillmentType, Map<String, String> requestHeaders) throws FDKServerResponseError, FDKException {
if (this.platformConfig.getPlatformOauthClient().isAccessTokenValid()) {
Response<OrderPlatformModels.ShipmentInternalPlatformViewResponseSchema> response = null;
try {
response = orderPlatformApiList.getShipments(this.companyId, lane, bagStatus, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, requestHeaders).execute();
response = orderPlatformApiList.getShipments(this.companyId, lane, bagStatus, statusAssigned, statusOverrideLane, timeToDispatch, searchType, searchValue, fromDate, toDate, startDate, endDate, statusAssignedStartDate, statusAssignedEndDate, dpIds, stores, salesChannels, pageNo, pageSize, fetchActiveShipment, allowInactive, excludeLockedShipments, paymentMethods, channelShipmentId, channelOrderId, customMeta, orderingChannel, companyAffiliateTag, myOrders, platformUserId, sortType, showCrossCompanyData, tags, customerId, orderType, groupEntity, enforceDateFilter, fulfillmentType, requestHeaders).execute();
if (!response.isSuccessful()) {
throw new FDKServerResponseError(response.code(),
response.errorBody() != null ? response.errorBody().string() : Fields.UNKNOWN_ERROR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ private Request.Builder buildHeaders(Request request, String bearerToken) {
.addHeader("User-Agent", publicConfig.getUserAgent())
.addHeader("Accept-Language", "en-IN")
.addHeader("Authorization", "Bearer "+bearerToken)
.addHeader("x-fp-sdk-version", "1.6.1");
.addHeader("x-fp-sdk-version", "1.6.2");
}
}

0 comments on commit cb45f0b

Please sign in to comment.