Skip to content

Commit

Permalink
[Auto Generated] 1.4.15-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Oct 24, 2024
1 parent 02491d1 commit 81db263
Show file tree
Hide file tree
Showing 8 changed files with 142 additions and 45 deletions.
49 changes: 46 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CHANGE LOG (v1.4.15-beta.1) - 1.9.4
# CHANGE LOG (1.4.15-beta.2) - 1.9.4

## Application Client

Expand Down Expand Up @@ -2051,7 +2051,8 @@
#### updatePriceAdjustment

- ##### What's New
- [Added] properties <code>data.value</code>, <code>data.message</code>, <code>data.restrictions</code>, <code>data.id</code>, <code>data.collection</code>, <code>data.type</code>, <code>data.meta</code>, <code>data.applyExpiry</code>, <code>data.articleLevelDistribution</code>, <code>data.allowedRefund</code>, <code>data.isAuthenticated</code>, <code>data.articleIds</code>, <code>data.cartId</code> in response with status code 200
- [Added] property <code>autoRemove</code> of schema <code>PriceAdjustmentUpdate</code> in request body
- [Added] properties <code>data.value</code>, <code>data.message</code>, <code>data.restrictions</code>, <code>data.id</code>, <code>data.collection</code>, <code>data.type</code>, <code>data.meta</code>, <code>data.applyExpiry</code>, <code>data.articleLevelDistribution</code>, <code>data.allowedRefund</code>, <code>data.isAuthenticated</code>, <code>data.articleIds</code>, <code>data.autoRemove</code>, <code>data.cartId</code> in response with status code 200
- [Added] <code>data.article_ids</code>, <code>data.article_level_distribution</code>, <code>data.cart_id</code>, <code>data.collection</code>, <code>data.is_authenticated</code>, <code>data.message</code>, <code>data.type</code>, <code>data.value</code> made required in response with status code 200

- ##### What's Deprecated
Expand All @@ -2064,7 +2065,8 @@
#### addPriceAdjustment

- ##### What's New
- [Added] properties <code>data.value</code>, <code>data.message</code>, <code>data.restrictions</code>, <code>data.id</code>, <code>data.collection</code>, <code>data.type</code>, <code>data.meta</code>, <code>data.applyExpiry</code>, <code>data.articleLevelDistribution</code>, <code>data.allowedRefund</code>, <code>data.isAuthenticated</code>, <code>data.articleIds</code>, <code>data.cartId</code> in response with status code 201
- [Added] property <code>autoRemove</code> of schema <code>PriceAdjustmentAdd</code> in request body
- [Added] properties <code>data.value</code>, <code>data.message</code>, <code>data.restrictions</code>, <code>data.id</code>, <code>data.collection</code>, <code>data.type</code>, <code>data.meta</code>, <code>data.applyExpiry</code>, <code>data.articleLevelDistribution</code>, <code>data.allowedRefund</code>, <code>data.isAuthenticated</code>, <code>data.articleIds</code>, <code>data.autoRemove</code>, <code>data.cartId</code> in response with status code 201
- [Added] <code>data.article_ids</code>, <code>data.article_level_distribution</code>, <code>data.cart_id</code>, <code>data.collection</code>, <code>data.is_authenticated</code>, <code>data.message</code>, <code>data.type</code>, <code>data.value</code> made required in response with status code 201

- ##### What's Deprecated
Expand All @@ -2074,6 +2076,12 @@
- [Breaking] [Changed] Type from <code>array</code> to <code>object</code> of property <code>data</code> of schema <code>GetPriceAdjustmentResult</code> in response with status code 201


#### getPriceAdjustments

- ##### What's New
- [Added] property <code>data[].autoRemove</code> of schema <code>PriceAdjustment</code> in response with status code 200


#### fetchAndvalidateCartItems

- ##### What's Deprecated
Expand Down Expand Up @@ -5207,8 +5215,43 @@
#### createZone

- ##### What's New
- [Added] property <code>mapping[].regions</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Added] <code>mapping[].regions</code> made required in request body
- [Added] property <code>product</code> of schema <code>CreateZoneData</code> in request body
- [Breaking] [Added] <code>store_ids</code> made required in request body

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>mapping[].pincode</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Deleted] property <code>mapping[].state</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Deleted] property <code>assignmentPreference</code> of schema <code>CreateZoneData</code> in request body


#### updateZoneById

- ##### What's New
- [Added] property <code>mapping[].regions</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Added] <code>mapping[].regions</code> made required in request body

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>mapping[].pincode</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Deleted] property <code>mapping[].state</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Deleted] property <code>assignmentPreference</code> of schema <code>UpdateZoneData</code> in request body


#### getZoneById

- ##### What's New
- [Added] property <code>mapping[].regions</code> of schema <code>ZoneMappingDetailType</code> in response with status code 200

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>mapping[].pincode</code> of schema <code>ZoneMappingType</code> in response with status code 200
- [Breaking] [Deleted] property <code>mapping[].state</code> of schema <code>ZoneMappingType</code> in response with status code 200
- [Breaking] [Deleted] property <code>assignmentPreference</code> of schema <code>GetZoneByIdSchema</code> in response with status code 200
- [Breaking] [Deleted] property <code>storesCount</code> of schema <code>GetZoneByIdSchema</code> in response with status code 200

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


#### getAllStores

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

vectorDrawables.useSupportLibrary = true
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 @@ -20,7 +20,7 @@ class AccessTokenInterceptor(
}

