Skip to content

Commit

Permalink
[Auto Generated] 1.4.15-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Dec 13, 2024
1 parent 6d377e8 commit 6f2c5a2
Show file tree
Hide file tree
Showing 133 changed files with 27,627 additions and 25,441 deletions.
10,734 changes: 10,613 additions & 121 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.15-beta.3'` 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.4'` 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.15-beta.3"
versionName "1.4.15-beta.4"
multiDexEnabled true

vectorDrawables.useSupportLibrary = true
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/sdk/application/ApplicationClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import com.sdk.application.communication.*
import com.sdk.application.configuration.*
import com.sdk.application.content.*
import com.sdk.application.filestorage.*
import com.sdk.application.finance.*
import com.sdk.application.lead.*
import com.sdk.application.logistic.*
import com.sdk.application.order.*
Expand Down Expand Up @@ -46,8 +45,6 @@ class ApplicationClient(val config:ApplicationConfig, val unauthorizedAction: ((

val fileStorage by lazy { FileStorageDataManagerClass(config, unauthorizedAction)}

val finance by lazy { FinanceDataManagerClass(config, unauthorizedAction)}

val lead by lazy { LeadDataManagerClass(config, unauthorizedAction)}

val logistic by lazy { LogisticDataManagerClass(config, unauthorizedAction)}
Expand Down
78 changes: 34 additions & 44 deletions src/main/java/com/sdk/application/cart/CartApiList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface CartApiList {

@GET
suspend fun getCart(@Url url1: String? , @Query("id") id: String?, @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("c") c: Boolean?, @Query("assign_card_id") assignCardId: Int?, @Query("area_code") areaCode: String?, @Query("buy_now") buyNow: Boolean?, @Query("order_type") orderType: String?, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResult>
: Response<CartDetailResponse>


@HEAD
Expand All @@ -22,58 +22,58 @@ interface CartApiList {


@POST
suspend fun addItems(@Url url1: String? , @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("area_code") areaCode: String?, @Query("buy_now") buyNow: Boolean?, @Query("id") id: String?, @Query("order_type") orderType: String?, @Body body: AddCartCreation, @HeaderMap headers: Map<String, String>? = null)
: Response<AddCartDetailResult>
suspend fun addItems(@Url url1: String? , @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("area_code") areaCode: String?, @Query("buy_now") buyNow: Boolean?, @Query("id") id: String?, @Query("order_type") orderType: String?, @Body body: AddCartRequest, @HeaderMap headers: Map<String, String>? = null)
: Response<AddCartDetailResponse>


@PUT
suspend fun updateCart(@Url url1: String? , @Query("id") id: String?, @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("area_code") areaCode: String?, @Query("buy_now") buyNow: Boolean?, @Query("cart_type") cartType: String?, @Query("order_type") orderType: String?, @Body body: UpdateCartCreation, @HeaderMap headers: Map<String, String>? = null)
: Response<UpdateCartDetailResult>
suspend fun updateCart(@Url url1: String? , @Query("id") id: String?, @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("area_code") areaCode: String?, @Query("buy_now") buyNow: Boolean?, @Query("cart_type") cartType: String?, @Query("order_type") orderType: String?, @Body body: UpdateCartRequest, @HeaderMap headers: Map<String, String>? = null)
: Response<UpdateCartDetailResponse>


@PUT
suspend fun deleteCart(@Url url1: String? , @Query("id") id: String?, @HeaderMap headers: Map<String, String>? = null)
: Response<DeleteCartDetailResult>
: Response<DeleteCartDetailResponse>


@GET
suspend fun getItemCount(@Url url1: String? , @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @HeaderMap headers: Map<String, String>? = null)
: Response<CartItemCountResult>
: Response<CartItemCountResponse>


@GET
suspend fun getCoupons(@Url url1: String? , @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @Query("slug") slug: String?, @Query("store_id") storeId: String?, @HeaderMap headers: Map<String, String>? = null)
: Response<GetCouponResult>
: Response<GetCouponResponse>


@POST
suspend fun applyCoupon(@Url url1: String? , @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("p") p: Boolean?, @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @Query("cart_type") cartType: String?, @Body body: ApplyCoupon, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResult>
suspend fun applyCoupon(@Url url1: String? , @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("p") p: Boolean?, @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @Query("cart_type") cartType: String?, @Body body: ApplyCouponRequest, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResponse>


@DELETE
suspend fun removeCoupon(@Url url1: String? , @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResult>
: Response<CartDetailResponse>


@GET
suspend fun getBulkDiscountOffers(@Url url1: String? , @Query("item_id") itemId: Int?, @Query("article_id") articleId: String?, @Query("uid") uid: Int?, @Query("slug") slug: String?, @HeaderMap headers: Map<String, String>? = null)
: Response<BulkPriceResult>
: Response<BulkPriceResponse>


@POST
suspend fun applyRewardPoints(@Url url1: String? , @Query("id") id: String?, @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("buy_now") buyNow: Boolean?, @Body body: RewardPointCreation, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResult>
suspend fun applyRewardPoints(@Url url1: String? , @Query("id") id: String?, @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Query("buy_now") buyNow: Boolean?, @Body body: RewardPointRequest, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResponse>


@GET
suspend fun getAddresses(@Url url1: String? , @Query("cart_id") cartId: String?, @Query("buy_now") buyNow: Boolean?, @Query("mobile_no") mobileNo: String?, @Query("checkout_mode") checkoutMode: String?, @Query("tags") tags: String?, @Query("is_default") isDefault: Boolean?, @HeaderMap headers: Map<String, String>? = null)
: Response<GetAddressesResult>
: Response<GetAddressesResponse>


@POST
suspend fun addAddress(@Url url1: String? ,@Body body: Address, @HeaderMap headers: Map<String, String>? = null)
: Response<SaveAddressResult>
: Response<SaveAddressResponse>


@GET
Expand All @@ -83,22 +83,22 @@ interface CartApiList {

@PUT
suspend fun updateAddress(@Url url1: String? ,@Body body: Address, @HeaderMap headers: Map<String, String>? = null)
: Response<UpdateAddressResult>
: Response<UpdateAddressResponse>


@DELETE
suspend fun removeAddress(@Url url1: String? , @HeaderMap headers: Map<String, String>? = null)
: Response<DeleteAddressResult>
: Response<DeleteAddressResponse>


@POST
suspend fun selectAddress(@Url url1: String? , @Query("cart_id") cartId: String?, @Query("buy_now") buyNow: Boolean?, @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Body body: SelectCartAddressCreation, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResult>
suspend fun selectAddress(@Url url1: String? , @Query("cart_id") cartId: String?, @Query("buy_now") buyNow: Boolean?, @Query("i") i: Boolean?, @Query("b") b: Boolean?, @Body body: SelectCartAddressRequest, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResponse>


@PUT
suspend fun selectPaymentMode(@Url url1: String? , @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @Body body: UpdateCartPaymentCreation, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResult>
suspend fun selectPaymentMode(@Url url1: String? , @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @Body body: UpdateCartPaymentRequest, @HeaderMap headers: Map<String, String>? = null)
: Response<CartDetailResponse>


@GET
Expand All @@ -108,37 +108,32 @@ interface CartApiList {

@GET
suspend fun getShipments(@Url url1: String? , @Query("p") p: Boolean?, @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @Query("address_id") addressId: String?, @Query("area_code") areaCode: String?, @Query("order_type") orderType: String?, @HeaderMap headers: Map<String, String>? = null)
: Response<CartShipmentsResult>


@POST
suspend fun checkoutCart(@Url url1: String? , @Query("buy_now") buyNow: Boolean?, @Query("cart_type") cartType: String?, @Body body: CartCheckoutDetailCreation, @HeaderMap headers: Map<String, String>? = null)
: Response<CartCheckoutResult>
: Response<CartShipmentsResponse>


@PUT
suspend fun updateCartMeta(@Url url1: String? , @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @Body body: CartMetaCreation, @HeaderMap headers: Map<String, String>? = null)
: Response<CartMetaResult>
suspend fun updateCartMeta(@Url url1: String? , @Query("id") id: String?, @Query("buy_now") buyNow: Boolean?, @Body body: CartMetaRequest, @HeaderMap headers: Map<String, String>? = null)
: Response<CartMetaResponse>


@POST
suspend fun getCartShareLink(@Url url1: String? ,@Body body: GetShareCartLinkCreation, @HeaderMap headers: Map<String, String>? = null)
: Response<GetShareCartLinkResult>
suspend fun getCartShareLink(@Url url1: String? ,@Body body: GetShareCartLinkRequest, @HeaderMap headers: Map<String, String>? = null)
: Response<GetShareCartLinkResponse>


@GET
suspend fun getCartSharedItems(@Url url1: String? , @HeaderMap headers: Map<String, String>? = null)
: Response<SharedCartResult>
: Response<SharedCartResponse>


@POST
suspend fun updateCartWithSharedItems(@Url url1: String? , @HeaderMap headers: Map<String, String>? = null)
: Response<SharedCartResult>
: Response<SharedCartResponse>


@GET
suspend fun getPromotionOffers(@Url url1: String? , @Query("slug") slug: String?, @Query("page_size") pageSize: Int?, @Query("promotion_group") promotionGroup: String?, @Query("store_id") storeId: Int?, @Query("cart_type") cartType: String?, @Query("sort_by") sortBy: String?, @HeaderMap headers: Map<String, String>? = null)
: Response<PromotionOffersResult>
suspend fun getPromotionOffers(@Url url1: String? , @Query("slug") slug: String?, @Query("page_size") pageSize: Int?, @Query("promotion_group") promotionGroup: String?, @Query("store_id") storeId: Int?, @Query("cart_type") cartType: String?, @HeaderMap headers: Map<String, String>? = null)
: Response<PromotionOffersResponse>


@GET
Expand All @@ -148,16 +143,11 @@ interface CartApiList {

@GET
suspend fun getPromotionPaymentOffers(@Url url1: String? , @Query("id") id: String?, @Query("uid") uid: Int?, @HeaderMap headers: Map<String, String>? = null)
: Response<PromotionPaymentOffersResult>
: Response<PromotionPaymentOffersResponse>


@POST
suspend fun checkoutCartV2(@Url url1: String? , @Query("buy_now") buyNow: Boolean?, @Query("cart_type") cartType: String?, @Body body: CartCheckoutDetailV2Creation, @HeaderMap headers: Map<String, String>? = null)
: Response<CartCheckoutResult>


@GET
suspend fun getPromotions(@Url url1: String? , @Query("page_size") pageSize: Int?, @Query("page_no") pageNo: Int?, @HeaderMap headers: Map<String, String>? = null)
: Response<Promotions>
suspend fun checkoutCartV2(@Url url1: String? , @Query("buy_now") buyNow: Boolean?, @Query("cart_type") cartType: String?, @Body body: CartCheckoutDetailV2Request, @HeaderMap headers: Map<String, String>? = null)
: Response<CartCheckoutResponse>

}
Loading

0 comments on commit 6f2c5a2

Please sign in to comment.