Skip to content

Commit

Permalink
[Auto Generated] 1.4.15
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Nov 25, 2024
1 parent 4492944 commit 4091267
Show file tree
Hide file tree
Showing 39 changed files with 8,450 additions and 2,701 deletions.
527 changes: 527 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

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

vectorDrawables.useSupportLibrary = true
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/sdk/application/cart/CartApiList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ interface CartApiList {
: Response<UpdateCartDetailResult>


@PATCH
suspend fun updateCartBreakup(@Url url1: String? , @Query("id") id: String?, @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("buy_now") buyNow: Boolean?, @Query("cart_type") cartType: String?, @Body body: UpdateCartBreakup, @HeaderMap headers: Map<String, String>? = null)
: Response<UpdateCartDetailResult>


@PUT
suspend fun deleteCart(@Url url1: String? , @Query("id") id: String?, @HeaderMap headers: Map<String, String>? = null)
: Response<DeleteCartDetailResult>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class CartDataManagerClass(val config: ApplicationConfig, val unauthorizedAction

_relativeUrls["updateCart"] = "/service/application/cart/v1.0/detail".substring(1)

_relativeUrls["updateCartBreakup"] = "/service/application/cart/v1.0/detail".substring(1)

_relativeUrls["deleteCart"] = "/service/application/cart/v1.0/cart_archive".substring(1)

_relativeUrls["getItemCount"] = "/service/application/cart/v1.0/basic".substring(1)
Expand Down Expand Up @@ -140,6 +142,13 @@ class CartDataManagerClass(val config: ApplicationConfig, val unauthorizedAction



suspend fun updateCartBreakup(id: String?=null,i: Boolean?=null,b: Boolean?=null,buyNow: Boolean?=null,cartType: String?=null,body: UpdateCartBreakup, headers: Map<String, String> = emptyMap()): Response<UpdateCartDetailResult>? {
var fullUrl : String? = _relativeUrls["updateCartBreakup"]

return cartApiList?.updateCartBreakup(fullUrl, id = id, i = i, b = b, buyNow = buyNow, cartType = cartType,body = body,headers = headers)}



suspend fun deleteCart(id: String?=null, headers: Map<String, String> = emptyMap()): Response<DeleteCartDetailResult>? {
var fullUrl : String? = _relativeUrls["deleteCart"]

Expand Down
46 changes: 44 additions & 2 deletions src/main/java/com/sdk/application/cart/CartModels.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2364,6 +2364,28 @@ data class UpdateCartCreation(



}




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



@SerializedName("store_credit")
var storeCredit: Boolean?=null

): Parcelable {





}


Expand Down Expand Up @@ -3705,7 +3727,13 @@ data class CartCheckoutDetailCreation(
var type: String?=null,

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

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

@SerializedName("failure_callback_url")
var failureCallbackUrl: String?=null

): Parcelable {

Expand Down Expand Up @@ -3754,6 +3782,10 @@ data class CartCheckoutDetailCreation(










Expand Down Expand Up @@ -5106,7 +5138,13 @@ data class CartCheckoutDetailV2Creation(
var type: String?=null,

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

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

@SerializedName("failure_callback_url")
var failureCallbackUrl: String?=null

): Parcelable {

Expand Down Expand Up @@ -5157,6 +5195,10 @@ data class CartCheckoutDetailV2Creation(










Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/sdk/application/catalog/CatalogApiList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface CatalogApiList {


@GET
suspend fun getProductStockByIds(@Url url1: String? , @Query("item_id") itemId: String?, @Query("alu") alu: String?, @Query("sku_code") skuCode: String?, @Query("ean") ean: String?, @Query("upc") upc: String?, @HeaderMap headers: Map<String, String>? = null)
suspend fun getProductStockByIds(@Url url1: String? , @Query("item_id") itemId: Int?, @Query("alu") alu: String?, @Query("sku_code") skuCode: String?, @Query("ean") ean: String?, @Query("upc") upc: String?, @HeaderMap headers: Map<String, String>? = null)
: Response<ProductStockStatusResponseSchema>


Expand Down Expand Up @@ -147,7 +147,7 @@ interface CatalogApiList {


@GET
suspend fun getProductBundlesBySlug(@Url url1: String? , @Query("slug") slug: String?, @Query("id") id: String?, @HeaderMap headers: Map<String, String>? = null)
suspend fun getProductBundlesBySlug(@Url url1: String? , @Query("slug") slug: String?, @Query("id") id: Int?, @HeaderMap headers: Map<String, String>? = null)
: Response<ProductBundle>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class CatalogDataManagerClass(val config: ApplicationConfig, val unauthorizedAct



suspend fun getProductStockByIds(itemId: String?=null,alu: String?=null,skuCode: String?=null,ean: String?=null,upc: String?=null, headers: Map<String, String> = emptyMap()): Response<ProductStockStatusResponseSchema>? {
suspend fun getProductStockByIds(itemId: Int?=null,alu: String?=null,skuCode: String?=null,ean: String?=null,upc: String?=null, headers: Map<String, String> = emptyMap()): Response<ProductStockStatusResponseSchema>? {
var fullUrl : String? = _relativeUrls["getProductStockByIds"]

return catalogApiList?.getProductStockByIds(fullUrl, itemId = itemId, alu = alu, skuCode = skuCode, ean = ean, upc = upc,headers = headers)}
Expand Down Expand Up @@ -712,7 +712,7 @@ class CatalogDataManagerClass(val config: ApplicationConfig, val unauthorizedAct



suspend fun getFollowerCountById(collectionType: String,collectionId: String, headers: Map<String, String> = emptyMap()): Response<FollowerCountResponseSchema>? {
suspend fun getFollowerCountById(collectionType: String,collectionId: Int, headers: Map<String, String> = emptyMap()): Response<FollowerCountResponseSchema>? {
var fullUrl : String? = _relativeUrls["getFollowerCountById"]

fullUrl = fullUrl?.replace("{" + "collection_type" +"}",collectionType.toString())
Expand Down Expand Up @@ -898,7 +898,7 @@ class CatalogDataManagerClass(val config: ApplicationConfig, val unauthorizedAct



suspend fun getProductBundlesBySlug(slug: String?=null,id: String?=null, headers: Map<String, String> = emptyMap()): Response<ProductBundle>? {
suspend fun getProductBundlesBySlug(slug: String?=null,id: Int?=null, headers: Map<String, String> = emptyMap()): Response<ProductBundle>? {
var fullUrl : String? = _relativeUrls["getProductBundlesBySlug"]

return catalogApiList?.getProductBundlesBySlug(fullUrl, slug = slug, id = id,headers = headers)}
Expand Down
Loading

0 comments on commit 4091267

Please sign in to comment.