From 9adcdde27bc7845cbde1bcde526d1dc4b5bba156 Mon Sep 17 00:00:00 2001 From: Jigar Dafda Date: Tue, 21 Jan 2025 15:09:26 +0000 Subject: [PATCH] [Auto Generated] 1.6.3 --- CHANGELOG.md | 30 ++++++++++++++++++- FDKClient.podspec | 2 +- .../application/ApplicationAPIClient.swift | 2 +- .../UserDataInfoOrderPlatformModel.swift | 12 ++++---- Sources/code/platform/PlatformAPIClient.swift | 2 +- Sources/code/public/PublicAPIClient.swift | 2 +- 6 files changed, 39 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b19c26bb9..4f54a9d178 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# CHANGE LOG (1.6.2) - 2.1.0 +# CHANGE LOG (1.6.3) - 2.1.0 ## Application Client @@ -100,6 +100,34 @@ - [Added] query parameter statusAssignedEndDate (type: string) +- ##### What's Changed + - [Breaking] [Changed] Type from string to object of property items[].user.meta of schema UserDataInfo in response with status code 200 + + +#### getShipmentById + +- ##### What's Changed + - [Breaking] [Changed] Type from string to object of property shipments[].user.meta of schema UserDataInfo in response with status code 200 + + +#### getOrderById + +- ##### What's Changed + - [Breaking] [Changed] Type from string to object of property shipments[].user.meta of schema UserDataInfo in response with status code 200 + + +#### getOrders + +- ##### What's Changed + - [Breaking] [Changed] Type from string to object of property items[].shipments[].user.meta of schema UserDataInfo in response with status code 200 + - [Breaking] [Changed] Type from string to object of property items[].userInfo.meta of schema UserDataInfo in response with status code 200 + + +#### getApplicationShipments + +- ##### What's Changed + - [Breaking] [Changed] Type from string to object of property items[].user.meta of schema UserDataInfo in response with status code 200 + ### Payment diff --git a/FDKClient.podspec b/FDKClient.podspec index 3d95144e41..7e497d2023 100644 --- a/FDKClient.podspec +++ b/FDKClient.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.name = 'FDKClient' - s.version = '1.6.2' + s.version = '1.6.3' 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 1b4629e605..cf3489e877 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.6.2")) + headers.append((key: "x-fp-sdk-version", value: "1.6.3")) headers.append(contentsOf: config.extraHeaders) if let userAgent = config.userAgent { headers.append((key: "User-Agent", value: userAgent)) diff --git a/Sources/code/platform/Models/Order/UserDataInfoOrderPlatformModel.swift b/Sources/code/platform/Models/Order/UserDataInfoOrderPlatformModel.swift index 19a2834e63..a8a28298c1 100644 --- a/Sources/code/platform/Models/Order/UserDataInfoOrderPlatformModel.swift +++ b/Sources/code/platform/Models/Order/UserDataInfoOrderPlatformModel.swift @@ -28,7 +28,7 @@ public extension PlatformClient.Order { public var email: String? - public var meta: String? + public var meta: [String: Any]? public var isAnonymousUser: Bool? @@ -69,7 +69,7 @@ public extension PlatformClient.Order { } - public init(countryPhoneCode: String? = nil, email: String? = nil, externalCustomerId: String? = nil, firstName: String? = nil, gender: String? = nil, id: Int? = nil, isAnonymousUser: Bool? = nil, lastName: String? = nil, meta: String? = nil, mobile: String? = nil, mongoUserId: String? = nil, name: String? = nil, userOid: String? = nil) { + public init(countryPhoneCode: String? = nil, email: String? = nil, externalCustomerId: String? = nil, firstName: String? = nil, gender: String? = nil, id: Int? = nil, isAnonymousUser: Bool? = nil, lastName: String? = nil, meta: [String: Any]? = nil, mobile: String? = nil, mongoUserId: String? = nil, name: String? = nil, userOid: String? = nil) { self.id = id @@ -200,7 +200,7 @@ public extension PlatformClient.Order { do { - meta = try container.decode(String.self, forKey: .meta) + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) @@ -360,7 +360,7 @@ public extension PlatformClient.ApplicationClient.Order { public var email: String? - public var meta: String? + public var meta: [String: Any]? public var isAnonymousUser: Bool? @@ -401,7 +401,7 @@ public extension PlatformClient.ApplicationClient.Order { } - public init(countryPhoneCode: String? = nil, email: String? = nil, externalCustomerId: String? = nil, firstName: String? = nil, gender: String? = nil, id: Int? = nil, isAnonymousUser: Bool? = nil, lastName: String? = nil, meta: String? = nil, mobile: String? = nil, mongoUserId: String? = nil, name: String? = nil, userOid: String? = nil) { + public init(countryPhoneCode: String? = nil, email: String? = nil, externalCustomerId: String? = nil, firstName: String? = nil, gender: String? = nil, id: Int? = nil, isAnonymousUser: Bool? = nil, lastName: String? = nil, meta: [String: Any]? = nil, mobile: String? = nil, mongoUserId: String? = nil, name: String? = nil, userOid: String? = nil) { self.id = id @@ -532,7 +532,7 @@ public extension PlatformClient.ApplicationClient.Order { do { - meta = try container.decode(String.self, forKey: .meta) + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) diff --git a/Sources/code/platform/PlatformAPIClient.swift b/Sources/code/platform/PlatformAPIClient.swift index dc3985cfd2..83bc119a6d 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 = [(key: String, value: String)]() finalHeaders.append((key: "Authorization", value: "Bearer " + token.accessToken)) - finalHeaders.append((key: "x-fp-sdk-version", value: "1.6.2")) + finalHeaders.append((key: "x-fp-sdk-version", value: "1.6.3")) 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 583a40f523..f66b7641e8 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.6.2") + (key: "x-fp-sdk-version", value: "1.6.3") ] headers.append(contentsOf: extraHeaders) headers.append(contentsOf: config.extraHeaders)