Skip to content

Commit

Permalink
[Auto Generated] 1.3.5-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Oct 17, 2023
1 parent b9bdc56 commit cd6d153
Show file tree
Hide file tree
Showing 14 changed files with 124 additions and 143 deletions.
41 changes: 11 additions & 30 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
# CHANGE LOG (1.3.5-beta.2) - v1.8.4-prerelease-v2

## Application Client



### Cart



#### checkoutCart

- ##### What's Deprecated
- [Deleted] Possible nullable value from `true` from property `id` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `customerDetails` of schema `CartCheckoutDetailRequest` in request body
- [Breaking] [Deleted] Default value from property `callbackUrl` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `callbackUrl` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `orderingStore` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `paymentIdentifier` of schema `CartCheckoutDetailRequest` in request body
- [Deleted] Possible nullable value from `true` from property `paymentParams` of schema `CartCheckoutDetailRequest` in request body

# CHANGE LOG (1.3.5-beta.3) - v1.8.4-prerelease-v3

## Platform Client

Expand All @@ -40,32 +20,33 @@
- [Breaking] [Changed] Type from `object` to `array` of property `items` of schema `ProductBulkRequest` in response with status code 200


### Order
### User



#### createOrder
#### getCustomers

- ##### What's New
- [Added] property `shipments[].orderType` of schema `Shipment` in request body
- [Added] property `items[].externalId` of schema `UserSchema` in response with status code 200


#### getShipmentById
#### searchUsers

- ##### What's New
- [Added] property `shipments[].status.currentShipmentStatus` of schema `ShipmentStatusData` in response with status code 200
- [Added] property `users[].externalId` of schema `UserSchema` in response with status code 200


#### getOrderById
#### createUser

- ##### What's New
- [Added] property `shipments[].status.currentShipmentStatus` of schema `ShipmentStatusData` in response with status code 200
- [Added] property `externalId` of schema `CreateUserRequestSchema` in request body
- [Added] property `user.externalId` of schema `UserSchema` in response with status code 200


#### getOrders
#### updateUser

- ##### What's New
- [Added] property `items[].shipments[].status.currentShipmentStatus` of schema `ShipmentStatusData` in response with status code 200
- [Added] property `user.externalId` of schema `UserSchema` in response with status code 200


