Skip to content

Commit

Permalink
[Auto Generated] 1.4.15-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Oct 24, 2024
1 parent 7fe7269 commit f4e18d1
Show file tree
Hide file tree
Showing 16 changed files with 622 additions and 338 deletions.
49 changes: 46 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CHANGE LOG (v1.4.15-beta.1) - 1.9.4
# CHANGE LOG (1.4.15-beta.2) - 1.9.4

## Application Client

Expand Down Expand Up @@ -2051,7 +2051,8 @@
#### updatePriceAdjustment

- ##### What's New
- [Added] properties <code>data.value</code>, <code>data.message</code>, <code>data.restrictions</code>, <code>data.id</code>, <code>data.collection</code>, <code>data.type</code>, <code>data.meta</code>, <code>data.applyExpiry</code>, <code>data.articleLevelDistribution</code>, <code>data.allowedRefund</code>, <code>data.isAuthenticated</code>, <code>data.articleIds</code>, <code>data.cartId</code> in response with status code 200
- [Added] property <code>autoRemove</code> of schema <code>PriceAdjustmentUpdate</code> in request body
- [Added] properties <code>data.value</code>, <code>data.message</code>, <code>data.restrictions</code>, <code>data.id</code>, <code>data.collection</code>, <code>data.type</code>, <code>data.meta</code>, <code>data.applyExpiry</code>, <code>data.articleLevelDistribution</code>, <code>data.allowedRefund</code>, <code>data.isAuthenticated</code>, <code>data.articleIds</code>, <code>data.autoRemove</code>, <code>data.cartId</code> in response with status code 200
- [Added] <code>data.article_ids</code>, <code>data.article_level_distribution</code>, <code>data.cart_id</code>, <code>data.collection</code>, <code>data.is_authenticated</code>, <code>data.message</code>, <code>data.type</code>, <code>data.value</code> made required in response with status code 200

- ##### What's Deprecated
Expand All @@ -2064,7 +2065,8 @@
#### addPriceAdjustment

- ##### What's New
- [Added] properties <code>data.value</code>, <code>data.message</code>, <code>data.restrictions</code>, <code>data.id</code>, <code>data.collection</code>, <code>data.type</code>, <code>data.meta</code>, <code>data.applyExpiry</code>, <code>data.articleLevelDistribution</code>, <code>data.allowedRefund</code>, <code>data.isAuthenticated</code>, <code>data.articleIds</code>, <code>data.cartId</code> in response with status code 201
- [Added] property <code>autoRemove</code> of schema <code>PriceAdjustmentAdd</code> in request body
- [Added] properties <code>data.value</code>, <code>data.message</code>, <code>data.restrictions</code>, <code>data.id</code>, <code>data.collection</code>, <code>data.type</code>, <code>data.meta</code>, <code>data.applyExpiry</code>, <code>data.articleLevelDistribution</code>, <code>data.allowedRefund</code>, <code>data.isAuthenticated</code>, <code>data.articleIds</code>, <code>data.autoRemove</code>, <code>data.cartId</code> in response with status code 201
- [Added] <code>data.article_ids</code>, <code>data.article_level_distribution</code>, <code>data.cart_id</code>, <code>data.collection</code>, <code>data.is_authenticated</code>, <code>data.message</code>, <code>data.type</code>, <code>data.value</code> made required in response with status code 201

- ##### What's Deprecated
Expand All @@ -2074,6 +2076,12 @@
- [Breaking] [Changed] Type from <code>array</code> to <code>object</code> of property <code>data</code> of schema <code>GetPriceAdjustmentResult</code> in response with status code 201


#### getPriceAdjustments

- ##### What's New
- [Added] property <code>data[].autoRemove</code> of schema <code>PriceAdjustment</code> in response with status code 200


#### fetchAndvalidateCartItems

- ##### What's Deprecated
Expand Down Expand Up @@ -5207,8 +5215,43 @@
#### createZone

- ##### What's New
- [Added] property <code>mapping[].regions</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Added] <code>mapping[].regions</code> made required in request body
- [Added] property <code>product</code> of schema <code>CreateZoneData</code> in request body
- [Breaking] [Added] <code>store_ids</code> made required in request body

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>mapping[].pincode</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Deleted] property <code>mapping[].state</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Deleted] property <code>assignmentPreference</code> of schema <code>CreateZoneData</code> in request body


#### updateZoneById

- ##### What's New
- [Added] property <code>mapping[].regions</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Added] <code>mapping[].regions</code> made required in request body

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>mapping[].pincode</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Deleted] property <code>mapping[].state</code> of schema <code>ZoneMappingType</code> in request body
- [Breaking] [Deleted] property <code>assignmentPreference</code> of schema <code>UpdateZoneData</code> in request body


