Skip to content

Commit

Permalink
[Auto Generated] 1.4.8-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Jun 26, 2024
1 parent 4ede5ce commit 49159b9
Show file tree
Hide file tree
Showing 17 changed files with 243 additions and 37 deletions.
111 changes: 104 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CHANGE LOG (1.4.8-beta.2) - v1.9.4-prerelease-v2
# CHANGE LOG (1.4.8-beta.3) - v1.9.4-prerelease-v3

## Application Client

Expand Down Expand Up @@ -214,6 +214,12 @@
- [Deleted] Possible nullable value from <code>true</code> from property <code>media[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200


#### getSupportInformation

- ##### What's New
- [Added] property <code>contact.phone.phone[].phoneType</code> of schema <code>PhoneProperties</code> in response with status code 200


#### getPage

- ##### What's Deprecated
Expand Down Expand Up @@ -293,15 +299,23 @@
#### getOrders

- ##### What's New
- [Added] property <code>items[].shipments[].gstinCode</code> of schema <code>Shipments</code> in response with status code 200
- [Added] property <code>items[].meta</code> of schema <code>OrderSchema</code> in response with status code 200


#### getOrderById

- ##### What's New
- [Added] property <code>order.shipments[].gstinCode</code> of schema <code>Shipments</code> in response with status code 200
- [Added] property <code>order.meta</code> of schema <code>OrderSchema</code> in response with status code 200


#### getShipmentById

- ##### What's New
- [Added] property <code>shipment.gstinCode</code> of schema <code>Shipments</code> in response with status code 200


### Payment


Expand Down Expand Up @@ -1106,6 +1120,21 @@
- [Deleted] Possible nullable value from <code>true</code> from property <code>items[].brand.action.popup.type</code> of schema <code>PageType</code> in response with status code 200


#### getAppInventory

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

- [Added] <code>query</code> parameter <code>qtyLt</code> (type: <code>integer</code>)

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

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

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



#### getAppicationProducts

- ##### What's Deprecated
Expand Down Expand Up @@ -1379,6 +1408,19 @@
- [Deleted] Possible nullable value from <code>true</code> from property <code>media[].action.popup.type</code> of schema <code>PageType</code> in response with status code 200


#### getSupportInformation

- ##### What's New
- [Added] property <code>contact.phone.phone[].phoneType</code> of schema <code>PhoneProperties</code> in response with status code 200


#### updateSupportInformation

- ##### What's New
- [Added] property <code>contact.phone.phone[].phoneType</code> of schema <code>PhoneProperties</code> in request body
- [Added] property <code>contact.phone.phone[].phoneType</code> of schema <code>PhoneProperties</code> in response with status code 200


#### getBlogBySlug

- ##### What's New
Expand Down Expand Up @@ -1555,9 +1597,11 @@
#### paymentProcess

- ##### What's New
- [Added] property <code>data.invoiceBillingItems</code> of schema <code>PaymentProcessPayload</code> in request body
- [Added] Response with status 400

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>data.invoiceNumber</code> of schema <code>PaymentProcessPayload</code> in request body
- [Breaking] [Deleted] Response with status 4XX

- ##### What's Changed
Expand Down Expand Up @@ -1988,6 +2032,19 @@



#### getZones

- ##### What's New
- [Breaking] [Deleted] <code>query</code> parameter <code>country</code> (type: <code>string</code>),
[Added] <code>query</code> parameter <code>countryIsoCode</code> (type: <code>string</code>)


#### createCourierPartnerAccount

- ##### What's Deprecated
- [Deleted] Required status from property <code>account_id</code> in request body


#### getCourierPartnerAccounts

- ##### What's New
Expand Down Expand Up @@ -2191,6 +2248,36 @@
- [Added] property <code>shipmentRequestData</code> of schema <code>CreateOrderAPI</code> in request body


#### getShipments

- ##### What's New
- [Added] property <code>items[].isLapaEnabled</code> of schema <code>ShipmentItem</code> in response with status code 200


#### getShipmentById

- ##### What's New
- [Added] property <code>shipments[].isLapaEnabled</code> of schema <code>PlatformShipment</code> in response with status code 200


#### getOrderById

- ##### What's New
- [Added] property <code>shipments[].isLapaEnabled</code> of schema <code>PlatformShipment</code> in response with status code 200


#### getOrders

- ##### What's New
- [Added] property <code>items[].shipments[].isLapaEnabled</code> of schema <code>PlatformShipment</code> in response with status code 200


#### getApplicationShipments

- ##### What's New
- [Added] property <code>items[].isLapaEnabled</code> of schema <code>ShipmentItem</code> in response with status code 200


### Payment


Expand Down Expand Up @@ -2266,6 +2353,16 @@



### User



#### createUserSession

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>maxAge</code> of schema <code>CreateUserSessionRequestSchema</code> in request body


### Webhook


Expand Down Expand Up @@ -2301,7 +2398,7 @@
#### downloadDeliveryReport

- ##### What's New
- [Breaking] [Added] Required status to properties <code>search_text</code>, <code>end_date</code>, <code>start_date</code>, <code>subscriber_ids</code>, <code>status</code>, <code>event</code> in request body
- [Breaking] [Added] Required status to properties <code>end_date</code>, <code>start_date</code> in request body


#### pingWebhook
Expand All @@ -2325,14 +2422,14 @@
#### getDeliveryReports

- ##### What's New
- [Breaking] [Added] Required status to properties <code>search_text</code>, <code>end_date</code>, <code>start_date</code>, <code>subscriber_ids</code>, <code>status</code>, <code>event</code> in request body
- [Breaking] [Added] Required status to properties <code>end_date</code>, <code>start_date</code> in request body


#### registerSubscriberToEventV2

- ##### What's New
- [Breaking] [Added] Type <code>object</code> to property <code></code> of schema <code>SubscriberConfigPostRequestV2</code> in request body
- [Breaking] [Added] Required status to properties <code>provider</code>, <code>association</code>, <code>status</code>, <code>email_id</code> in request body
- [Breaking] [Added] Required status to properties <code>provider</code>, <code>association</code>, <code>status</code>, <code>email_id</code>, <code>name</code>, <code>events</code> in request body

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>id</code> of schema <code>SubscriberConfigRequestV2</code> in request body
Expand All @@ -2343,7 +2440,7 @@

- ##### What's New
- [Breaking] [Added] Type <code>object</code> to property <code></code> of schema <code>SubscriberConfigUpdateRequestV2</code> in request body
- [Breaking] [Added] Required status to properties <code>id</code>, <code>provider</code>, <code>association</code>, <code>status</code>, <code>email_id</code> in request body
- [Breaking] [Added] Required status to properties <code>id</code>, <code>provider</code>, <code>status</code> in request body

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>association.companyId</code> of schema <code>Association</code> in request body
Expand All @@ -2353,7 +2450,7 @@

- ##### What's New
- [Breaking] [Added] Type <code>object</code> to property <code></code> of schema <code>SubscriberConfigPost</code> in request body
- [Breaking] [Added] Required status to properties <code>webhook_url</code>, <code>association</code>, <code>status</code>, <code>email_id</code>, <code>event_id</code> in request body
- [Breaking] [Added] Required status to properties <code>webhook_url</code>, <code>association</code>, <code>status</code>, <code>email_id</code>, <code>event_id</code>, <code>name</code> in request body

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>id</code> of schema <code>SubscriberConfig</code> in request body
Expand All @@ -2364,7 +2461,7 @@

- ##### What's New
- [Breaking] [Added] Type <code>object</code> to property <code></code> of schema <code>SubscriberConfigUpdate</code> in request body
- [Breaking] [Added] Required status to properties <code>id</code>, <code>webhook_url</code>, <code>association</code>, <code>status</code>, <code>email_id</code>, <code>event_id</code> in request body
- [Breaking] [Added] Required status to properties <code>id</code>, <code>event_id</code> in request body

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>association.companyId</code> of schema <code>Association</code> in request body
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Get started with the Kotlin Development SDK for Fynd Platform

# Usage

1. Add the dependency in your app build.gradle `implementation 'com.github.gofynd:fdk-client-kotlin:1.4.8-beta.2'` in your app build.gradle
1. Add the dependency in your app build.gradle `implementation 'com.github.gofynd:fdk-client-kotlin:1.4.8-beta.3'` in your app build.gradle
2. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android {
minSdkVersion 21
targetSdkVersion 31
versionCode 2
versionName "1.4.8-beta.2"
versionName "1.4.8-beta.3"
multiDexEnabled true

vectorDrawables.useSupportLibrary = true
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/sdk/application/content/ContentModels.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,10 @@ data class PhoneProperties(
var code: String?=null,

@SerializedName("number")
var number: String?=null
var number: String?=null,

@SerializedName("phone_type")
var phoneType: String?=null

): Parcelable {

Expand All @@ -2235,6 +2238,8 @@ data class PhoneProperties(





}


Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/sdk/application/order/OrderModels.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,9 @@ data class Shipments(
@SerializedName("order_type")
var orderType: String?=null,

@SerializedName("gstin_code")
var gstinCode: String?=null,

@SerializedName("show_download_invoice")
var showDownloadInvoice: Boolean?=null,

Expand Down Expand Up @@ -1614,6 +1617,8 @@ data class Shipments(








Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sdk/common/AccessTokenInterceptor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AccessTokenInterceptor(
val builder = original.newBuilder().apply {
header("User-Agent", platformConfig?.userAgent ?: "")
header("Authorization", "Bearer ${platformConfig?.oauthClient?.token?.token}")
header("x-fp-sdk-version", "1.4.8-beta.2")
header("x-fp-sdk-version", "1.4.8-beta.3")
header("x-currency-code", platformConfig?.currencyCode ?: "INR")
platformConfig?.locationDetail?.let {
header("x-location-detail", HttpClient.gson.toJson(it))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ApplicationHeaderInterceptor(
header("x-location-detail", HttpClient.gson.toJson(it))
}
header("x-currency-code", currencyCode)
header("x-fp-sdk-version", "1.4.8-beta.2")
header("x-fp-sdk-version", "1.4.8-beta.3")
val bearerToken =
Base64.encodeToString(
"$applicationId:$applicationToken".toByteArray(),
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sdk/common/PublicHeaderInterceptor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PublicHeaderInterceptor(
val original = chain.request()

val builder = original.newBuilder()
.header("x-fp-sdk-version", "1.4.8-beta.2")
.header("x-fp-sdk-version", "1.4.8-beta.3")
publicConfig?.extraHeaders?.let {
for ((key, value) in it) {
builder.header(key,value)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sdk/platform/catalog/CatalogApiList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ interface CatalogApiList {
: Response<DepartmentResponse>

@GET ("/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/inventory/")
suspend fun getAppInventory(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Query("item_ids") itemIds: ArrayList<Int>?, @Query("store_ids") storeIds: ArrayList<Int>?, @Query("brand_ids") brandIds: ArrayList<Int>?, @Query("seller_identifiers") sellerIdentifiers: ArrayList<String>?, @Query("timestamp") timestamp: String?, @Query("page_size") pageSize: Int?, @Query("page_id") pageId: String?)
suspend fun getAppInventory(@Path("company_id") companyId: String, @Path("application_id") applicationId: String, @Query("item_ids") itemIds: ArrayList<Int>?, @Query("store_ids") storeIds: ArrayList<Int>?, @Query("brand_ids") brandIds: ArrayList<Int>?, @Query("seller_identifiers") sellerIdentifiers: ArrayList<String>?, @Query("timestamp") timestamp: String?, @Query("page_size") pageSize: Int?, @Query("page_id") pageId: String?, @Query("qty_gt") qtyGt: Int?, @Query("qty_lt") qtyLt: Int?, @Query("qty_type") qtyType: String?, @Query("from_date") fromDate: String?, @Query("to_date") toDate: String?)
: Response<InventoryStockResponse>

@GET ("/service/platform/catalog/v1.0/company/{company_id}/application/{application_id}/locations")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2422,10 +2422,10 @@ inner class ApplicationClient(val applicationId:String,val config: PlatformConfi
}


suspend fun getAppInventory(itemIds: ArrayList<Int>?=null, storeIds: ArrayList<Int>?=null, brandIds: ArrayList<Int>?=null, sellerIdentifiers: ArrayList<String>?=null, timestamp: String?=null, pageSize: Int?=null, pageId: String?=null)
suspend fun getAppInventory(itemIds: ArrayList<Int>?=null, storeIds: ArrayList<Int>?=null, brandIds: ArrayList<Int>?=null, sellerIdentifiers: ArrayList<String>?=null, timestamp: String?=null, pageSize: Int?=null, pageId: String?=null, qtyGt: Int?=null, qtyLt: Int?=null, qtyType: String?=null, fromDate: String?=null, toDate: String?=null)
: Response<InventoryStockResponse>? {
return if (config.oauthClient.isAccessTokenValid()) {
catalogApiList?.getAppInventory(companyId = config.companyId , applicationId = applicationId , itemIds = itemIds, storeIds = storeIds, brandIds = brandIds, sellerIdentifiers = sellerIdentifiers, timestamp = timestamp, pageSize = pageSize, pageId = pageId )
catalogApiList?.getAppInventory(companyId = config.companyId , applicationId = applicationId , itemIds = itemIds, storeIds = storeIds, brandIds = brandIds, sellerIdentifiers = sellerIdentifiers, timestamp = timestamp, pageSize = pageSize, pageId = pageId, qtyGt = qtyGt, qtyLt = qtyLt, qtyType = qtyType, fromDate = fromDate, toDate = toDate )
} else {
null
}
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/sdk/platform/content/ContentModels.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3567,7 +3567,10 @@ data class PhoneProperties(
var code: String?=null,

@SerializedName("number")
var number: String?=null
var number: String?=null,

@SerializedName("phone_type")
var phoneType: String?=null

): Parcelable {

Expand All @@ -3579,6 +3582,8 @@ data class PhoneProperties(





}


Expand Down
Loading

0 comments on commit 49159b9

Please sign in to comment.