# CHANGE LOG (1.3.4) - fp-v1.8.3
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.3.5-beta.2'
s.version = '1.3.5-beta.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.3.5-beta.2"))
headers.append((key: "x-fp-sdk-version", value: "1.3.5-beta.3"))
headers.append(contentsOf: extraHeaders)
headers.append(contentsOf: config.extraHeaders)
if let userAgent = config.userAgent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public extension ApplicationClient.Cart {



try? container.encodeIfPresent(customerDetails, forKey: .customerDetails)
try? container.encode(customerDetails, forKey: .customerDetails)



Expand All @@ -395,7 +395,7 @@ public extension ApplicationClient.Cart {



try? container.encodeIfPresent(id, forKey: .id)
try? container.encode(id, forKey: .id)



Expand All @@ -420,7 +420,7 @@ public extension ApplicationClient.Cart {



try? container.encodeIfPresent(callbackUrl, forKey: .callbackUrl)
try? container.encode(callbackUrl, forKey: .callbackUrl)



Expand All @@ -440,7 +440,7 @@ public extension ApplicationClient.Cart {



try? container.encodeIfPresent(orderingStore, forKey: .orderingStore)
try? container.encode(orderingStore, forKey: .orderingStore)



Expand All @@ -450,7 +450,7 @@ public extension ApplicationClient.Cart {



try? container.encodeIfPresent(paymentIdentifier, forKey: .paymentIdentifier)
try? container.encode(paymentIdentifier, forKey: .paymentIdentifier)



Expand All @@ -460,7 +460,7 @@ public extension ApplicationClient.Cart {



try? container.encodeIfPresent(paymentParams, forKey: .paymentParams)
try? container.encode(paymentParams, forKey: .paymentParams)



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public extension ApplicationClient.Cart {



try? container.encodeIfPresent(email, forKey: .email)
try? container.encode(email, forKey: .email)



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public extension PlatformClient.Lead {

public var updatedAt: String?

public var externalId: String?


public enum CodingKeys: String, CodingKey {

Expand Down Expand Up @@ -79,9 +81,11 @@ public extension PlatformClient.Lead {

case updatedAt = "updated_at"

case externalId = "external_id"

}

public init(accountType: String? = nil, active: Bool? = nil, applicationId: String? = nil, createdAt: String? = nil, dob: String? = nil, emails: [Email]? = nil, firstName: String? = nil, gender: String? = nil, lastName: String? = nil, meta: [String: Any]? = nil, phoneNumbers: [PhoneNumber]? = nil, profilePicUrl: String? = nil, updatedAt: String? = nil, username: String? = nil, userId: String? = nil, id: String? = nil) {
public init(accountType: String? = nil, active: Bool? = nil, applicationId: String? = nil, createdAt: String? = nil, dob: String? = nil, emails: [Email]? = nil, externalId: String? = nil, firstName: String? = nil, gender: String? = nil, lastName: String? = nil, meta: [String: Any]? = nil, phoneNumbers: [PhoneNumber]? = nil, profilePicUrl: String? = nil, updatedAt: String? = nil, username: String? = nil, userId: String? = nil, id: String? = nil) {

self.applicationId = applicationId

Expand Down Expand Up @@ -115,6 +119,8 @@ public extension PlatformClient.Lead {

self.updatedAt = updatedAt

self.externalId = externalId

}

required public init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -312,6 +318,18 @@ public extension PlatformClient.Lead {
}



do {
externalId = try container.decode(String.self, forKey: .externalId)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}


}

public func encode(to encoder: Encoder) throws {
Expand Down Expand Up @@ -397,6 +415,11 @@ public extension PlatformClient.Lead {
try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)




try? container.encodeIfPresent(externalId, forKey: .externalId)


}

}
Expand Down Expand Up @@ -445,6 +468,8 @@ public extension PlatformClient.ApplicationClient.Lead {

public var updatedAt: String?

public var externalId: String?


public enum CodingKeys: String, CodingKey {

Expand Down Expand Up @@ -480,9 +505,11 @@ public extension PlatformClient.ApplicationClient.Lead {

case updatedAt = "updated_at"

case externalId = "external_id"

}

public init(accountType: String? = nil, active: Bool? = nil, applicationId: String? = nil, createdAt: String? = nil, dob: String? = nil, emails: [Email]? = nil, firstName: String? = nil, gender: String? = nil, lastName: String? = nil, meta: [String: Any]? = nil, phoneNumbers: [PhoneNumber]? = nil, profilePicUrl: String? = nil, updatedAt: String? = nil, username: String? = nil, userId: String? = nil, id: String? = nil) {
public init(accountType: String? = nil, active: Bool? = nil, applicationId: String? = nil, createdAt: String? = nil, dob: String? = nil, emails: [Email]? = nil, externalId: String? = nil, firstName: String? = nil, gender: String? = nil, lastName: String? = nil, meta: [String: Any]? = nil, phoneNumbers: [PhoneNumber]? = nil, profilePicUrl: String? = nil, updatedAt: String? = nil, username: String? = nil, userId: String? = nil, id: String? = nil) {

self.applicationId = applicationId

Expand Down Expand Up @@ -516,6 +543,8 @@ public extension PlatformClient.ApplicationClient.Lead {

self.updatedAt = updatedAt

self.externalId = externalId

}

required public init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -713,6 +742,18 @@ public extension PlatformClient.ApplicationClient.Lead {
}



do {
externalId = try container.decode(String.self, forKey: .externalId)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}


}

public func encode(to encoder: Encoder) throws {
Expand Down Expand Up @@ -798,6 +839,11 @@ public extension PlatformClient.ApplicationClient.Lead {
try? container.encodeIfPresent(updatedAt, forKey: .updatedAt)




try? container.encodeIfPresent(externalId, forKey: .externalId)


}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public extension PlatformClient.Order {

public var locationId: Int

public var orderType: String?


public enum CodingKeys: String, CodingKey {

Expand All @@ -41,11 +39,9 @@ public extension PlatformClient.Order {

case locationId = "location_id"

case orderType = "order_type"

}

public init(externalShipmentId: String? = nil, lineItems: [LineItem], locationId: Int, meta: [String: Any]? = nil, orderType: String? = nil, priority: Int? = nil, processingDates: ProcessingDates? = nil) {
public init(externalShipmentId: String? = nil, lineItems: [LineItem], locationId: Int, meta: [String: Any]? = nil, priority: Int? = nil, processingDates: ProcessingDates? = nil) {

self.lineItems = lineItems

Expand All @@ -59,8 +55,6 @@ public extension PlatformClient.Order {

self.locationId = locationId

self.orderType = orderType

}

required public init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -124,18 +118,6 @@ public extension PlatformClient.Order {




do {
orderType = try container.decode(String.self, forKey: .orderType)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}


}

public func encode(to encoder: Encoder) throws {
Expand Down Expand Up @@ -171,11 +153,6 @@ public extension PlatformClient.Order {
try? container.encodeIfPresent(locationId, forKey: .locationId)




try? container.encodeIfPresent(orderType, forKey: .orderType)


}

}
Expand Down Expand Up @@ -204,8 +181,6 @@ public extension PlatformClient.ApplicationClient.Order {

public var locationId: Int

public var orderType: String?


public enum CodingKeys: String, CodingKey {

Expand All @@ -221,11 +196,9 @@ public extension PlatformClient.ApplicationClient.Order {

case locationId = "location_id"

case orderType = "order_type"

}

public init(externalShipmentId: String? = nil, lineItems: [LineItem], locationId: Int, meta: [String: Any]? = nil, orderType: String? = nil, priority: Int? = nil, processingDates: ProcessingDates? = nil) {
public init(externalShipmentId: String? = nil, lineItems: [LineItem], locationId: Int, meta: [String: Any]? = nil, priority: Int? = nil, processingDates: ProcessingDates? = nil) {

self.lineItems = lineItems

Expand All @@ -239,8 +212,6 @@ public extension PlatformClient.ApplicationClient.Order {

self.locationId = locationId

self.orderType = orderType

}

required public init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -304,18 +275,6 @@ public extension PlatformClient.ApplicationClient.Order {




do {
orderType = try container.decode(String.self, forKey: .orderType)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {

}


}

public func encode(to encoder: Encoder) throws {
Expand Down Expand Up @@ -351,11 +310,6 @@ public extension PlatformClient.ApplicationClient.Order {
try? container.encodeIfPresent(locationId, forKey: .locationId)




try? container.encodeIfPresent(orderType, forKey: .orderType)


}

}
Expand Down
Loading

0 comments on commit cd6d153

Please sign in to comment.