#### getZoneById

- ##### What's New
- [Added] property <code>mapping[].regions</code> of schema <code>ZoneMappingDetailType</code> in response with status code 200

- ##### What's Deprecated
- [Breaking] [Deleted] property <code>mapping[].pincode</code> of schema <code>ZoneMappingType</code> in response with status code 200
- [Breaking] [Deleted] property <code>mapping[].state</code> of schema <code>ZoneMappingType</code> in response with status code 200
- [Breaking] [Deleted] property <code>assignmentPreference</code> of schema <code>GetZoneByIdSchema</code> in response with status code 200
- [Breaking] [Deleted] property <code>storesCount</code> of schema <code>GetZoneByIdSchema</code> in response with status code 200

- ##### What's Changed
- [Breaking] [Changed] <code>stores_count</code> made optional in response with status code 200


#### getAllStores

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 = 'v1.4.15-beta.1'
s.version = '1.4.15-beta.2'
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: "v1.4.15-beta.1"))
headers.append((key: "x-fp-sdk-version", value: "1.4.15-beta.2"))
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 @@ -40,6 +40,8 @@ public extension PlatformClient.ApplicationClient.Cart {

public var cartId: String

public var autoRemove: Bool?


public enum CodingKeys: String, CodingKey {

Expand Down Expand Up @@ -69,9 +71,11 @@ public extension PlatformClient.ApplicationClient.Cart {

case cartId = "cart_id"

case autoRemove = "auto_remove"

}

public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, cartId: String, collection: Collection, createdBy: String? = nil, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {
public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, autoRemove: Bool? = nil, cartId: String, collection: Collection, createdBy: String? = nil, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {

self.value = value

Expand Down Expand Up @@ -99,6 +103,8 @@ public extension PlatformClient.ApplicationClient.Cart {

self.cartId = cartId

self.autoRemove = autoRemove

}

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




do {
autoRemove = try container.decode(Bool.self, forKey: .autoRemove)

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




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


}

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

public var articleIds: [Article]

public var autoRemove: Bool?

public var meta: [String: Any]?

public var cartId: String
Expand Down Expand Up @@ -65,13 +67,15 @@ public extension PlatformClient.ApplicationClient.Cart {

case articleIds = "article_ids"

case autoRemove = "auto_remove"

case meta = "meta"

case cartId = "cart_id"

}

public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, cartId: String, collection: Collection, id: String? = nil, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {
public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, autoRemove: Bool? = nil, cartId: String, collection: Collection, id: String? = nil, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {

self.value = value

Expand All @@ -95,6 +99,8 @@ public extension PlatformClient.ApplicationClient.Cart {

self.articleIds = articleIds

self.autoRemove = autoRemove

self.meta = meta

self.cartId = cartId
Expand Down Expand Up @@ -188,6 +194,18 @@ public extension PlatformClient.ApplicationClient.Cart {



do {
autoRemove = try container.decode(Bool.self, forKey: .autoRemove)

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

}



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

Expand Down Expand Up @@ -266,6 +284,11 @@ public extension PlatformClient.ApplicationClient.Cart {



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




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


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

public var articleIds: [Article]

public var autoRemove: Bool?

public var meta: [String: Any]?

public var cartId: String
Expand Down Expand Up @@ -65,13 +67,15 @@ public extension PlatformClient.ApplicationClient.Cart {

case articleIds = "article_ids"

case autoRemove = "auto_remove"

case meta = "meta"

case cartId = "cart_id"

}

public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, cartId: String, collection: Collection, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, modifiedBy: String? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {
public init(allowedRefund: Bool? = nil, applyExpiry: String? = nil, articleIds: [Article], articleLevelDistribution: Bool, autoRemove: Bool? = nil, cartId: String, collection: Collection, isAuthenticated: Bool, message: String, meta: [String: Any]? = nil, modifiedBy: String? = nil, restrictions: PriceAdjustmentRestrictions? = nil, type: String, value: Double) {

self.modifiedBy = modifiedBy

Expand All @@ -95,6 +99,8 @@ public extension PlatformClient.ApplicationClient.Cart {

self.articleIds = articleIds

self.autoRemove = autoRemove

self.meta = meta

self.cartId = cartId
Expand Down Expand Up @@ -188,6 +194,18 @@ public extension PlatformClient.ApplicationClient.Cart {



do {
autoRemove = try container.decode(Bool.self, forKey: .autoRemove)

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

}



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

Expand Down Expand Up @@ -266,6 +284,11 @@ public extension PlatformClient.ApplicationClient.Cart {



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




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


Expand Down
Loading

0 comments on commit f4e18d1

Please sign in to comment.