diff --git a/CHANGELOG.md b/CHANGELOG.md index e5ac22e70a..992b10bc98 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/FDKClient.podspec b/FDKClient.podspec index 1a8d9dc358..993f9e7591 100644 --- a/FDKClient.podspec +++ b/FDKClient.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.name = 'FDKClient' - s.version = '1.3.7' + s.version = '1.3.8' s.summary = 'FDK Client SDK for Swift language' s.description = 'FDK Client SDK for Swift language that can be used to make Apps or extensions.' diff --git a/Sources/code/application/ApplicationAPIClient.swift b/Sources/code/application/ApplicationAPIClient.swift index 1dfb6341e6..9ca4c6ea45 100644 --- a/Sources/code/application/ApplicationAPIClient.swift +++ b/Sources/code/application/ApplicationAPIClient.swift @@ -13,7 +13,7 @@ class ApplicationAPIClient { var headers = [ (key: "Authorization", value: "Bearer " + "\(config.applicationId):\(config.applicationToken)".asBase64) ] - headers.append((key: "x-fp-sdk-version", value: "1.3.7")) + headers.append((key: "x-fp-sdk-version", value: "1.3.8")) headers.append(contentsOf: extraHeaders) headers.append(contentsOf: config.extraHeaders) if let userAgent = config.userAgent { diff --git a/Sources/code/platform/PlatformAPIClient.swift b/Sources/code/platform/PlatformAPIClient.swift index 9f136ecf95..5b17650df2 100644 --- a/Sources/code/platform/PlatformAPIClient.swift +++ b/Sources/code/platform/PlatformAPIClient.swift @@ -13,7 +13,7 @@ public class PlatformAPIClient { if let token = token { var finalHeaders = headers finalHeaders.append((key: "Authorization", value: "Bearer " + token.accessToken)) - finalHeaders.append((key: "x-fp-sdk-version", value: "1.3.7")) + finalHeaders.append((key: "x-fp-sdk-version", value: "1.3.8")) finalHeaders.append(contentsOf: config.extraHeaders) if let userAgent = config.userAgent { finalHeaders.append((key: "User-Agent", value: userAgent)) diff --git a/Sources/code/public/PublicAPIClient.swift b/Sources/code/public/PublicAPIClient.swift index 9774c9cb58..76af6b8f70 100644 --- a/Sources/code/public/PublicAPIClient.swift +++ b/Sources/code/public/PublicAPIClient.swift @@ -9,7 +9,7 @@ class PublicAPIClient { responseType: String = "application/json", onResponse: @escaping OnResponse) { var headers = [ - (key: "x-fp-sdk-version", value: "1.3.7") + (key: "x-fp-sdk-version", value: "1.3.8") ] headers.append(contentsOf: extraHeaders) headers.append(contentsOf: config.extraHeaders)