Skip to content

Commit

Permalink
[Auto Generated] 1.3.4-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Oct 3, 2023
1 parent e301f28 commit 12c399e
Show file tree
Hide file tree
Showing 280 changed files with 35,113 additions and 30,419 deletions.
935 changes: 876 additions & 59 deletions 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.3-beta.3'
s.version = '1.3.4-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.3-beta.3"))
headers.append((key: "x-fp-sdk-version", value: "1.3.4-beta.1"))
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 @@ -46,6 +46,8 @@ public extension ApplicationClient.Cart {

public var meta: [String: Any]?

public var paymentExtraIdentifiers: [String: Any]?


public enum CodingKeys: String, CodingKey {

Expand Down Expand Up @@ -87,9 +89,11 @@ public extension ApplicationClient.Cart {

case meta = "meta"

case paymentExtraIdentifiers = "payment_extra_identifiers"

}

public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, extraMeta: [String: Any]? = nil, id: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, orderingStore: Int? = nil, orderType: String? = nil, paymentAutoConfirm: Bool? = nil, paymentIdentifier: String? = nil, paymentMode: String, paymentParams: [String: Any]? = nil, staff: StaffCheckout? = nil) {
public init(addressId: String? = nil, aggregator: String? = nil, billingAddress: [String: Any]? = nil, billingAddressId: String? = nil, callbackUrl: String? = nil, customerDetails: CustomerDetails? = nil, customMeta: [CartCheckoutCustomMeta]? = nil, deliveryAddress: [String: Any]? = nil, extraMeta: [String: Any]? = nil, id: String? = nil, merchantCode: String? = nil, meta: [String: Any]? = nil, orderingStore: Int? = nil, orderType: String? = nil, paymentAutoConfirm: Bool? = nil, paymentExtraIdentifiers: [String: Any]? = nil, paymentIdentifier: String? = nil, paymentMode: String, paymentParams: [String: Any]? = nil, staff: StaffCheckout? = nil) {

self.customMeta = customMeta

Expand Down Expand Up @@ -129,6 +133,8 @@ public extension ApplicationClient.Cart {

self.meta = meta

self.paymentExtraIdentifiers = paymentExtraIdentifiers

}

required public init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -355,6 +361,18 @@ public extension ApplicationClient.Cart {
}



do {
paymentExtraIdentifiers = try container.decode([String: Any].self, forKey: .paymentExtraIdentifiers)

} 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 @@ -455,6 +473,11 @@ public extension ApplicationClient.Cart {
try? container.encodeIfPresent(meta, forKey: .meta)




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


}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public extension ApplicationClient.Cart {

public var name: String?

public var paymentExtraIdentifiers: [String: Any]?


public enum CodingKeys: String, CodingKey {

Expand All @@ -31,9 +33,11 @@ public extension ApplicationClient.Cart {

case name = "name"

case paymentExtraIdentifiers = "payment_extra_identifiers"

}

public init(amount: Double? = nil, mode: String, name: String? = nil, payment: String? = nil, paymentMeta: PaymentMeta) {
public init(amount: Double? = nil, mode: String, name: String? = nil, payment: String? = nil, paymentExtraIdentifiers: [String: Any]? = nil, paymentMeta: PaymentMeta) {

self.paymentMeta = paymentMeta

Expand All @@ -45,6 +49,8 @@ public extension ApplicationClient.Cart {

self.name = name

self.paymentExtraIdentifiers = paymentExtraIdentifiers

}

required public init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -96,6 +102,18 @@ public extension ApplicationClient.Cart {
}



do {
paymentExtraIdentifiers = try container.decode([String: Any].self, forKey: .paymentExtraIdentifiers)

} 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 @@ -126,6 +144,11 @@ public extension ApplicationClient.Cart {
try? container.encodeIfPresent(name, forKey: .name)




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


}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,22 @@ public extension ApplicationClient.Theme {

public var statics: StaticConfig?

public var auth: AuthConfig?

public var palette: PaletteConfig?
public var custom: CustomConfig?


public enum CodingKeys: String, CodingKey {

case statics = "statics"

case auth = "auth"

case palette = "palette"
case custom = "custom"

}

public init(auth: AuthConfig? = nil, palette: PaletteConfig? = nil, statics: StaticConfig? = nil) {
public init(custom: CustomConfig? = nil, statics: StaticConfig? = nil) {

self.statics = statics

self.auth = auth

self.palette = palette
self.custom = custom

}

Expand All @@ -52,19 +46,7 @@ public extension ApplicationClient.Theme {


do {
auth = try container.decode(AuthConfig.self, forKey: .auth)

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

}



do {
palette = try container.decode(PaletteConfig.self, forKey: .palette)
custom = try container.decode(CustomConfig.self, forKey: .custom)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
Expand All @@ -86,12 +68,7 @@ public extension ApplicationClient.Theme {



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




try? container.encodeIfPresent(palette, forKey: .palette)
try? container.encodeIfPresent(custom, forKey: .custom)


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,27 @@ public extension ApplicationClient.Theme {

public var auth: AuthConfig?

public var palette: PaletteConfig?


public enum CodingKeys: String, CodingKey {

case colors = "colors"

case auth = "auth"

case palette = "palette"

}

public init(auth: AuthConfig? = nil, colors: Colors? = nil) {
public init(auth: AuthConfig? = nil, colors: Colors? = nil, palette: PaletteConfig? = nil) {

self.colors = colors

self.auth = auth

self.palette = palette

}

required public init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -56,6 +62,18 @@ public extension ApplicationClient.Theme {
}



do {
palette = try container.decode(PaletteConfig.self, forKey: .palette)

} 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 All @@ -71,6 +89,11 @@ public extension ApplicationClient.Theme {
try? container.encodeIfPresent(auth, forKey: .auth)




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


}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ public extension ApplicationClient.Theme {

public var name: String?

public var globalConfig: GlobalConfig?

public var custom: CustomConfig?
public var globalConfig: [String: Any]?

public var page: [String]?

Expand All @@ -23,20 +21,16 @@ public extension ApplicationClient.Theme {

case globalConfig = "global_config"

case custom = "custom"

case page = "page"

}

public init(custom: CustomConfig? = nil, globalConfig: GlobalConfig? = nil, name: String? = nil, page: [String]? = nil) {
public init(globalConfig: [String: Any]? = nil, name: String? = nil, page: [String]? = nil) {

self.name = name

self.globalConfig = globalConfig

self.custom = custom

self.page = page

}
Expand All @@ -58,19 +52,7 @@ public extension ApplicationClient.Theme {


do {
globalConfig = try container.decode(GlobalConfig.self, forKey: .globalConfig)

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

}



do {
custom = try container.decode(CustomConfig.self, forKey: .custom)
globalConfig = try container.decode([String: Any].self, forKey: .globalConfig)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
Expand Down Expand Up @@ -109,11 +91,6 @@ public extension ApplicationClient.Theme {



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




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


Expand Down
Loading

0 comments on commit 12c399e

Please sign in to comment.