From a515fb008ce5c9a4bbcd4093397e3422464198ef Mon Sep 17 00:00:00 2001 From: Jigar Dafda Date: Thu, 9 Nov 2023 13:05:15 +0000 Subject: [PATCH] [Auto Generated] 1.3.8 --- CHANGELOG.md | 316 ++++++++++++++++++ README.md | 2 +- build.gradle | 2 +- .../com/sdk/common/AccessTokenInterceptor.kt | 2 +- .../common/ApplicationHeaderInterceptor.kt | 2 +- .../com/sdk/common/PublicHeaderInterceptor.kt | 2 +- 6 files changed, 321 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5ac22e7..992b10bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,319 @@ +# CHANGE LOG (1.3.8) - fp-v1.8.5 + +## Application Client + + + +### Cart + + + +#### getCart + +- ##### What's New + - [Added] `query` parameter `c` (type: `boolean`) + + - [Added] property `items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +#### addItems + +- ##### What's New + - [Added] property `cart.items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `cart.items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +#### updateCart + +- ##### What's New + - [Added] property `cart.items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `cart.items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +#### applyCoupon + +- ##### What's New + - [Added] property `items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 201 + - [Added] property `items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 201 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 201 + - [Breaking] [Deleted] property `items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 201 + + +#### removeCoupon + +- ##### What's New + - [Added] property `items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +#### applyRewardPoints + +- ##### What's New + - [Added] property `items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +#### selectAddress + +- ##### What's New + - [Added] property `items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 201 + - [Added] property `items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 201 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 201 + - [Breaking] [Deleted] property `items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 201 + + +#### selectPaymentMode + +- ##### What's New + - [Added] property `items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +#### getShipments + +- ##### What's New + - [Added] property `shipments[].items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `shipments[].items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `shipments[].items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `shipments[].items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +#### checkoutCart + +- ##### What's New + - [Added] property `cart.items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `cart.items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +#### getCartSharedItems + +- ##### What's New + - [Added] property `cart.items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `cart.items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `cart.items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 404 + - [Added] property `cart.items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 404 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 404 + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 404 + + +#### updateCartWithSharedItems + +- ##### What's New + - [Added] property `cart.items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `cart.items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +#### checkoutCartV2 + +- ##### What's New + - [Added] property `cart.items[].pricePerUnit.base.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + - [Added] property `cart.items[].pricePerUnit.converted.sellingPrice` of schema `ProductPricePerUnit` in response with status code 200 + +- ##### What's Deprecated + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.base.selling` of schema `ProductPrice` in response with status code 200 + - [Breaking] [Deleted] property `cart.items[].pricePerUnit.converted.selling` of schema `ProductPrice` in response with status code 200 + + +### PosCart + + + +#### getCart + +- ##### What's New + - [Added] `query` parameter `c` (type: `boolean`) + + + +## Platform Client + + + +### Cart + + + +#### getAbandonedCartDetails + +- ##### What's New + - [Added] `query` parameter `c` (type: `boolean`) + + + +### Catalog + + + +#### getAppReturnConfiguration + +- ##### What's New + - [Added] method `getAppReturnConfiguration` + + + +#### createAppReturnConfiguration + +- ##### What's New + - [Added] method `createAppReturnConfiguration` + + + +#### updateAppReturnConfiguration + +- ##### What's New + - [Added] method `updateAppReturnConfiguration` + + + +#### deleteAppCategoryReturnConfiguration + +- ##### What's New + - [Added] method `deleteAppCategoryReturnConfiguration` + + + +#### getAppCategoryReturnConfig + +- ##### What's New + - [Added] method `getAppCategoryReturnConfig` + + + +#### createAppCategoryReturnConfiguration + +- ##### What's New + - [Added] method `createAppCategoryReturnConfiguration` + + + +#### updateAppCategoryReturnConfiguration + +- ##### What's New + - [Added] method `updateAppCategoryReturnConfiguration` + + + +### Communication + + + +#### sendOtp + +- ##### What's New + - [Added] property `email.provider` of schema `SendOtpCommsReqEmail` in request body + + +### Order + + + +#### createOrder + +- ##### What's New + - [Added] property `userInfo.primaryEmail` of schema `UserInfo` in request body + - [Added] property `userInfo.primaryMobileNumber` of schema `UserInfo` in request body + +- ##### What's Deprecated + - [Breaking] [Deleted] property `userInfo.email` of schema `UserInfo` in request body + - [Breaking] [Deleted] property `userInfo.mobile` of schema `UserInfo` in request body + +- ##### What's Changed + - [Breaking] [Changed] Required status of property `userInfo.email` in request body + - [Breaking] [Changed] Required status of property `userInfo.mobile` in request body + + +#### getShipments + +- ##### What's Deprecated + - [Deleted] properties `items[].meta.formatted`, `items[].meta.sla`, `items[].meta.tags`, `items[].meta.external`, `items[].meta.timestamp`, `items[].meta.weight`, `items[].meta.sameStoreAvailable`, `items[].meta.isSelfShip`, `items[].meta.isInternational`, `items[].meta.debugInfo`, `items[].meta.shipmentChargeableWeight`, `items[].meta.pdfMedia`, `items[].meta.existingDpList`, `items[].meta.parentDpId`, `items[].meta.shipmentWeight`, `items[].meta.dpOptions`, `items[].meta.assignDpFromSb`, `items[].meta.shippingZone`, `items[].meta.storeInvoiceUpdatedDate`, `items[].meta.activityComment`, `items[].meta.fulfilmentPriorityText`, `items[].meta.shipmentTags`, `items[].meta.ewaybillInfo`, `items[].meta.lockData`, `items[].meta.orderType`, `items[].meta.shipmentVolumetricWeight`, `items[].meta.dpSortKey`, `items[].meta.packagingName`, `items[].meta.autoTriggerDpAssignmentAcf`, `items[].meta.bagWeight` in response with status code 200 + - [Deleted] Required status from property `items[].meta.auto_trigger_dp_assignment_acf` in response with status code 200 + + +#### getShipmentById + +- ##### What's New + - [Added] property `shipments[].invoice.links` of schema `InvoiceInfo` in response with status code 200 + +- ##### What's Deprecated + - [Deleted] properties `shipments[].bags[].meta.giftCard`, `shipments[].bags[].meta.customMessage`, `shipments[].bags[].meta.docketNumber`, `shipments[].bags[].meta.groupId`, `shipments[].bags[].meta.partialCanRet`, `shipments[].bags[].meta.extraMeta`, `shipments[].bags[].meta.b2BPoDetails`, `shipments[].bags[].meta.customJson` in response with status code 200 + + +#### getOrderById + +- ##### What's New + - [Added] property `shipments[].invoice.links` of schema `InvoiceInfo` in response with status code 200 + +- ##### What's Deprecated + - [Deleted] properties `order.meta.comment`, `order.meta.files`, `order.meta.staff`, `order.meta.platformUserDetails`, `order.meta.companyLogo`, `order.meta.currencySymbol`, `order.meta.extraMeta`, `order.meta.transactionData`, `order.meta.billingStaffDetails`, `order.meta.orderingStore`, `order.meta.paymentType`, `order.meta.mongoCartId`, `order.meta.orderChildEntities`, `order.meta.orderType`, `order.meta.orderPlatform`, `order.meta.employeeId`, `order.meta.orderTags`, `order.meta.customerNote`, `order.meta.cartId`, `order.meta.cartObjectId` in response with status code 200 + - [Deleted] properties `shipments[].bags[].meta.giftCard`, `shipments[].bags[].meta.customMessage`, `shipments[].bags[].meta.docketNumber`, `shipments[].bags[].meta.groupId`, `shipments[].bags[].meta.partialCanRet`, `shipments[].bags[].meta.extraMeta`, `shipments[].bags[].meta.b2BPoDetails`, `shipments[].bags[].meta.customJson` in response with status code 200 + + +#### getOrders + +- ##### What's New + - [Added] property `items[].shipments[].invoice.links` of schema `InvoiceInfo` in response with status code 200 + +- ##### What's Deprecated + - [Deleted] properties `items[].shipments[].bags[].meta.giftCard`, `items[].shipments[].bags[].meta.customMessage`, `items[].shipments[].bags[].meta.docketNumber`, `items[].shipments[].bags[].meta.groupId`, `items[].shipments[].bags[].meta.partialCanRet`, `items[].shipments[].bags[].meta.extraMeta`, `items[].shipments[].bags[].meta.b2BPoDetails`, `items[].shipments[].bags[].meta.customJson` in response with status code 200 + + +#### getShipmentBagReasons + +- ##### What's New + - [Added] method `getShipmentBagReasons` + + + +#### getApplicationShipments + +- ##### What's New + - [Added] method `getApplicationShipments` + + + # CHANGE LOG (1.3.7) - fp-v1.8.5 ## Application Client diff --git a/README.md b/README.md index 8cc7567a..e3391c66 100644 --- a/README.md +++ b/README.md @@ -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.7'` in your app build.gradle +1. Add the dependency in your app build.gradle `implementation 'com.github.gofynd:fdk-client-kotlin:1.3.8'` in your app build.gradle 2. Add it in your root build.gradle at the end of repositories: allprojects { repositories { diff --git a/build.gradle b/build.gradle index f50ece42..d52323d5 100644 --- a/build.gradle +++ b/build.gradle @@ -26,7 +26,7 @@ android { minSdkVersion 21 targetSdkVersion 31 versionCode 2 - versionName "1.3.7" + versionName "1.3.8" multiDexEnabled true vectorDrawables.useSupportLibrary = true diff --git a/src/main/java/com/sdk/common/AccessTokenInterceptor.kt b/src/main/java/com/sdk/common/AccessTokenInterceptor.kt index 1d6cc2b1..c9e300b5 100644 --- a/src/main/java/com/sdk/common/AccessTokenInterceptor.kt +++ b/src/main/java/com/sdk/common/AccessTokenInterceptor.kt @@ -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.3.7") + header("x-fp-sdk-version", "1.3.8") header("x-currency-code", platformConfig?.currencyCode ?: "INR") platformConfig?.locationDetail?.let { header("x-location-detail", HttpClient.gson.toJson(it)) diff --git a/src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt b/src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt index 5b2d1521..86bbd198 100644 --- a/src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt +++ b/src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt @@ -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.3.7") + header("x-fp-sdk-version", "1.3.8") val bearerToken = Base64.encodeToString( "$applicationId:$applicationToken".toByteArray(), diff --git a/src/main/java/com/sdk/common/PublicHeaderInterceptor.kt b/src/main/java/com/sdk/common/PublicHeaderInterceptor.kt index 758aa985..228d1405 100644 --- a/src/main/java/com/sdk/common/PublicHeaderInterceptor.kt +++ b/src/main/java/com/sdk/common/PublicHeaderInterceptor.kt @@ -11,7 +11,7 @@ class PublicHeaderInterceptor( val original = chain.request() val builder = original.newBuilder() - .header("x-fp-sdk-version", "1.3.7") + .header("x-fp-sdk-version", "1.3.8") publicConfig?.extraHeaders?.let { for ((key, value) in it) { builder.header(key,value)