Skip to content

Commit

Permalink
[Auto Generated] 1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Jan 21, 2025
1 parent e489fa9 commit 9adcdde
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 11 deletions.
30 changes: 29 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CHANGE LOG (1.6.2) - 2.1.0
# CHANGE LOG (1.6.3) - 2.1.0

## Application Client

Expand Down Expand Up @@ -100,6 +100,34 @@
- [Added] <code>query</code> parameter <code>statusAssignedEndDate</code> (type: <code>string</code>)


- ##### What's Changed
- [Breaking] [Changed] Type from <code>string</code> to <code>object</code> of property <code>items[].user.meta</code> of schema <code>UserDataInfo</code> in response with status code 200


#### getShipmentById

- ##### What's Changed
- [Breaking] [Changed] Type from <code>string</code> to <code>object</code> of property <code>shipments[].user.meta</code> of schema <code>UserDataInfo</code> in response with status code 200


#### getOrderById

- ##### What's Changed
- [Breaking] [Changed] Type from <code>string</code> to <code>object</code> of property <code>shipments[].user.meta</code> of schema <code>UserDataInfo</code> in response with status code 200


#### getOrders

- ##### What's Changed
- [Breaking] [Changed] Type from <code>string</code> to <code>object</code> of property <code>items[].shipments[].user.meta</code> of schema <code>UserDataInfo</code> in response with status code 200
- [Breaking] [Changed] Type from <code>string</code> to <code>object</code> of property <code>items[].userInfo.meta</code> of schema <code>UserDataInfo</code> in response with status code 200


#### getApplicationShipments

- ##### What's Changed
- [Breaking] [Changed] Type from <code>string</code> to <code>object</code> of property <code>items[].user.meta</code> of schema <code>UserDataInfo</code> in response with status code 200


### Payment

Expand Down
2 changes: 1 addition & 1 deletion FDKClient.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand Down
2 changes: 1 addition & 1 deletion Sources/code/application/ApplicationAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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?

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Sources/code/platform/PlatformAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion Sources/code/public/PublicAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9adcdde

Please sign in to comment.