Skip to content

Commit

Permalink
[Auto Generated] 1.3.9-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Nov 24, 2023
1 parent 5ee3139 commit cd2461b
Show file tree
Hide file tree
Showing 27 changed files with 2,493 additions and 73 deletions.
851 changes: 850 additions & 1 deletion CHANGELOG.md

Large diffs are not rendered by default.

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.6-beta.2'
s.version = '1.3.9-beta.1'
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.6-beta.2"))
headers.append((key: "x-fp-sdk-version", value: "1.3.9-beta.1"))
headers.append(contentsOf: extraHeaders)
headers.append(contentsOf: config.extraHeaders)
if let userAgent = config.userAgent {
Expand Down
8 changes: 8 additions & 0 deletions Sources/code/application/Client/CartApplicationClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ extension ApplicationClient {
id: String?,
i: Bool?,
b: Bool?,
c: Bool?,
assignCardId: Int?,
areaCode: String?,
buyNow: Bool?,
Expand Down Expand Up @@ -116,6 +117,13 @@ if let value = b {
}


if let value = c {

xQuery["c"] = value

}


if let value = assignCardId {

xQuery["assign_card_id"] = value
Expand Down
18 changes: 16 additions & 2 deletions Sources/code/application/Client/CatalogApplicationClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,7 @@ if let value = collectionType {
range: Int?,
latitude: Double?,
longitude: Double?,
tags: String?,

onResponse: @escaping (_ response: StoreListingResponse?, _ error: FDKError?) -> Void
) {
Expand Down Expand Up @@ -2139,6 +2140,13 @@ if let value = longitude {
}


if let value = tags {

xQuery["tags"] = value

}





Expand Down Expand Up @@ -2203,6 +2211,10 @@ if let value = longitude {










Expand All @@ -2219,7 +2231,8 @@ if let value = longitude {
city: String?,
range: Int?,
latitude: Double?,
longitude: Double?
longitude: Double?,
tags: String?

) -> Paginator<StoreListingResponse> {
let pageSize = pageSize ?? 20
Expand All @@ -2235,7 +2248,8 @@ if let value = longitude {
city: city,
range: range,
latitude: latitude,
longitude: longitude
longitude: longitude,
tags: tags
) { response, error in
if let response = response {
paginator.hasNext = response.page.hasNext ?? false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ extension ApplicationClient {
id: String?,
i: Bool?,
b: Bool?,
c: Bool?,
assignCardId: Int?,
areaCode: String?,
buyNow: Bool?,
Expand Down Expand Up @@ -114,6 +115,13 @@ if let value = b {
}


if let value = c {

xQuery["c"] = value

}


if let value = assignCardId {

xQuery["assign_card_id"] = value
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@


import Foundation
public extension ApplicationClient.Cart {
/*
Model: CartCommonConfig
Used By: Cart
*/
class CartCommonConfig: Codable {

public var deliveryChargesConfig: DeliveryChargesConfig?


public enum CodingKeys: String, CodingKey {

case deliveryChargesConfig = "delivery_charges_config"

}

public init(deliveryChargesConfig: DeliveryChargesConfig? = nil) {

self.deliveryChargesConfig = deliveryChargesConfig

}

required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)


do {
deliveryChargesConfig = try container.decode(DeliveryChargesConfig.self, forKey: .deliveryChargesConfig)

} 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 {
var container = encoder.container(keyedBy: CodingKeys.self)



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


}

}
}
Loading

0 comments on commit cd2461b

Please sign in to comment.