Skip to content

Commit

Permalink
[Auto Generated] 1.3.5-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Oct 11, 2023
1 parent 9fb74d7 commit 9e1157e
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 50 deletions.
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
# CHANGE LOG (1.3.5-beta.2) - v1.8.3-prerelease-v2
# CHANGE LOG (1.3.5-beta.1) - v1.8.4-prerelease-v1

## Platform Client



### Catalog



#### getProductBulkUploadHistory

- ##### What's New
- [Added] property `items[]` of schema `ProductBulkRequestList` in response with status code 200

- ##### What's Deprecated
- [Deleted] properties `items.cancelled`, `items.failed`, `items.stage`, `items.succeed`, `items.template`, `items.total`, `items.cancelledRecords`, `items.companyId`, `items.createdBy`, `items.createdOn`, `items.failedRecords`, `items.filePath`, `items.isActive`, `items.modifiedBy`, `items.modifiedOn`, `items.templateTag` in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] Type from `object` to `array` of property `items` of schema `ProductBulkRequest` in response with status code 200


# CHANGE LOG (1.3.4) - fp-v1.8.3

## Application Client

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.3.5-beta.2'` in your app build.gradle
1. Add the dependency in your app build.gradle `implementation 'com.github.gofynd:fdk-client-kotlin:1.3.5-beta.1'` 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.3.5-beta.2"
versionName "1.3.5-beta.1"
multiDexEnabled true

vectorDrawables.useSupportLibrary = true
Expand Down
84 changes: 43 additions & 41 deletions documentation/platform/CATALOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11329,46 +11329,48 @@ List of bulk product upload jobs. See `BulkRequestGetSchema` for details

```json
{
"items": {
"cancelled": 0,
"cancelled_records": [],
"company_id": 61,
"created_by": {
"full_name": "Anuja Yadav",
"user_id": "23218433",
"username": "yadavanuja039_gmail_com_82948"
},
"created_on": "2021-03-12T08:11:06.848000Z",
"failed": 0,
"failed_records": [],
"file_path": "https://hdn-1.fynd.com/company/61/self/documents/product-import/free/original/mkX5ApRmw-sample_bulk_products_footwear.xlsx",
"id": "604b221a73bfa20001cb00e8",
"is_active": true,
"modified_by": {
"user_id": "0",
"username": "Silverbolt"
},
"modified_on": "2021-03-12T08:11:08.646000Z",
"stage": "completed",
"succeed": 1,
"template": {
"banner": "https://hdn-1.fynd.com/seller/pictures/landscape-banner/original/nFPtXR_Beauty_&_Personal_Care_L.jpgf30455a5-d265-4382-b513-65afb9240320/nFPtXR_Beauty_and_Personal_Care_L.jpg",
"departments": [
"men",
"women",
"kids",
"fashion"
],
"description": "Footwear is a garment worn on the feet to protect against environmental adversities like heat or ground textures. Example: Sports Shoes",
"is_expirable": true,
"is_physical": true,
"logo": "https://hdn-1.fynd.com/seller/pictures/logo/original/9Y2UEp_ssssss.jpg7359e4c6-4c53-4dbe-a920-ef8ac658afb1/9Y2UEp_ssssss.jpg",
"name": "Footwear",
"slug": "footwear"
},
"template_tag": "footwear",
"total": 1
},
"items": [
{
"cancelled": 0,
"cancelled_records": [],
"company_id": 61,
"created_by": {
"full_name": "Anuja Yadav",
"user_id": "23218433",
"username": "yadavanuja039_gmail_com_82948"
},
"created_on": "2021-03-12T08:11:06.848000Z",
"failed": 0,
"failed_records": [],
"file_path": "https://hdn-1.fynd.com/company/61/self/documents/product-import/free/original/mkX5ApRmw-sample_bulk_products_footwear.xlsx",
"id": "604b221a73bfa20001cb00e8",
"is_active": true,
"modified_by": {
"user_id": "0",
"username": "Silverbolt"
},
"modified_on": "2021-03-12T08:11:08.646000Z",
"stage": "completed",
"succeed": 1,
"template": {
"banner": "https://hdn-1.fynd.com/seller/pictures/landscape-banner/original/nFPtXR_Beauty_&_Personal_Care_L.jpgf30455a5-d265-4382-b513-65afb9240320/nFPtXR_Beauty_and_Personal_Care_L.jpg",
"departments": [
"men",
"women",
"kids",
"fashion"
],
"description": "Footwear is a garment worn on the feet to protect against environmental adversities like heat or ground textures. Example: Sports Shoes",
"is_expirable": true,
"is_physical": true,
"logo": "https://hdn-1.fynd.com/seller/pictures/logo/original/9Y2UEp_ssssss.jpg7359e4c6-4c53-4dbe-a920-ef8ac658afb1/9Y2UEp_ssssss.jpg",
"name": "Footwear",
"slug": "footwear"
},
"template_tag": "footwear",
"total": 1
}
],
"page": {
"current": 1,
"has_next": true,
Expand Down Expand Up @@ -20708,7 +20710,7 @@ Returns a success response

| Properties | Type | Nullable | Description |
| ---------- | ---- | -------- | ----------- |
| items | [ProductBulkRequest](#ProductBulkRequest)? | yes | |
| items | ArrayList<[ProductBulkRequest](#ProductBulkRequest)>? | yes | |
| page | [Page](#Page)? | yes | |

---
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/sdk/common/AccessTokenInterceptor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ 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.3.5-beta.2")
header("x-fp-sdk-version", "1.3.5-beta.1")
header("x-currency-code", platformConfig?.currencyCode ?: "INR")
platformConfig?.locationDetail?.let {
header("X-Location-Detail", HttpClient.gson.toJson(it))
header("x-location-detail", HttpClient.gson.toJson(it))
}
platformConfig?.extraHeaders?.let {
for ((key, value) in it) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class ApplicationHeaderInterceptor(
}
header("Accept-Language", languageCode)
applicationConfig?.locationDetail?.let {
header("X-Location-Detail", HttpClient.gson.toJson(it))
header("x-location-detail", HttpClient.gson.toJson(it))
}
header("x-currency-code", currencyCode)
header("x-fp-sdk-version", "1.3.5-beta.2")
header("x-fp-sdk-version", "1.3.5-beta.1")
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.3.5-beta.2")
.header("x-fp-sdk-version", "1.3.5-beta.1")
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/CatalogModels.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10865,7 +10865,7 @@ data class ProductBulkRequestList(


@SerializedName("items")
var items: ProductBulkRequest?=null,
var items: ArrayList<ProductBulkRequest>?=null,

@SerializedName("page")
var page: Page?=null
Expand Down

0 comments on commit 9e1157e

Please sign in to comment.