if (!original.headers.names().contains("x-fp-sdk-version")) {
header("x-fp-sdk-version", "v1.4.15-beta.1")
header("x-fp-sdk-version", "1.4.15-beta.2")
}

if (!original.headers.names().contains("x-currency-code")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ApplicationHeaderInterceptor(
header("x-currency-code", currencyCode)
}
if (!original.headers.names().contains("x-fp-sdk-version")) {
header("x-fp-sdk-version", "v1.4.15-beta.1")
header("x-fp-sdk-version", "1.4.15-beta.2")
}
val bearerToken =
Base64.encodeToString(
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", "v1.4.15-beta.1")
.header("x-fp-sdk-version", "1.4.15-beta.2")
publicConfig?.extraHeaders?.let {
for ((key, value) in it) {
builder.header(key,value)
Expand Down
17 changes: 16 additions & 1 deletion src/main/java/com/sdk/platform/cart/CartModels.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2702,6 +2702,9 @@ data class PriceAdjustmentUpdate(
@SerializedName("article_ids")
var articleIds: ArrayList<Article>?=null,

@SerializedName("auto_remove")
var autoRemove: Boolean?=null,

@SerializedName("meta")
var meta: @RawValue HashMap<String,Any>?=null,

Expand Down Expand Up @@ -2735,6 +2738,8 @@ data class PriceAdjustmentUpdate(








Expand Down Expand Up @@ -2784,6 +2789,9 @@ data class PriceAdjustment(
@SerializedName("article_ids")
var articleIds: ArrayList<Article>?=null,

@SerializedName("auto_remove")
var autoRemove: Boolean?=null,

@SerializedName("meta")
var meta: @RawValue HashMap<String,Any>?=null,

Expand Down Expand Up @@ -2817,6 +2825,8 @@ data class PriceAdjustment(








Expand Down Expand Up @@ -2914,7 +2924,10 @@ data class PriceAdjustmentAdd(
var meta: @RawValue HashMap<String,Any>?=null,

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

@SerializedName("auto_remove")
var autoRemove: Boolean?=null

): Parcelable {

Expand Down Expand Up @@ -2943,6 +2956,8 @@ data class PriceAdjustmentAdd(








Expand Down
111 changes: 75 additions & 36 deletions src/main/java/com/sdk/platform/serviceability/ServiceabilityModels.kt
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,33 @@ data class ZoneProductTypes(



}




/*
Model: ZoneMappingDetailType
*/
@Parcelize
data class ZoneMappingDetailType(



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

@SerializedName("regions")
var regions: ArrayList<ZoneMappingRegions>?=null

): Parcelable {







}


Expand All @@ -721,11 +748,44 @@ data class ZoneMappingType(
@SerializedName("country")
var country: String?=null,

@SerializedName("pincode")
var pincode: ArrayList<String>?=null,
@SerializedName("regions")
var regions: ArrayList<String>?=null

): Parcelable {







}




/*
Model: ZoneMappingRegions
*/
@Parcelize
data class ZoneMappingRegions(

@SerializedName("state")
var state: ArrayList<String>?=null


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

@SerializedName("parent_id")
var parentId: ArrayList<String>?=null,

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

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

@SerializedName("uid")
var uid: String?=null

): Parcelable {

Expand All @@ -737,6 +797,10 @@ data class ZoneMappingType(







}


Expand Down Expand Up @@ -778,10 +842,7 @@ data class UpdateZoneData(
var regionType: String?=null,

@SerializedName("mapping")
var mapping: ArrayList<ZoneMappingType>?=null,

@SerializedName("assignment_preference")
var assignmentPreference: String?=null
var mapping: ArrayList<ZoneMappingType>?=null

): Parcelable {

Expand All @@ -804,8 +865,6 @@ data class UpdateZoneData(








Expand Down Expand Up @@ -906,9 +965,6 @@ data class GetZoneDataViewItems(
@SerializedName("mapping")
var mapping: ArrayList<ZoneMappingType>?=null,

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

@SerializedName("stores_count")
var storesCount: Int?=null

Expand All @@ -935,8 +991,6 @@ data class GetZoneDataViewItems(








Expand Down Expand Up @@ -1003,13 +1057,7 @@ data class GetZoneByIdSchema(
var regionType: String?=null,

@SerializedName("mapping")
var mapping: ArrayList<ZoneMappingType>?=null,

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

@SerializedName("stores_count")
var storesCount: Int?=null
var mapping: ArrayList<ZoneMappingDetailType>?=null

): Parcelable {

Expand All @@ -1030,10 +1078,6 @@ data class GetZoneByIdSchema(










Expand Down Expand Up @@ -1070,14 +1114,14 @@ data class CreateZoneData(
@SerializedName("store_ids")
var storeIds: ArrayList<Int>?=null,

@SerializedName("product")
var product: ZoneProductTypes?=null,

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

@SerializedName("mapping")
var mapping: ArrayList<ZoneMappingType>?=null,

@SerializedName("assignment_preference")
var assignmentPreference: String?=null
var mapping: ArrayList<ZoneMappingType>?=null

): Parcelable {

Expand Down Expand Up @@ -1192,10 +1236,7 @@ data class Zone(
var isActive: Boolean?=null,

@SerializedName("store_ids")
var storeIds: ArrayList<Int>?=null,

@SerializedName("assignment_preference")
var assignmentPreference: String?=null
var storeIds: ArrayList<Int>?=null

): Parcelable {

Expand All @@ -1215,8 +1256,6 @@ data class Zone(





}


Expand Down

0 comments on commit 81db263

Please sign in to comment.