diff --git a/FDKClient.podspec b/FDKClient.podspec index 2df352d694..829ac77b01 100644 --- a/FDKClient.podspec +++ b/FDKClient.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.name = 'FDKClient' - s.version = '0.0.301' + s.version = '0.0.302' 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.' diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000000..a37c280478 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version:5.3 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "code", + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "code", + targets: ["code"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "code", + dependencies: []), + .testTarget( + name: "codeTests", + dependencies: ["code"]), + ] +) diff --git a/sdk/application/ApplicationAPIClient.swift b/Sources/application/ApplicationAPIClient.swift similarity index 100% rename from sdk/application/ApplicationAPIClient.swift rename to Sources/application/ApplicationAPIClient.swift diff --git a/sdk/application/ApplicationClient.swift b/Sources/application/ApplicationClient.swift similarity index 99% rename from sdk/application/ApplicationClient.swift rename to Sources/application/ApplicationClient.swift index 106afd8b66..7077a0accb 100644 --- a/sdk/application/ApplicationClient.swift +++ b/Sources/application/ApplicationClient.swift @@ -97,7 +97,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/products/%s/", + url: "/service/application/catalog/v1.0/products/\(slug)/", query: nil, extraHeaders: [], body: nil, @@ -144,7 +144,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/products/%s/sizes/", + url: "/service/application/catalog/v1.0/products/\(slug)/sizes/", query: xQuery, extraHeaders: [], body: nil, @@ -193,7 +193,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/products/%s/sizes/%s/pincode/%s/price/", + url: "/service/application/catalog/v1.0/products/\(slug)/sizes/\(size)/pincode/\(pincode)/price/", query: xQuery, extraHeaders: [], body: nil, @@ -247,7 +247,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/products/%s/sizes/%s/pincode/%s/sellers/", + url: "/service/application/catalog/v1.0/products/\(slug)/sizes/\(size)/pincode/\(pincode)/sellers/", query: xQuery, extraHeaders: [], body: nil, @@ -394,7 +394,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/products/%s/similar/compare/", + url: "/service/application/catalog/v1.0/products/\(slug)/similar/compare/", query: nil, extraHeaders: [], body: nil, @@ -436,7 +436,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/products/%s/similar/compared-frequently/", + url: "/service/application/catalog/v1.0/products/\(slug)/similar/compared-frequently/", query: nil, extraHeaders: [], body: nil, @@ -479,7 +479,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/products/%s/similar/%s/", + url: "/service/application/catalog/v1.0/products/\(slug)/similar/\(similarType)/", query: nil, extraHeaders: [], body: nil, @@ -521,7 +521,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/products/%s/variants/", + url: "/service/application/catalog/v1.0/products/\(slug)/variants/", query: nil, extraHeaders: [], body: nil, @@ -999,7 +999,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/brands/%s/", + url: "/service/application/catalog/v1.0/brands/\(slug)/", query: nil, extraHeaders: [], body: nil, @@ -1087,7 +1087,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/categories/%s/", + url: "/service/application/catalog/v1.0/categories/\(slug)/", query: nil, extraHeaders: [], body: nil, @@ -1439,7 +1439,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/collections/%s/items/", + url: "/service/application/catalog/v1.0/collections/\(slug)/items/", query: xQuery, extraHeaders: [], body: nil, @@ -1549,7 +1549,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/collections/%s/", + url: "/service/application/catalog/v1.0/collections/\(slug)/", query: nil, extraHeaders: [], body: nil, @@ -1601,7 +1601,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/follow/%s/", + url: "/service/application/catalog/v1.0/follow/\(collectionType)/", query: xQuery, extraHeaders: [], body: nil, @@ -1694,7 +1694,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "delete", - url: "/service/application/catalog/v1.0/follow/%s/%s/", + url: "/service/application/catalog/v1.0/follow/\(collectionType)/\(collectionId)/", query: nil, extraHeaders: [], body: nil, @@ -1737,7 +1737,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "post", - url: "/service/application/catalog/v1.0/follow/%s/%s/", + url: "/service/application/catalog/v1.0/follow/\(collectionType)/\(collectionId)/", query: nil, extraHeaders: [], body: nil, @@ -1780,7 +1780,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/catalog/v1.0/follow/%s/%s/count/", + url: "/service/application/catalog/v1.0/follow/\(collectionType)/\(collectionId)/count/", query: nil, extraHeaders: [], body: nil, @@ -2625,7 +2625,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/cart/v1.0/address/%d", + url: "/service/application/cart/v1.0/address/\(id)", query: xQuery, extraHeaders: [], body: nil, @@ -2667,7 +2667,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "put", - url: "/service/application/cart/v1.0/address/%d", + url: "/service/application/cart/v1.0/address/\(id)", query: nil, extraHeaders: [], body: body.dictionary, @@ -2709,7 +2709,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "delete", - url: "/service/application/cart/v1.0/address/%d", + url: "/service/application/cart/v1.0/address/\(id)", query: nil, extraHeaders: [], body: nil, @@ -3113,7 +3113,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/cart/v1.0/share-cart/%s", + url: "/service/application/cart/v1.0/share-cart/\(token)", query: nil, extraHeaders: [], body: nil, @@ -3156,7 +3156,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "post", - url: "/service/application/cart/v1.0/share-cart/%s/%s", + url: "/service/application/cart/v1.0/share-cart/\(token)/\(action)", query: nil, extraHeaders: [], body: nil, @@ -3210,7 +3210,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/lead/v1.0/ticket/%s", + url: "/service/application/lead/v1.0/ticket/\(id)", query: nil, extraHeaders: [], body: nil, @@ -3252,7 +3252,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "post", - url: "/service/application/lead/v1.0/ticket/%s/history", + url: "/service/application/lead/v1.0/ticket/\(ticketId)/history", query: nil, extraHeaders: [], body: body.dictionary, @@ -3335,7 +3335,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/lead/v1.0/form/%s", + url: "/service/application/lead/v1.0/form/\(slug)", query: nil, extraHeaders: [], body: nil, @@ -3377,7 +3377,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "post", - url: "/service/application/lead/v1.0/form/%s/submit", + url: "/service/application/lead/v1.0/form/\(slug)/submit", query: nil, extraHeaders: [], body: body.dictionary, @@ -3419,7 +3419,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/lead/v1.0/video/room/%s/participants", + url: "/service/application/lead/v1.0/video/room/\(uniqueName)/participants", query: nil, extraHeaders: [], body: nil, @@ -3461,7 +3461,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/lead/v1.0/video/room/%s/token", + url: "/service/application/lead/v1.0/video/room/\(uniqueName)/token", query: nil, extraHeaders: [], body: nil, @@ -3556,7 +3556,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/theme/v1.0/%s/preview", + url: "/service/application/theme/v1.0/\(themeId)/preview", query: nil, extraHeaders: [], body: nil, @@ -5077,7 +5077,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/content/v1.0/blogs/%s", + url: "/service/application/content/v1.0/blogs/\(slug)", query: nil, extraHeaders: [], body: nil, @@ -5295,7 +5295,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/content/v1.0/faq/%s", + url: "/service/application/content/v1.0/faq/\(slug)", query: nil, extraHeaders: [], body: nil, @@ -5337,7 +5337,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/content/v1.0/faq/category/%s", + url: "/service/application/content/v1.0/faq/category/\(slug)", query: nil, extraHeaders: [], body: nil, @@ -5379,7 +5379,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/content/v1.0/faq/category/%s/faqs", + url: "/service/application/content/v1.0/faq/category/\(slug)/faqs", query: nil, extraHeaders: [], body: nil, @@ -5597,7 +5597,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/content/v1.0/pages/%s", + url: "/service/application/content/v1.0/pages/\(slug)", query: nil, extraHeaders: [], body: nil, @@ -5868,7 +5868,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/content/v1.0/slideshow/%s", + url: "/service/application/content/v1.0/slideshow/\(slug)", query: nil, extraHeaders: [], body: nil, @@ -6180,7 +6180,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "post", - url: "/service/application/share/v1.0/qr/products/%s/", + url: "/service/application/share/v1.0/qr/products/\(slug)/", query: nil, extraHeaders: [], body: nil, @@ -6222,7 +6222,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "post", - url: "/service/application/share/v1.0/qr/collection/%s/", + url: "/service/application/share/v1.0/qr/collection/\(slug)/", query: nil, extraHeaders: [], body: nil, @@ -6349,7 +6349,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/share/v1.0/links/short-link/%s/", + url: "/service/application/share/v1.0/links/short-link/\(hash)/", query: nil, extraHeaders: [], body: nil, @@ -6391,7 +6391,7 @@ public class ApplicationClient { ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/share/v1.0/links/short-link/%s/original/", + url: "/service/application/share/v1.0/links/short-link/\(hash)/original/", query: nil, extraHeaders: [], body: nil, @@ -6463,7 +6463,7 @@ This operation will return the url for the uploaded file. ApplicationAPIClient.execute( config: config, method: "post", - url: "/service/application/assets/v1.0/namespaces/%s/upload/start/", + url: "/service/application/assets/v1.0/namespaces/\(namespace)/upload/start/", query: nil, extraHeaders: [], body: body.dictionary, @@ -6523,7 +6523,7 @@ This operation will return the url for the uploaded file. ApplicationAPIClient.execute( config: config, method: "post", - url: "/service/application/assets/v1.0/namespaces/%s/upload/complete/", + url: "/service/application/assets/v1.0/namespaces/\(namespace)/upload/complete/", query: nil, extraHeaders: [], body: body.dictionary, @@ -6969,7 +6969,7 @@ This operation will return the url for the uploaded file. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/configuration/v1.0/currency/%s", + url: "/service/application/configuration/v1.0/currency/\(id)", query: nil, extraHeaders: [], body: nil, @@ -8185,7 +8185,7 @@ This operation will return the url for the uploaded file. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/order/v1.0/orders/%s", + url: "/service/application/order/v1.0/orders/\(orderId)", query: nil, extraHeaders: [], body: nil, @@ -8227,7 +8227,7 @@ This operation will return the url for the uploaded file. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/order/v1.0/orders/shipments/%s", + url: "/service/application/order/v1.0/orders/shipments/\(shipmentId)", query: nil, extraHeaders: [], body: nil, @@ -8269,7 +8269,7 @@ This operation will return the url for the uploaded file. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/order/v1.0/orders/shipments/%s/reasons", + url: "/service/application/order/v1.0/orders/shipments/\(shipmentId)/reasons", query: nil, extraHeaders: [], body: nil, @@ -8311,7 +8311,7 @@ This operation will return the url for the uploaded file. ApplicationAPIClient.execute( config: config, method: "put", - url: "/service/application/order/v1.0/orders/shipments/%s/status", + url: "/service/application/order/v1.0/orders/shipments/\(shipmentId)/status", query: nil, extraHeaders: [], body: body.dictionary, @@ -8353,7 +8353,7 @@ This operation will return the url for the uploaded file. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/order/v1.0/orders/shipments/%s/track", + url: "/service/application/order/v1.0/orders/shipments/\(shipmentId)/track", query: nil, extraHeaders: [], body: nil, @@ -8395,7 +8395,7 @@ This operation will return the url for the uploaded file. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/order/v1.0/orders/pos-order/%s", + url: "/service/application/order/v1.0/orders/pos-order/\(orderId)", query: nil, extraHeaders: [], body: nil, @@ -8860,7 +8860,7 @@ The list of points history is paginated. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/feedback/v1.0/abuse/entity/%s/entity-id/%s", + url: "/service/application/feedback/v1.0/abuse/entity/\(entityType)/entityId/\(entityId)", query: xQuery, extraHeaders: [], body: nil, @@ -9099,7 +9099,7 @@ The list of points history is paginated. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/feedback/v1.0/attributes/%s", + url: "/service/application/feedback/v1.0/attributes/\(slug)", query: nil, extraHeaders: [], body: nil, @@ -9141,7 +9141,7 @@ The list of points history is paginated. ApplicationAPIClient.execute( config: config, method: "put", - url: "/service/application/feedback/v1.0/attributes/%s", + url: "/service/application/feedback/v1.0/attributes/\(slug)", query: nil, extraHeaders: [], body: body.dictionary, @@ -9290,7 +9290,7 @@ The list of points history is paginated. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/feedback/v1.0/comment/entity/%s", + url: "/service/application/feedback/v1.0/comment/entity/\(entityType)", query: xQuery, extraHeaders: [], body: nil, @@ -9401,7 +9401,7 @@ The list of points history is paginated. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/feedback/v1.0/config/entity/%s/entity-id/%s", + url: "/service/application/feedback/v1.0/config/entity/\(entityType)/entityId/\(entityId)", query: nil, extraHeaders: [], body: nil, @@ -9582,7 +9582,7 @@ The list of points history is paginated. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/feedback/v1.0/media/entity/%s/entity-id/%s", + url: "/service/application/feedback/v1.0/media/entity/\(entityType)/entityId/\(entityId)", query: xQuery, extraHeaders: [], body: nil, @@ -9703,7 +9703,7 @@ It gives following response data: review count, rating average. review metrics / ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/feedback/v1.0/rating/summary/entity/%s/entity-id/%s", + url: "/service/application/feedback/v1.0/rating/summary/entity/\(entityType)/entityId/\(entityId)", query: xQuery, extraHeaders: [], body: nil, @@ -9937,7 +9937,7 @@ attributes rating, entity rating, title, description, media resources and templa ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/feedback/v1.0/review/entity/%s/entity-id/%s", + url: "/service/application/feedback/v1.0/review/entity/\(entityType)/entityId/\(entityId)", query: xQuery, extraHeaders: [], body: nil, @@ -10237,7 +10237,7 @@ tags, text, type, choices for MCQ type questions, maximum length of answer. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/feedback/v1.0/template/qna/entity/%s/entity-id/%s", + url: "/service/application/feedback/v1.0/template/qna/entity/\(entityType)/entityId/\(entityId)", query: xQuery, extraHeaders: [], body: nil, @@ -11164,7 +11164,7 @@ tags, text, type, choices for MCQ type questions, maximum length of answer. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/pos/cart/v1.0/address/%d", + url: "/service/application/pos/cart/v1.0/address/\(id)", query: xQuery, extraHeaders: [], body: nil, @@ -11206,7 +11206,7 @@ tags, text, type, choices for MCQ type questions, maximum length of answer. ApplicationAPIClient.execute( config: config, method: "put", - url: "/service/application/pos/cart/v1.0/address/%d", + url: "/service/application/pos/cart/v1.0/address/\(id)", query: nil, extraHeaders: [], body: body.dictionary, @@ -11248,7 +11248,7 @@ tags, text, type, choices for MCQ type questions, maximum length of answer. ApplicationAPIClient.execute( config: config, method: "delete", - url: "/service/application/pos/cart/v1.0/address/%d", + url: "/service/application/pos/cart/v1.0/address/\(id)", query: nil, extraHeaders: [], body: nil, @@ -11831,7 +11831,7 @@ tags, text, type, choices for MCQ type questions, maximum length of answer. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/pos/cart/v1.0/share-cart/%s", + url: "/service/application/pos/cart/v1.0/share-cart/\(token)", query: nil, extraHeaders: [], body: nil, @@ -11874,7 +11874,7 @@ tags, text, type, choices for MCQ type questions, maximum length of answer. ApplicationAPIClient.execute( config: config, method: "post", - url: "/service/application/pos/cart/v1.0/share-cart/%s/%s", + url: "/service/application/pos/cart/v1.0/share-cart/\(token)/\(action)", query: nil, extraHeaders: [], body: nil, @@ -11969,7 +11969,7 @@ tags, text, type, choices for MCQ type questions, maximum length of answer. ApplicationAPIClient.execute( config: config, method: "get", - url: "/service/application/logistics/v1.0/pincode/%s", + url: "/service/application/logistics/v1.0/pincode/\(pincode)", query: nil, extraHeaders: [], body: nil, diff --git a/sdk/application/ApplicationConfig.swift b/Sources/application/ApplicationConfig.swift similarity index 100% rename from sdk/application/ApplicationConfig.swift rename to Sources/application/ApplicationConfig.swift diff --git a/sdk/application/ApplicationModels.swift b/Sources/application/ApplicationModels.swift similarity index 100% rename from sdk/application/ApplicationModels.swift rename to Sources/application/ApplicationModels.swift diff --git a/sdk/application/FileStorage.swift b/Sources/application/FileStorage.swift similarity index 100% rename from sdk/application/FileStorage.swift rename to Sources/application/FileStorage.swift diff --git a/sdk/common/AlmofireHelper.swift b/Sources/common/AlmofireHelper.swift similarity index 100% rename from sdk/common/AlmofireHelper.swift rename to Sources/common/AlmofireHelper.swift diff --git a/sdk/common/CryptoAlgorithm.swift b/Sources/common/CryptoAlgorithm.swift similarity index 100% rename from sdk/common/CryptoAlgorithm.swift rename to Sources/common/CryptoAlgorithm.swift diff --git a/sdk/common/Extensions.swift b/Sources/common/Extensions.swift similarity index 100% rename from sdk/common/Extensions.swift rename to Sources/common/Extensions.swift diff --git a/sdk/common/FDKError.swift b/Sources/common/FDKError.swift similarity index 100% rename from sdk/common/FDKError.swift rename to Sources/common/FDKError.swift diff --git a/sdk/common/Paginator.swift b/Sources/common/Paginator.swift similarity index 100% rename from sdk/common/Paginator.swift rename to Sources/common/Paginator.swift diff --git a/sdk/common/RequestSigner.swift b/Sources/common/RequestSigner.swift similarity index 100% rename from sdk/common/RequestSigner.swift rename to Sources/common/RequestSigner.swift diff --git a/sdk/platform/PlatformAPIClient.swift b/Sources/platform/PlatformAPIClient.swift similarity index 100% rename from sdk/platform/PlatformAPIClient.swift rename to Sources/platform/PlatformAPIClient.swift diff --git a/sdk/platform/PlatformClient.swift b/Sources/platform/PlatformClient.swift similarity index 100% rename from sdk/platform/PlatformClient.swift rename to Sources/platform/PlatformClient.swift index ad0a98a9f4..0a933cb13f 100644 --- a/sdk/platform/PlatformClient.swift +++ b/Sources/platform/PlatformClient.swift @@ -3321,23 +3321,38 @@ public class PlatformClient { /** * - * Summary: Delete a product. - * Description: This API allows to delete product. + * Summary: Get a single product. + * Description: This API helps to get data associated to a particular product. **/ - public func deleteProduct( + public func getProduct( + itemCode: String?, itemId: Int, + brandUid: Int?, + uid: Int?, - onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void + onResponse: @escaping (_ response: Product?, _ error: FDKError?) -> Void ) { - + var xQuery: [String: Any] = [:] + + if let value = itemCode { + xQuery["item_code"] = value + } + + if let value = brandUid { + xQuery["brand_uid"] = value + } + + if let value = uid { + xQuery["uid"] = value + } PlatformAPIClient.execute( config: config, - method: "delete", + method: "get", url: "/service/platform/catalog/v1.0/company/\(companyId)/products/\(itemId)/", - query: nil, + query: xQuery, body: nil, headers: [], onResponse: { (responseData, error, responseCode) in @@ -3349,7 +3364,7 @@ public class PlatformClient { onResponse(nil, err) } else if let data = responseData { - let response = Utility.decode(SuccessResponse.self, from: data) + let response = Utility.decode(Product.self, from: data) onResponse(response, nil) } else { let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") , @@ -3364,38 +3379,23 @@ public class PlatformClient { /** * - * Summary: Get a single product. - * Description: This API helps to get data associated to a particular product. + * Summary: Delete a product. + * Description: This API allows to delete product. **/ - public func getProduct( - itemCode: String?, + public func deleteProduct( itemId: Int, - brandUid: Int?, - uid: Int?, - onResponse: @escaping (_ response: Product?, _ error: FDKError?) -> Void + onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void ) { - var xQuery: [String: Any] = [:] - - if let value = itemCode { - xQuery["item_code"] = value - } - - if let value = brandUid { - xQuery["brand_uid"] = value - } - - if let value = uid { - xQuery["uid"] = value - } + PlatformAPIClient.execute( config: config, - method: "get", + method: "delete", url: "/service/platform/catalog/v1.0/company/\(companyId)/products/\(itemId)/", - query: xQuery, + query: nil, body: nil, headers: [], onResponse: { (responseData, error, responseCode) in @@ -3407,7 +3407,7 @@ public class PlatformClient { onResponse(nil, err) } else if let data = responseData { - let response = Utility.decode(Product.self, from: data) + let response = Utility.decode(SuccessResponse.self, from: data) onResponse(response, nil) } else { let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") , @@ -3616,12 +3616,12 @@ public class PlatformClient { /** * - * Summary: Delete Bulk product job. - * Description: This API allows to delete bulk product job associated with company. + * Summary: Create products in bulk associated with given batch Id. + * Description: This API helps to create products in bulk push to kafka for approval/creation. **/ - public func deleteProductBulkJob( - batchId: Int, - + public func createProductsInBulk( + batchId: String, + body: BulkProductRequest, onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void ) { @@ -3630,10 +3630,10 @@ public class PlatformClient { PlatformAPIClient.execute( config: config, - method: "delete", + method: "post", url: "/service/platform/catalog/v1.0/company/\(companyId)/products/bulk/\(batchId)", query: nil, - body: nil, + body: body.dictionary, headers: [], onResponse: { (responseData, error, responseCode) in if let _ = error, let data = responseData { @@ -3659,12 +3659,12 @@ public class PlatformClient { /** * - * Summary: Create products in bulk associated with given batch Id. - * Description: This API helps to create products in bulk push to kafka for approval/creation. + * Summary: Delete Bulk product job. + * Description: This API allows to delete bulk product job associated with company. **/ - public func createProductsInBulk( - batchId: String, - body: BulkProductRequest, + public func deleteProductBulkJob( + batchId: Int, + onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void ) { @@ -3673,10 +3673,10 @@ public class PlatformClient { PlatformAPIClient.execute( config: config, - method: "post", + method: "delete", url: "/service/platform/catalog/v1.0/company/\(companyId)/products/bulk/\(batchId)", query: nil, - body: body.dictionary, + body: nil, headers: [], onResponse: { (responseData, error, responseCode) in if let _ = error, let data = responseData { @@ -4118,11 +4118,11 @@ public class PlatformClient { /** * - * Summary: Delete Bulk Inventory job. - * Description: This API allows to delete bulk Inventory job associated with company. + * Summary: Create products in bulk associated with given batch Id. + * Description: This API helps to create products in bulk push to kafka for approval/creation. **/ - public func deleteBulkInventoryJob( - + public func createBulkInventory( + body: InventoryBulkRequest, onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void ) { @@ -4131,10 +4131,10 @@ public class PlatformClient { PlatformAPIClient.execute( config: config, - method: "delete", + method: "post", url: "/service/platform/catalog/v1.0/company/\(companyId)/inventory/bulk//", query: nil, - body: nil, + body: body.dictionary, headers: [], onResponse: { (responseData, error, responseCode) in if let _ = error, let data = responseData { @@ -4160,11 +4160,11 @@ public class PlatformClient { /** * - * Summary: Create products in bulk associated with given batch Id. - * Description: This API helps to create products in bulk push to kafka for approval/creation. + * Summary: Delete Bulk Inventory job. + * Description: This API allows to delete bulk Inventory job associated with company. **/ - public func createBulkInventory( - body: InventoryBulkRequest, + public func deleteBulkInventoryJob( + onResponse: @escaping (_ response: SuccessResponse?, _ error: FDKError?) -> Void ) { @@ -4173,10 +4173,10 @@ public class PlatformClient { PlatformAPIClient.execute( config: config, - method: "post", + method: "delete", url: "/service/platform/catalog/v1.0/company/\(companyId)/inventory/bulk//", query: nil, - body: body.dictionary, + body: nil, headers: [], onResponse: { (responseData, error, responseCode) in if let _ = error, let data = responseData { @@ -17980,13 +17980,13 @@ data to update a zone. /** * - * Summary: Delete a Search Keywords - * Description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully + * Summary: Get a Search Keywords Details + * Description: Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` **/ - public func deleteSearchKeywords( + public func getSearchKeywords( id: String, - onResponse: @escaping (_ response: DeleteResponse?, _ error: FDKError?) -> Void + onResponse: @escaping (_ response: GetSearchWordsDetailResponse?, _ error: FDKError?) -> Void ) { @@ -17994,7 +17994,7 @@ data to update a zone. PlatformAPIClient.execute( config: config, - method: "delete", + method: "get", url: "/service/platform/catalog/v1.0/company/\(companyId)/application/\(applicationId)/search/keyword/\(id)/", query: nil, body: nil, @@ -18008,7 +18008,7 @@ data to update a zone. onResponse(nil, err) } else if let data = responseData { - let response = Utility.decode(DeleteResponse.self, from: data) + let response = Utility.decode(GetSearchWordsDetailResponse.self, from: data) onResponse(response, nil) } else { let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") , @@ -18023,13 +18023,13 @@ data to update a zone. /** * - * Summary: Get a Search Keywords Details - * Description: Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` + * Summary: Delete a Search Keywords + * Description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully **/ - public func getSearchKeywords( + public func deleteSearchKeywords( id: String, - onResponse: @escaping (_ response: GetSearchWordsDetailResponse?, _ error: FDKError?) -> Void + onResponse: @escaping (_ response: DeleteResponse?, _ error: FDKError?) -> Void ) { @@ -18037,7 +18037,7 @@ data to update a zone. PlatformAPIClient.execute( config: config, - method: "get", + method: "delete", url: "/service/platform/catalog/v1.0/company/\(companyId)/application/\(applicationId)/search/keyword/\(id)/", query: nil, body: nil, @@ -18051,7 +18051,7 @@ data to update a zone. onResponse(nil, err) } else if let data = responseData { - let response = Utility.decode(GetSearchWordsDetailResponse.self, from: data) + let response = Utility.decode(DeleteResponse.self, from: data) onResponse(response, nil) } else { let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") , @@ -18193,13 +18193,13 @@ data to update a zone. /** * - * Summary: Delete a Autocomplete Keywords - * Description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully + * Summary: Get a Autocomplete Keywords Details + * Description: Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` **/ - public func deleteAutocompleteKeyword( + public func getAutocompleteKeywordDetail( id: String, - onResponse: @escaping (_ response: DeleteResponse?, _ error: FDKError?) -> Void + onResponse: @escaping (_ response: GetAutocompleteWordsResponse?, _ error: FDKError?) -> Void ) { @@ -18207,7 +18207,7 @@ data to update a zone. PlatformAPIClient.execute( config: config, - method: "delete", + method: "get", url: "/service/platform/catalog/v1.0/company/\(companyId)/application/\(applicationId)/search/autocomplete/\(id)/", query: nil, body: nil, @@ -18221,7 +18221,7 @@ data to update a zone. onResponse(nil, err) } else if let data = responseData { - let response = Utility.decode(DeleteResponse.self, from: data) + let response = Utility.decode(GetAutocompleteWordsResponse.self, from: data) onResponse(response, nil) } else { let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") , @@ -18236,13 +18236,13 @@ data to update a zone. /** * - * Summary: Get a Autocomplete Keywords Details - * Description: Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` + * Summary: Delete a Autocomplete Keywords + * Description: Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully **/ - public func getAutocompleteKeywordDetail( + public func deleteAutocompleteKeyword( id: String, - onResponse: @escaping (_ response: GetAutocompleteWordsResponse?, _ error: FDKError?) -> Void + onResponse: @escaping (_ response: DeleteResponse?, _ error: FDKError?) -> Void ) { @@ -18250,7 +18250,7 @@ data to update a zone. PlatformAPIClient.execute( config: config, - method: "get", + method: "delete", url: "/service/platform/catalog/v1.0/company/\(companyId)/application/\(applicationId)/search/autocomplete/\(id)/", query: nil, body: nil, @@ -18264,7 +18264,7 @@ data to update a zone. onResponse(nil, err) } else if let data = responseData { - let response = Utility.decode(GetAutocompleteWordsResponse.self, from: data) + let response = Utility.decode(DeleteResponse.self, from: data) onResponse(response, nil) } else { let userInfo: [String: Any] = [ NSLocalizedDescriptionKey : NSLocalizedString("Unidentified", value: "Please try after sometime", comment: "") , diff --git a/sdk/platform/PlatformConfig.swift b/Sources/platform/PlatformConfig.swift similarity index 100% rename from sdk/platform/PlatformConfig.swift rename to Sources/platform/PlatformConfig.swift diff --git a/sdk/platform/PlatformModels.swift b/Sources/platform/PlatformModels.swift similarity index 100% rename from sdk/platform/PlatformModels.swift rename to Sources/platform/PlatformModels.swift index 00e1396818..ed61993ddf 100644 --- a/sdk/platform/PlatformModels.swift +++ b/Sources/platform/PlatformModels.swift @@ -66220,36 +66220,36 @@ public extension PlatformClient { class SearchKeywordResult: Codable { - public var sortOn: String - public var query: [String: Any] + public var sortOn: String + public enum CodingKeys: String, CodingKey { - case sortOn = "sort_on" - case query = "query" + case sortOn = "sort_on" + } public init(query: [String: Any], sortOn: String) { - self.sortOn = sortOn - self.query = query + self.sortOn = sortOn + } required public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - sortOn = try container.decode(String.self, forKey: .sortOn) + query = try container.decode([String: Any].self, forKey: .query) - query = try container.decode([String: Any].self, forKey: .query) + sortOn = try container.decode(String.self, forKey: .sortOn) } @@ -66257,10 +66257,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(sortOn, forKey: .sortOn) - try? container.encodeIfPresent(query, forKey: .query) + try? container.encodeIfPresent(sortOn, forKey: .sortOn) + } } @@ -66273,55 +66273,51 @@ public extension PlatformClient { class CreateSearchKeyword: Codable { + public var isActive: Bool? + public var result: SearchKeywordResult + public var appId: String? + public var customJson: [String: Any]? public var words: [String]? - public var appId: String? - - public var isActive: Bool? - public enum CodingKeys: String, CodingKey { + case isActive = "is_active" + case result = "result" + case appId = "app_id" + case customJson = "_custom_json" case words = "words" - case appId = "app_id" - - case isActive = "is_active" - } public init(appId: String?, isActive: Bool?, result: SearchKeywordResult, words: [String]?, customJson: [String: Any]?) { + self.isActive = isActive + self.result = result + self.appId = appId + self.customJson = customJson self.words = words - self.appId = appId - - self.isActive = isActive - } required public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - result = try container.decode(SearchKeywordResult.self, forKey: .result) - - - do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66331,8 +66327,12 @@ public extension PlatformClient { + result = try container.decode(SearchKeywordResult.self, forKey: .result) + + + do { - words = try container.decode([String].self, forKey: .words) + appId = try container.decode(String.self, forKey: .appId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66343,7 +66343,7 @@ public extension PlatformClient { do { - appId = try container.decode(String.self, forKey: .appId) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66354,7 +66354,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + words = try container.decode([String].self, forKey: .words) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66368,16 +66368,16 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(result, forKey: .result) + try? container.encodeIfPresent(appId, forKey: .appId) + try? container.encodeIfPresent(customJson, forKey: .customJson) try? container.encodeIfPresent(words, forKey: .words) - try? container.encodeIfPresent(appId, forKey: .appId) - - try? container.encodeIfPresent(isActive, forKey: .isActive) - } } @@ -66394,12 +66394,12 @@ public extension PlatformClient { public var result: [String: Any]? + public var appId: String? + public var customJson: [String: Any]? public var words: [String]? - public var appId: String? - public enum CodingKeys: String, CodingKey { @@ -66407,12 +66407,12 @@ public extension PlatformClient { case result = "result" + case appId = "app_id" + case customJson = "_custom_json" case words = "words" - case appId = "app_id" - } public init(appId: String?, result: [String: Any]?, uid: String?, words: [String]?, customJson: [String: Any]?) { @@ -66421,12 +66421,12 @@ public extension PlatformClient { self.result = result + self.appId = appId + self.customJson = customJson self.words = words - self.appId = appId - } required public init(from decoder: Decoder) throws { @@ -66456,7 +66456,7 @@ public extension PlatformClient { do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + appId = try container.decode(String.self, forKey: .appId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66467,7 +66467,7 @@ public extension PlatformClient { do { - words = try container.decode([String].self, forKey: .words) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66478,7 +66478,7 @@ public extension PlatformClient { do { - appId = try container.decode(String.self, forKey: .appId) + words = try container.decode([String].self, forKey: .words) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66496,12 +66496,12 @@ public extension PlatformClient { try? container.encodeIfPresent(result, forKey: .result) + try? container.encodeIfPresent(appId, forKey: .appId) + try? container.encodeIfPresent(customJson, forKey: .customJson) try? container.encodeIfPresent(words, forKey: .words) - try? container.encodeIfPresent(appId, forKey: .appId) - } } @@ -66514,37 +66514,37 @@ public extension PlatformClient { class ErrorResponse: Codable { + public var code: String? + public var message: String? public var status: Int? public var meta: [String: Any]? - public var code: String? - public enum CodingKeys: String, CodingKey { + case code = "code" + case message = "message" case status = "status" case meta = "meta" - case code = "code" - } public init(code: String?, message: String?, meta: [String: Any]?, status: Int?) { + self.code = code + self.message = message self.status = status self.meta = meta - self.code = code - } required public init(from decoder: Decoder) throws { @@ -66552,7 +66552,7 @@ public extension PlatformClient { do { - message = try container.decode(String.self, forKey: .message) + code = try container.decode(String.self, forKey: .code) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66563,7 +66563,7 @@ public extension PlatformClient { do { - status = try container.decode(Int.self, forKey: .status) + message = try container.decode(String.self, forKey: .message) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66574,7 +66574,7 @@ public extension PlatformClient { do { - meta = try container.decode([String: Any].self, forKey: .meta) + status = try container.decode(Int.self, forKey: .status) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66585,7 +66585,7 @@ public extension PlatformClient { do { - code = try container.decode(String.self, forKey: .code) + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66599,38 +66599,44 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(code, forKey: .code) + try? container.encodeIfPresent(message, forKey: .message) try? container.encodeIfPresent(status, forKey: .status) try? container.encodeIfPresent(meta, forKey: .meta) - try? container.encodeIfPresent(code, forKey: .code) - } } /* - Model: DeleteResponse + Model: GetSearchWordsDetailResponse Used By: Catalog */ - class DeleteResponse: Codable { + class GetSearchWordsDetailResponse: Codable { - public var message: String? + public var page: Page? + + public var items: GetSearchWordsData? public enum CodingKeys: String, CodingKey { - case message = "message" + case page = "page" + + case items = "items" } - public init(message: String?) { + public init(items: GetSearchWordsData?, page: Page?) { - self.message = message + self.page = page + + self.items = items } @@ -66639,7 +66645,18 @@ public extension PlatformClient { do { - message = try container.decode(String.self, forKey: .message) + page = try container.decode(Page.self, forKey: .page) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + items = try container.decode(GetSearchWordsData.self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66653,38 +66670,34 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(message, forKey: .message) + try? container.encodeIfPresent(page, forKey: .page) + + try? container.encodeIfPresent(items, forKey: .items) } } /* - Model: GetSearchWordsDetailResponse + Model: DeleteResponse Used By: Catalog */ - class GetSearchWordsDetailResponse: Codable { - + class DeleteResponse: Codable { - public var items: GetSearchWordsData? - public var page: Page? + public var message: String? public enum CodingKeys: String, CodingKey { - case items = "items" - - case page = "page" + case message = "message" } - public init(items: GetSearchWordsData?, page: Page?) { - - self.items = items + public init(message: String?) { - self.page = page + self.message = message } @@ -66693,18 +66706,7 @@ public extension PlatformClient { do { - items = try container.decode(GetSearchWordsData.self, forKey: .items) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - page = try container.decode(Page.self, forKey: .page) + message = try container.decode(String.self, forKey: .message) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66718,9 +66720,7 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(message, forKey: .message) } @@ -66734,25 +66734,25 @@ public extension PlatformClient { class GetSearchWordsResponse: Codable { - public var items: [GetSearchWordsData]? - public var page: Page? + public var items: [GetSearchWordsData]? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: [GetSearchWordsData]?, page: Page?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -66760,7 +66760,7 @@ public extension PlatformClient { do { - items = try container.decode([GetSearchWordsData].self, forKey: .items) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66771,7 +66771,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + items = try container.decode([GetSearchWordsData].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66785,10 +66785,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } @@ -66801,25 +66801,25 @@ public extension PlatformClient { class Media: Codable { - public var type: String? - public var url: String? + public var type: String? + public enum CodingKeys: String, CodingKey { - case type = "type" - case url = "url" + case type = "type" + } public init(type: String?, url: String?) { - self.type = type - self.url = url + self.type = type + } required public init(from decoder: Decoder) throws { @@ -66827,7 +66827,7 @@ public extension PlatformClient { do { - type = try container.decode(String.self, forKey: .type) + url = try container.decode(String.self, forKey: .url) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66838,7 +66838,7 @@ public extension PlatformClient { do { - url = try container.decode(String.self, forKey: .url) + type = try container.decode(String.self, forKey: .type) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66852,10 +66852,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(type, forKey: .type) - try? container.encodeIfPresent(url, forKey: .url) + try? container.encodeIfPresent(type, forKey: .type) + } } @@ -66868,36 +66868,36 @@ public extension PlatformClient { class AutocompletePageAction: Codable { - public var params: [String: Any]? + public var query: [String: Any] public var url: String? - public var type: String + public var params: [String: Any]? - public var query: [String: Any] + public var type: String public enum CodingKeys: String, CodingKey { - case params = "params" + case query = "query" case url = "url" - case type = "type" + case params = "params" - case query = "query" + case type = "type" } public init(params: [String: Any]?, query: [String: Any], type: String, url: String?) { - self.params = params + self.query = query self.url = url - self.type = type + self.params = params - self.query = query + self.type = type } @@ -66905,8 +66905,12 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) + query = try container.decode([String: Any].self, forKey: .query) + + + do { - params = try container.decode([String: Any].self, forKey: .params) + url = try container.decode(String.self, forKey: .url) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66917,7 +66921,7 @@ public extension PlatformClient { do { - url = try container.decode(String.self, forKey: .url) + params = try container.decode([String: Any].self, forKey: .params) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -66930,22 +66934,18 @@ public extension PlatformClient { type = try container.decode(String.self, forKey: .type) - - query = try container.decode([String: Any].self, forKey: .query) - - } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(params, forKey: .params) + try? container.encodeIfPresent(query, forKey: .query) try? container.encodeIfPresent(url, forKey: .url) - try? container.encodeIfPresent(type, forKey: .type) + try? container.encodeIfPresent(params, forKey: .params) - try? container.encodeIfPresent(query, forKey: .query) + try? container.encodeIfPresent(type, forKey: .type) } @@ -67026,37 +67026,37 @@ public extension PlatformClient { class AutocompleteResult: Codable { - public var display: String? + public var logo: Media? public var customJson: [String: Any]? - public var logo: Media? - public var action: AutocompleteAction? + public var display: String? + public enum CodingKeys: String, CodingKey { - case display = "display" + case logo = "logo" case customJson = "_custom_json" - case logo = "logo" - case action = "action" + case display = "display" + } public init(action: AutocompleteAction?, display: String?, logo: Media?, customJson: [String: Any]?) { - self.display = display + self.logo = logo self.customJson = customJson - self.logo = logo - self.action = action + self.display = display + } required public init(from decoder: Decoder) throws { @@ -67064,7 +67064,7 @@ public extension PlatformClient { do { - display = try container.decode(String.self, forKey: .display) + logo = try container.decode(Media.self, forKey: .logo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67086,7 +67086,7 @@ public extension PlatformClient { do { - logo = try container.decode(Media.self, forKey: .logo) + action = try container.decode(AutocompleteAction.self, forKey: .action) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67097,7 +67097,7 @@ public extension PlatformClient { do { - action = try container.decode(AutocompleteAction.self, forKey: .action) + display = try container.decode(String.self, forKey: .display) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67111,14 +67111,14 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(display, forKey: .display) + try? container.encodeIfPresent(logo, forKey: .logo) try? container.encodeIfPresent(customJson, forKey: .customJson) - try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(action, forKey: .action) + try? container.encodeIfPresent(display, forKey: .display) + } } @@ -67131,42 +67131,42 @@ public extension PlatformClient { class CreateAutocompleteKeyword: Codable { - public var customJson: [String: Any]? + public var isActive: Bool? - public var words: [String]? + public var results: [AutocompleteResult]? public var appId: String? - public var isActive: Bool? + public var customJson: [String: Any]? - public var results: [AutocompleteResult]? + public var words: [String]? public enum CodingKeys: String, CodingKey { - case customJson = "_custom_json" + case isActive = "is_active" - case words = "words" + case results = "results" case appId = "app_id" - case isActive = "is_active" + case customJson = "_custom_json" - case results = "results" + case words = "words" } public init(appId: String?, isActive: Bool?, results: [AutocompleteResult]?, words: [String]?, customJson: [String: Any]?) { - self.customJson = customJson + self.isActive = isActive - self.words = words + self.results = results self.appId = appId - self.isActive = isActive + self.customJson = customJson - self.results = results + self.words = words } @@ -67175,7 +67175,7 @@ public extension PlatformClient { do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67186,7 +67186,7 @@ public extension PlatformClient { do { - words = try container.decode([String].self, forKey: .words) + results = try container.decode([AutocompleteResult].self, forKey: .results) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67208,7 +67208,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67219,7 +67219,7 @@ public extension PlatformClient { do { - results = try container.decode([AutocompleteResult].self, forKey: .results) + words = try container.decode([String].self, forKey: .words) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67233,15 +67233,15 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(customJson, forKey: .customJson) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(words, forKey: .words) + try? container.encodeIfPresent(results, forKey: .results) try? container.encodeIfPresent(appId, forKey: .appId) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(customJson, forKey: .customJson) - try? container.encodeIfPresent(results, forKey: .results) + try? container.encodeIfPresent(words, forKey: .words) } @@ -67255,43 +67255,43 @@ public extension PlatformClient { class GetAutocompleteWordsData: Codable { + public var results: [[String: Any]]? + public var uid: String? + public var appId: String? + public var customJson: [String: Any]? public var words: [String]? - public var appId: String? - - public var results: [[String: Any]]? - public enum CodingKeys: String, CodingKey { + case results = "results" + case uid = "uid" + case appId = "app_id" + case customJson = "_custom_json" case words = "words" - case appId = "app_id" - - case results = "results" - } public init(appId: String?, results: [[String: Any]]?, uid: String?, words: [String]?, customJson: [String: Any]?) { + self.results = results + self.uid = uid + self.appId = appId + self.customJson = customJson self.words = words - self.appId = appId - - self.results = results - } required public init(from decoder: Decoder) throws { @@ -67299,7 +67299,7 @@ public extension PlatformClient { do { - uid = try container.decode(String.self, forKey: .uid) + results = try container.decode([[String: Any]].self, forKey: .results) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67310,7 +67310,7 @@ public extension PlatformClient { do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + uid = try container.decode(String.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67321,7 +67321,7 @@ public extension PlatformClient { do { - words = try container.decode([String].self, forKey: .words) + appId = try container.decode(String.self, forKey: .appId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67332,7 +67332,7 @@ public extension PlatformClient { do { - appId = try container.decode(String.self, forKey: .appId) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67343,7 +67343,7 @@ public extension PlatformClient { do { - results = try container.decode([[String: Any]].self, forKey: .results) + words = try container.decode([String].self, forKey: .words) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67357,16 +67357,16 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(results, forKey: .results) + try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(appId, forKey: .appId) + try? container.encodeIfPresent(customJson, forKey: .customJson) try? container.encodeIfPresent(words, forKey: .words) - try? container.encodeIfPresent(appId, forKey: .appId) - - try? container.encodeIfPresent(results, forKey: .results) - } } @@ -67379,25 +67379,25 @@ public extension PlatformClient { class GetAutocompleteWordsResponse: Codable { - public var items: [GetAutocompleteWordsData]? - public var page: Page? + public var items: [GetAutocompleteWordsData]? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: [GetAutocompleteWordsData]?, page: Page?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -67405,7 +67405,7 @@ public extension PlatformClient { do { - items = try container.decode([GetAutocompleteWordsData].self, forKey: .items) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67416,7 +67416,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + items = try container.decode([GetAutocompleteWordsData].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67430,10 +67430,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } @@ -67446,36 +67446,36 @@ public extension PlatformClient { class CreateAutocompleteWordsResponse: Codable { - public var words: [String]? - - public var results: [[String: Any]]? + public var appId: String? public var customJson: [String: Any]? - public var appId: String? + public var results: [[String: Any]]? + + public var words: [String]? public enum CodingKeys: String, CodingKey { - case words = "words" - - case results = "results" + case appId = "app_id" case customJson = "_custom_json" - case appId = "app_id" + case results = "results" + + case words = "words" } public init(appId: String?, results: [[String: Any]]?, words: [String]?, customJson: [String: Any]?) { - self.words = words - - self.results = results + self.appId = appId self.customJson = customJson - self.appId = appId + self.results = results + + self.words = words } @@ -67484,7 +67484,7 @@ public extension PlatformClient { do { - words = try container.decode([String].self, forKey: .words) + appId = try container.decode(String.self, forKey: .appId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67495,7 +67495,7 @@ public extension PlatformClient { do { - results = try container.decode([[String: Any]].self, forKey: .results) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67506,7 +67506,7 @@ public extension PlatformClient { do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + results = try container.decode([[String: Any]].self, forKey: .results) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67517,7 +67517,7 @@ public extension PlatformClient { do { - appId = try container.decode(String.self, forKey: .appId) + words = try container.decode([String].self, forKey: .words) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67531,13 +67531,13 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(words, forKey: .words) - - try? container.encodeIfPresent(results, forKey: .results) + try? container.encodeIfPresent(appId, forKey: .appId) try? container.encodeIfPresent(customJson, forKey: .customJson) - try? container.encodeIfPresent(appId, forKey: .appId) + try? container.encodeIfPresent(results, forKey: .results) + + try? container.encodeIfPresent(words, forKey: .words) } @@ -67551,61 +67551,57 @@ public extension PlatformClient { class ProductBundleItem: Codable { - public var minQuantity: Int + public var autoSelect: Bool? + + public var allowRemove: Bool? public var autoAddToCart: Bool? - public var autoSelect: Bool? + public var minQuantity: Int public var maxQuantity: Int public var productUid: Int - public var allowRemove: Bool? - public enum CodingKeys: String, CodingKey { - case minQuantity = "min_quantity" + case autoSelect = "auto_select" + + case allowRemove = "allow_remove" case autoAddToCart = "auto_add_to_cart" - case autoSelect = "auto_select" + case minQuantity = "min_quantity" case maxQuantity = "max_quantity" case productUid = "product_uid" - case allowRemove = "allow_remove" - } public init(allowRemove: Bool?, autoAddToCart: Bool?, autoSelect: Bool?, maxQuantity: Int, minQuantity: Int, productUid: Int) { - self.minQuantity = minQuantity + self.autoSelect = autoSelect + + self.allowRemove = allowRemove self.autoAddToCart = autoAddToCart - self.autoSelect = autoSelect + self.minQuantity = minQuantity self.maxQuantity = maxQuantity self.productUid = productUid - self.allowRemove = allowRemove - } required public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - minQuantity = try container.decode(Int.self, forKey: .minQuantity) - - - do { - autoAddToCart = try container.decode(Bool.self, forKey: .autoAddToCart) + autoSelect = try container.decode(Bool.self, forKey: .autoSelect) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67616,7 +67612,7 @@ public extension PlatformClient { do { - autoSelect = try container.decode(Bool.self, forKey: .autoSelect) + allowRemove = try container.decode(Bool.self, forKey: .allowRemove) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67626,16 +67622,8 @@ public extension PlatformClient { - maxQuantity = try container.decode(Int.self, forKey: .maxQuantity) - - - - productUid = try container.decode(Int.self, forKey: .productUid) - - - do { - allowRemove = try container.decode(Bool.self, forKey: .allowRemove) + autoAddToCart = try container.decode(Bool.self, forKey: .autoAddToCart) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67644,23 +67632,35 @@ public extension PlatformClient { } + + minQuantity = try container.decode(Int.self, forKey: .minQuantity) + + + + maxQuantity = try container.decode(Int.self, forKey: .maxQuantity) + + + + productUid = try container.decode(Int.self, forKey: .productUid) + + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(minQuantity, forKey: .minQuantity) + try? container.encodeIfPresent(autoSelect, forKey: .autoSelect) + + try? container.encodeIfPresent(allowRemove, forKey: .allowRemove) try? container.encodeIfPresent(autoAddToCart, forKey: .autoAddToCart) - try? container.encodeIfPresent(autoSelect, forKey: .autoSelect) + try? container.encodeIfPresent(minQuantity, forKey: .minQuantity) try? container.encodeIfPresent(maxQuantity, forKey: .maxQuantity) try? container.encodeIfPresent(productUid, forKey: .productUid) - try? container.encodeIfPresent(allowRemove, forKey: .allowRemove) - } } @@ -67675,66 +67675,66 @@ public extension PlatformClient { public var createdOn: String? - public var companyId: Int? - - public var createdBy: [String: Any]? + public var sameStoreAssignment: Bool? - public var choice: String + public var isActive: Bool - public var slug: String + public var createdBy: [String: Any]? public var id: String? - public var isActive: Bool + public var products: [ProductBundleItem] public var modifiedOn: String? - public var sameStoreAssignment: Bool? - public var logo: String? - public var name: String - public var pageVisibility: [String]? + public var companyId: Int? + public var meta: [String: Any]? + public var slug: String + public var modifiedBy: [String: Any]? - public var products: [ProductBundleItem] + public var choice: String + + public var name: String public enum CodingKeys: String, CodingKey { case createdOn = "created_on" - case companyId = "company_id" - - case createdBy = "created_by" + case sameStoreAssignment = "same_store_assignment" - case choice = "choice" + case isActive = "is_active" - case slug = "slug" + case createdBy = "created_by" case id = "id" - case isActive = "is_active" + case products = "products" case modifiedOn = "modified_on" - case sameStoreAssignment = "same_store_assignment" - case logo = "logo" - case name = "name" - case pageVisibility = "page_visibility" + case companyId = "company_id" + case meta = "meta" + case slug = "slug" + case modifiedBy = "modified_by" - case products = "products" + case choice = "choice" + + case name = "name" } @@ -67742,33 +67742,33 @@ public extension PlatformClient { self.createdOn = createdOn - self.companyId = companyId - - self.createdBy = createdBy + self.sameStoreAssignment = sameStoreAssignment - self.choice = choice + self.isActive = isActive - self.slug = slug + self.createdBy = createdBy self.id = id - self.isActive = isActive + self.products = products self.modifiedOn = modifiedOn - self.sameStoreAssignment = sameStoreAssignment - self.logo = logo - self.name = name - self.pageVisibility = pageVisibility + self.companyId = companyId + self.meta = meta + self.slug = slug + self.modifiedBy = modifiedBy - self.products = products + self.choice = choice + + self.name = name } @@ -67788,7 +67788,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) + sameStoreAssignment = try container.decode(Bool.self, forKey: .sameStoreAssignment) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67798,6 +67798,10 @@ public extension PlatformClient { + isActive = try container.decode(Bool.self, forKey: .isActive) + + + do { createdBy = try container.decode([String: Any].self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { @@ -67809,14 +67813,6 @@ public extension PlatformClient { - choice = try container.decode(String.self, forKey: .choice) - - - - slug = try container.decode(String.self, forKey: .slug) - - - do { id = try container.decode(String.self, forKey: .id) } catch DecodingError.typeMismatch(let type, let context) { @@ -67828,7 +67824,7 @@ public extension PlatformClient { - isActive = try container.decode(Bool.self, forKey: .isActive) + products = try container.decode([ProductBundleItem].self, forKey: .products) @@ -67844,7 +67840,7 @@ public extension PlatformClient { do { - sameStoreAssignment = try container.decode(Bool.self, forKey: .sameStoreAssignment) + logo = try container.decode(String.self, forKey: .logo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67855,7 +67851,7 @@ public extension PlatformClient { do { - logo = try container.decode(String.self, forKey: .logo) + pageVisibility = try container.decode([String].self, forKey: .pageVisibility) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67865,12 +67861,8 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - do { - pageVisibility = try container.decode([String].self, forKey: .pageVisibility) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67891,6 +67883,10 @@ public extension PlatformClient { + slug = try container.decode(String.self, forKey: .slug) + + + do { modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { @@ -67902,7 +67898,11 @@ public extension PlatformClient { - products = try container.decode([ProductBundleItem].self, forKey: .products) + choice = try container.decode(String.self, forKey: .choice) + + + + name = try container.decode(String.self, forKey: .name) } @@ -67912,33 +67912,33 @@ public extension PlatformClient { try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(companyId, forKey: .companyId) - - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment) - try? container.encodeIfPresent(choice, forKey: .choice) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) try? container.encodeIfPresent(id, forKey: .id) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(products, forKey: .products) try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment) - try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility) + try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(meta, forKey: .meta) + try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(products, forKey: .products) + try? container.encodeIfPresent(choice, forKey: .choice) + + try? container.encodeIfPresent(name, forKey: .name) } @@ -67952,25 +67952,25 @@ public extension PlatformClient { class GetProductBundleListingResponse: Codable { - public var items: [GetProductBundleCreateResponse]? - public var page: Page? + public var items: [GetProductBundleCreateResponse]? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: [GetProductBundleCreateResponse]?, page: Page?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -67978,7 +67978,7 @@ public extension PlatformClient { do { - items = try container.decode([GetProductBundleCreateResponse].self, forKey: .items) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -67989,7 +67989,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + items = try container.decode([GetProductBundleCreateResponse].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68003,10 +68003,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } @@ -68021,58 +68021,58 @@ public extension PlatformClient { public var createdOn: String? - public var createdBy: [String: Any]? + public var sameStoreAssignment: Bool? - public var choice: String + public var isActive: Bool - public var slug: String + public var createdBy: [String: Any]? - public var isActive: Bool + public var products: [ProductBundleItem] public var modifiedOn: String? - public var sameStoreAssignment: Bool? - public var logo: String? - public var name: String - public var pageVisibility: [String]? public var meta: [String: Any]? + public var slug: String + public var modifiedBy: [String: Any]? - public var products: [ProductBundleItem] + public var choice: String + + public var name: String public enum CodingKeys: String, CodingKey { case createdOn = "created_on" - case createdBy = "created_by" + case sameStoreAssignment = "same_store_assignment" - case choice = "choice" + case isActive = "is_active" - case slug = "slug" + case createdBy = "created_by" - case isActive = "is_active" + case products = "products" case modifiedOn = "modified_on" - case sameStoreAssignment = "same_store_assignment" - case logo = "logo" - case name = "name" - case pageVisibility = "page_visibility" case meta = "meta" + case slug = "slug" + case modifiedBy = "modified_by" - case products = "products" + case choice = "choice" + + case name = "name" } @@ -68080,29 +68080,29 @@ public extension PlatformClient { self.createdOn = createdOn - self.createdBy = createdBy + self.sameStoreAssignment = sameStoreAssignment - self.choice = choice + self.isActive = isActive - self.slug = slug + self.createdBy = createdBy - self.isActive = isActive + self.products = products self.modifiedOn = modifiedOn - self.sameStoreAssignment = sameStoreAssignment - self.logo = logo - self.name = name - self.pageVisibility = pageVisibility self.meta = meta + self.slug = slug + self.modifiedBy = modifiedBy - self.products = products + self.choice = choice + + self.name = name } @@ -68122,7 +68122,7 @@ public extension PlatformClient { do { - createdBy = try container.decode([String: Any].self, forKey: .createdBy) + sameStoreAssignment = try container.decode(Bool.self, forKey: .sameStoreAssignment) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68132,20 +68132,12 @@ public extension PlatformClient { - choice = try container.decode(String.self, forKey: .choice) - - - - slug = try container.decode(String.self, forKey: .slug) - - - isActive = try container.decode(Bool.self, forKey: .isActive) do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + createdBy = try container.decode([String: Any].self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68155,8 +68147,12 @@ public extension PlatformClient { + products = try container.decode([ProductBundleItem].self, forKey: .products) + + + do { - sameStoreAssignment = try container.decode(Bool.self, forKey: .sameStoreAssignment) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68177,10 +68173,6 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - do { pageVisibility = try container.decode([String].self, forKey: .pageVisibility) } catch DecodingError.typeMismatch(let type, let context) { @@ -68203,6 +68195,10 @@ public extension PlatformClient { + slug = try container.decode(String.self, forKey: .slug) + + + do { modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { @@ -68214,7 +68210,11 @@ public extension PlatformClient { - products = try container.decode([ProductBundleItem].self, forKey: .products) + choice = try container.decode(String.self, forKey: .choice) + + + + name = try container.decode(String.self, forKey: .name) } @@ -68224,29 +68224,29 @@ public extension PlatformClient { try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment) - try? container.encodeIfPresent(choice, forKey: .choice) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(products, forKey: .products) try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment) - try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility) try? container.encodeIfPresent(meta, forKey: .meta) + try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(products, forKey: .products) + try? container.encodeIfPresent(choice, forKey: .choice) + + try? container.encodeIfPresent(name, forKey: .name) } @@ -68260,78 +68260,78 @@ public extension PlatformClient { class ProductBundleUpdateRequest: Codable { - public var choice: String - - public var slug: String + public var sameStoreAssignment: Bool? public var isActive: Bool - public var modifiedOn: String? + public var products: [ProductBundleItem] - public var sameStoreAssignment: Bool? + public var modifiedOn: String? public var logo: String? - public var name: String - public var pageVisibility: [String]? public var meta: [String: Any]? + public var slug: String + public var modifiedBy: [String: Any]? - public var products: [ProductBundleItem] + public var choice: String + + public var name: String public enum CodingKeys: String, CodingKey { - case choice = "choice" - - case slug = "slug" + case sameStoreAssignment = "same_store_assignment" case isActive = "is_active" - case modifiedOn = "modified_on" + case products = "products" - case sameStoreAssignment = "same_store_assignment" + case modifiedOn = "modified_on" case logo = "logo" - case name = "name" - case pageVisibility = "page_visibility" case meta = "meta" + case slug = "slug" + case modifiedBy = "modified_by" - case products = "products" + case choice = "choice" + + case name = "name" } public init(choice: String, isActive: Bool, logo: String?, meta: [String: Any]?, modifiedBy: [String: Any]?, modifiedOn: String?, name: String, pageVisibility: [String]?, products: [ProductBundleItem], sameStoreAssignment: Bool?, slug: String) { - self.choice = choice - - self.slug = slug + self.sameStoreAssignment = sameStoreAssignment self.isActive = isActive - self.modifiedOn = modifiedOn + self.products = products - self.sameStoreAssignment = sameStoreAssignment + self.modifiedOn = modifiedOn self.logo = logo - self.name = name - self.pageVisibility = pageVisibility self.meta = meta + self.slug = slug + self.modifiedBy = modifiedBy - self.products = products + self.choice = choice + + self.name = name } @@ -68339,20 +68339,8 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - choice = try container.decode(String.self, forKey: .choice) - - - - slug = try container.decode(String.self, forKey: .slug) - - - - isActive = try container.decode(Bool.self, forKey: .isActive) - - - do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + sameStoreAssignment = try container.decode(Bool.self, forKey: .sameStoreAssignment) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68362,8 +68350,16 @@ public extension PlatformClient { + isActive = try container.decode(Bool.self, forKey: .isActive) + + + + products = try container.decode([ProductBundleItem].self, forKey: .products) + + + do { - sameStoreAssignment = try container.decode(Bool.self, forKey: .sameStoreAssignment) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68384,10 +68380,6 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - do { pageVisibility = try container.decode([String].self, forKey: .pageVisibility) } catch DecodingError.typeMismatch(let type, let context) { @@ -68410,6 +68402,10 @@ public extension PlatformClient { + slug = try container.decode(String.self, forKey: .slug) + + + do { modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { @@ -68421,7 +68417,11 @@ public extension PlatformClient { - products = try container.decode([ProductBundleItem].self, forKey: .products) + choice = try container.decode(String.self, forKey: .choice) + + + + name = try container.decode(String.self, forKey: .name) } @@ -68429,27 +68429,27 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(choice, forKey: .choice) - - try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment) try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(products, forKey: .products) - try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility) try? container.encodeIfPresent(meta, forKey: .meta) + try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(products, forKey: .products) + try? container.encodeIfPresent(choice, forKey: .choice) + + try? container.encodeIfPresent(name, forKey: .name) } @@ -68463,19 +68463,19 @@ public extension PlatformClient { class LimitedProductData: Codable { - public var uid: Int? + public var attributes: [String: Any]? - public var quantity: Int? + public var sizes: [String]? - public var slug: String? + public var uid: Int? - public var attributes: [String: Any]? + public var quantity: Int? public var identifier: [String: Any]? - public var sizes: [String]? + public var images: [String]? - public var name: String? + public var slug: String? public var countryOfOrigin: String? @@ -68483,26 +68483,26 @@ public extension PlatformClient { public var price: [String: Any]? - public var shortDescription: String? + public var name: String? - public var images: [String]? + public var shortDescription: String? public enum CodingKeys: String, CodingKey { - case uid = "uid" + case attributes = "attributes" - case quantity = "quantity" + case sizes = "sizes" - case slug = "slug" + case uid = "uid" - case attributes = "attributes" + case quantity = "quantity" case identifier = "identifier" - case sizes = "sizes" + case images = "images" - case name = "name" + case slug = "slug" case countryOfOrigin = "country_of_origin" @@ -68510,27 +68510,27 @@ public extension PlatformClient { case price = "price" - case shortDescription = "short_description" + case name = "name" - case images = "images" + case shortDescription = "short_description" } public init(attributes: [String: Any]?, countryOfOrigin: String?, identifier: [String: Any]?, images: [String]?, itemCode: String?, name: String?, price: [String: Any]?, quantity: Int?, shortDescription: String?, sizes: [String]?, slug: String?, uid: Int?) { - self.uid = uid + self.attributes = attributes - self.quantity = quantity + self.sizes = sizes - self.slug = slug + self.uid = uid - self.attributes = attributes + self.quantity = quantity self.identifier = identifier - self.sizes = sizes + self.images = images - self.name = name + self.slug = slug self.countryOfOrigin = countryOfOrigin @@ -68538,9 +68538,9 @@ public extension PlatformClient { self.price = price - self.shortDescription = shortDescription + self.name = name - self.images = images + self.shortDescription = shortDescription } @@ -68549,7 +68549,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + attributes = try container.decode([String: Any].self, forKey: .attributes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68560,7 +68560,7 @@ public extension PlatformClient { do { - quantity = try container.decode(Int.self, forKey: .quantity) + sizes = try container.decode([String].self, forKey: .sizes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68571,7 +68571,7 @@ public extension PlatformClient { do { - slug = try container.decode(String.self, forKey: .slug) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68582,7 +68582,7 @@ public extension PlatformClient { do { - attributes = try container.decode([String: Any].self, forKey: .attributes) + quantity = try container.decode(Int.self, forKey: .quantity) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68604,7 +68604,7 @@ public extension PlatformClient { do { - sizes = try container.decode([String].self, forKey: .sizes) + images = try container.decode([String].self, forKey: .images) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68615,7 +68615,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + slug = try container.decode(String.self, forKey: .slug) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68659,7 +68659,7 @@ public extension PlatformClient { do { - shortDescription = try container.decode(String.self, forKey: .shortDescription) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68670,7 +68670,7 @@ public extension PlatformClient { do { - images = try container.decode([String].self, forKey: .images) + shortDescription = try container.decode(String.self, forKey: .shortDescription) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68684,19 +68684,19 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(attributes, forKey: .attributes) - try? container.encodeIfPresent(quantity, forKey: .quantity) + try? container.encodeIfPresent(sizes, forKey: .sizes) - try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(attributes, forKey: .attributes) + try? container.encodeIfPresent(quantity, forKey: .quantity) try? container.encodeIfPresent(identifier, forKey: .identifier) - try? container.encodeIfPresent(sizes, forKey: .sizes) + try? container.encodeIfPresent(images, forKey: .images) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(slug, forKey: .slug) try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin) @@ -68704,9 +68704,9 @@ public extension PlatformClient { try? container.encodeIfPresent(price, forKey: .price) - try? container.encodeIfPresent(shortDescription, forKey: .shortDescription) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(images, forKey: .images) + try? container.encodeIfPresent(shortDescription, forKey: .shortDescription) } @@ -68720,37 +68720,37 @@ public extension PlatformClient { class Size: Codable { - public var display: String? + public var value: String? public var isAvailable: Bool? - public var value: String? - public var quantity: Int? + public var display: String? + public enum CodingKeys: String, CodingKey { - case display = "display" + case value = "value" case isAvailable = "is_available" - case value = "value" - case quantity = "quantity" + case display = "display" + } public init(display: String?, isAvailable: Bool?, quantity: Int?, value: String?) { - self.display = display + self.value = value self.isAvailable = isAvailable - self.value = value - self.quantity = quantity + self.display = display + } required public init(from decoder: Decoder) throws { @@ -68758,7 +68758,7 @@ public extension PlatformClient { do { - display = try container.decode(String.self, forKey: .display) + value = try container.decode(String.self, forKey: .value) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68780,7 +68780,7 @@ public extension PlatformClient { do { - value = try container.decode(String.self, forKey: .value) + quantity = try container.decode(Int.self, forKey: .quantity) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68791,7 +68791,7 @@ public extension PlatformClient { do { - quantity = try container.decode(Int.self, forKey: .quantity) + display = try container.decode(String.self, forKey: .display) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68805,14 +68805,14 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(display, forKey: .display) + try? container.encodeIfPresent(value, forKey: .value) try? container.encodeIfPresent(isAvailable, forKey: .isAvailable) - try? container.encodeIfPresent(value, forKey: .value) - try? container.encodeIfPresent(quantity, forKey: .quantity) + try? container.encodeIfPresent(display, forKey: .display) + } } @@ -68825,42 +68825,42 @@ public extension PlatformClient { class Price: Codable { - public var minMarked: Double? - - public var minEffective: Double? - public var maxMarked: Double? + public var currency: String? + public var maxEffective: Double? - public var currency: String? + public var minEffective: Double? + + public var minMarked: Double? public enum CodingKeys: String, CodingKey { - case minMarked = "min_marked" - - case minEffective = "min_effective" - case maxMarked = "max_marked" + case currency = "currency" + case maxEffective = "max_effective" - case currency = "currency" + case minEffective = "min_effective" + + case minMarked = "min_marked" } public init(currency: String?, maxEffective: Double?, maxMarked: Double?, minEffective: Double?, minMarked: Double?) { - self.minMarked = minMarked - - self.minEffective = minEffective - self.maxMarked = maxMarked + self.currency = currency + self.maxEffective = maxEffective - self.currency = currency + self.minEffective = minEffective + + self.minMarked = minMarked } @@ -68869,7 +68869,7 @@ public extension PlatformClient { do { - minMarked = try container.decode(Double.self, forKey: .minMarked) + maxMarked = try container.decode(Double.self, forKey: .maxMarked) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68880,7 +68880,7 @@ public extension PlatformClient { do { - minEffective = try container.decode(Double.self, forKey: .minEffective) + currency = try container.decode(String.self, forKey: .currency) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68891,7 +68891,7 @@ public extension PlatformClient { do { - maxMarked = try container.decode(Double.self, forKey: .maxMarked) + maxEffective = try container.decode(Double.self, forKey: .maxEffective) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68902,7 +68902,7 @@ public extension PlatformClient { do { - maxEffective = try container.decode(Double.self, forKey: .maxEffective) + minEffective = try container.decode(Double.self, forKey: .minEffective) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68913,7 +68913,7 @@ public extension PlatformClient { do { - currency = try container.decode(String.self, forKey: .currency) + minMarked = try container.decode(Double.self, forKey: .minMarked) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -68927,15 +68927,15 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(minMarked, forKey: .minMarked) - - try? container.encodeIfPresent(minEffective, forKey: .minEffective) - try? container.encodeIfPresent(maxMarked, forKey: .maxMarked) + try? container.encodeIfPresent(currency, forKey: .currency) + try? container.encodeIfPresent(maxEffective, forKey: .maxEffective) - try? container.encodeIfPresent(currency, forKey: .currency) + try? container.encodeIfPresent(minEffective, forKey: .minEffective) + + try? container.encodeIfPresent(minMarked, forKey: .minMarked) } @@ -68949,42 +68949,42 @@ public extension PlatformClient { class GetProducts: Codable { - public var minQuantity: Int? - public var productDetails: LimitedProductData? - public var autoAddToCart: Bool? + public var sizes: [Size]? public var autoSelect: Bool? - public var maxQuantity: Int? + public var allowRemove: Bool? - public var productUid: Int? + public var autoAddToCart: Bool? - public var allowRemove: Bool? + public var minQuantity: Int? - public var sizes: [Size]? + public var maxQuantity: Int? + + public var productUid: Int? public var price: Price? public enum CodingKeys: String, CodingKey { - case minQuantity = "min_quantity" - case productDetails = "product_details" - case autoAddToCart = "auto_add_to_cart" + case sizes = "sizes" case autoSelect = "auto_select" - case maxQuantity = "max_quantity" + case allowRemove = "allow_remove" - case productUid = "product_uid" + case autoAddToCart = "auto_add_to_cart" - case allowRemove = "allow_remove" + case minQuantity = "min_quantity" - case sizes = "sizes" + case maxQuantity = "max_quantity" + + case productUid = "product_uid" case price = "price" @@ -68992,21 +68992,21 @@ public extension PlatformClient { public init(allowRemove: Bool?, autoAddToCart: Bool?, autoSelect: Bool?, maxQuantity: Int?, minQuantity: Int?, price: Price?, productDetails: LimitedProductData?, productUid: Int?, sizes: [Size]?) { - self.minQuantity = minQuantity - self.productDetails = productDetails - self.autoAddToCart = autoAddToCart + self.sizes = sizes self.autoSelect = autoSelect - self.maxQuantity = maxQuantity + self.allowRemove = allowRemove - self.productUid = productUid + self.autoAddToCart = autoAddToCart - self.allowRemove = allowRemove + self.minQuantity = minQuantity - self.sizes = sizes + self.maxQuantity = maxQuantity + + self.productUid = productUid self.price = price @@ -69017,7 +69017,7 @@ public extension PlatformClient { do { - minQuantity = try container.decode(Int.self, forKey: .minQuantity) + productDetails = try container.decode(LimitedProductData.self, forKey: .productDetails) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69028,7 +69028,7 @@ public extension PlatformClient { do { - productDetails = try container.decode(LimitedProductData.self, forKey: .productDetails) + sizes = try container.decode([Size].self, forKey: .sizes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69039,7 +69039,7 @@ public extension PlatformClient { do { - autoAddToCart = try container.decode(Bool.self, forKey: .autoAddToCart) + autoSelect = try container.decode(Bool.self, forKey: .autoSelect) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69050,7 +69050,7 @@ public extension PlatformClient { do { - autoSelect = try container.decode(Bool.self, forKey: .autoSelect) + allowRemove = try container.decode(Bool.self, forKey: .allowRemove) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69061,7 +69061,7 @@ public extension PlatformClient { do { - maxQuantity = try container.decode(Int.self, forKey: .maxQuantity) + autoAddToCart = try container.decode(Bool.self, forKey: .autoAddToCart) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69072,7 +69072,7 @@ public extension PlatformClient { do { - productUid = try container.decode(Int.self, forKey: .productUid) + minQuantity = try container.decode(Int.self, forKey: .minQuantity) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69083,7 +69083,7 @@ public extension PlatformClient { do { - allowRemove = try container.decode(Bool.self, forKey: .allowRemove) + maxQuantity = try container.decode(Int.self, forKey: .maxQuantity) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69094,7 +69094,7 @@ public extension PlatformClient { do { - sizes = try container.decode([Size].self, forKey: .sizes) + productUid = try container.decode(Int.self, forKey: .productUid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69119,21 +69119,21 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(minQuantity, forKey: .minQuantity) - try? container.encodeIfPresent(productDetails, forKey: .productDetails) - try? container.encodeIfPresent(autoAddToCart, forKey: .autoAddToCart) + try? container.encodeIfPresent(sizes, forKey: .sizes) try? container.encodeIfPresent(autoSelect, forKey: .autoSelect) - try? container.encodeIfPresent(maxQuantity, forKey: .maxQuantity) + try? container.encodeIfPresent(allowRemove, forKey: .allowRemove) - try? container.encodeIfPresent(productUid, forKey: .productUid) + try? container.encodeIfPresent(autoAddToCart, forKey: .autoAddToCart) - try? container.encodeIfPresent(allowRemove, forKey: .allowRemove) + try? container.encodeIfPresent(minQuantity, forKey: .minQuantity) - try? container.encodeIfPresent(sizes, forKey: .sizes) + try? container.encodeIfPresent(maxQuantity, forKey: .maxQuantity) + + try? container.encodeIfPresent(productUid, forKey: .productUid) try? container.encodeIfPresent(price, forKey: .price) @@ -69149,72 +69149,72 @@ public extension PlatformClient { class GetProductBundleResponse: Codable { - public var companyId: Int? + public var sameStoreAssignment: Bool? - public var choice: String? + public var isActive: Bool? - public var slug: String? + public var products: [GetProducts]? - public var isActive: Bool? + public var pageVisibility: [String]? - public var sameStoreAssignment: Bool? + public var companyId: Int? public var logo: String? - public var name: String? - - public var pageVisibility: [String]? + public var slug: String? public var meta: [String: Any]? - public var products: [GetProducts]? + public var choice: String? + + public var name: String? public enum CodingKeys: String, CodingKey { - case companyId = "company_id" + case sameStoreAssignment = "same_store_assignment" - case choice = "choice" + case isActive = "is_active" - case slug = "slug" + case products = "products" - case isActive = "is_active" + case pageVisibility = "page_visibility" - case sameStoreAssignment = "same_store_assignment" + case companyId = "company_id" case logo = "logo" - case name = "name" - - case pageVisibility = "page_visibility" + case slug = "slug" case meta = "meta" - case products = "products" + case choice = "choice" + + case name = "name" } public init(choice: String?, companyId: Int?, isActive: Bool?, logo: String?, meta: [String: Any]?, name: String?, pageVisibility: [String]?, products: [GetProducts]?, sameStoreAssignment: Bool?, slug: String?) { - self.companyId = companyId + self.sameStoreAssignment = sameStoreAssignment - self.choice = choice + self.isActive = isActive - self.slug = slug + self.products = products - self.isActive = isActive + self.pageVisibility = pageVisibility - self.sameStoreAssignment = sameStoreAssignment + self.companyId = companyId self.logo = logo - self.name = name - - self.pageVisibility = pageVisibility + self.slug = slug self.meta = meta - self.products = products + self.choice = choice + + self.name = name } @@ -69223,7 +69223,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) + sameStoreAssignment = try container.decode(Bool.self, forKey: .sameStoreAssignment) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69234,7 +69234,7 @@ public extension PlatformClient { do { - choice = try container.decode(String.self, forKey: .choice) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69245,7 +69245,7 @@ public extension PlatformClient { do { - slug = try container.decode(String.self, forKey: .slug) + products = try container.decode([GetProducts].self, forKey: .products) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69256,7 +69256,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + pageVisibility = try container.decode([String].self, forKey: .pageVisibility) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69267,7 +69267,7 @@ public extension PlatformClient { do { - sameStoreAssignment = try container.decode(Bool.self, forKey: .sameStoreAssignment) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69289,7 +69289,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + slug = try container.decode(String.self, forKey: .slug) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69300,7 +69300,7 @@ public extension PlatformClient { do { - pageVisibility = try container.decode([String].self, forKey: .pageVisibility) + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69311,7 +69311,7 @@ public extension PlatformClient { do { - meta = try container.decode([String: Any].self, forKey: .meta) + choice = try container.decode(String.self, forKey: .choice) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69322,7 +69322,7 @@ public extension PlatformClient { do { - products = try container.decode([GetProducts].self, forKey: .products) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69336,25 +69336,25 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment) - try? container.encodeIfPresent(choice, forKey: .choice) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(products, forKey: .products) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility) - try? container.encodeIfPresent(sameStoreAssignment, forKey: .sameStoreAssignment) + try? container.encodeIfPresent(companyId, forKey: .companyId) try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(name, forKey: .name) - - try? container.encodeIfPresent(pageVisibility, forKey: .pageVisibility) + try? container.encodeIfPresent(slug, forKey: .slug) try? container.encodeIfPresent(meta, forKey: .meta) - try? container.encodeIfPresent(products, forKey: .products) + try? container.encodeIfPresent(choice, forKey: .choice) + + try? container.encodeIfPresent(name, forKey: .name) } @@ -69368,25 +69368,25 @@ public extension PlatformClient { class ListSizeGuide: Codable { - public var items: [[String: Any]]? - public var page: [String: Any]? + public var items: [[String: Any]]? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: [[String: Any]]?, page: [String: Any]?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -69394,7 +69394,7 @@ public extension PlatformClient { do { - items = try container.decode([[String: Any]].self, forKey: .items) + page = try container.decode([String: Any].self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69405,7 +69405,7 @@ public extension PlatformClient { do { - page = try container.decode([String: Any].self, forKey: .page) + items = try container.decode([[String: Any]].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69419,10 +69419,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } @@ -69435,31 +69435,31 @@ public extension PlatformClient { class Meta: Codable { + public var unit: String? + public var values: [[String: Any]]? public var headers: [String: Any]? - public var unit: String? - public enum CodingKeys: String, CodingKey { + case unit = "unit" + case values = "values" case headers = "headers" - case unit = "unit" - } public init(headers: [String: Any]?, unit: String?, values: [[String: Any]]?) { + self.unit = unit + self.values = values self.headers = headers - self.unit = unit - } required public init(from decoder: Decoder) throws { @@ -69467,7 +69467,7 @@ public extension PlatformClient { do { - values = try container.decode([[String: Any]].self, forKey: .values) + unit = try container.decode(String.self, forKey: .unit) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69478,7 +69478,7 @@ public extension PlatformClient { do { - headers = try container.decode([String: Any].self, forKey: .headers) + values = try container.decode([[String: Any]].self, forKey: .values) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69489,7 +69489,7 @@ public extension PlatformClient { do { - unit = try container.decode(String.self, forKey: .unit) + headers = try container.decode([String: Any].self, forKey: .headers) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69503,12 +69503,12 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(unit, forKey: .unit) + try? container.encodeIfPresent(values, forKey: .values) try? container.encodeIfPresent(headers, forKey: .headers) - try? container.encodeIfPresent(unit, forKey: .unit) - } } @@ -69569,103 +69569,103 @@ public extension PlatformClient { class ValidateSizeGuide: Codable { - public var companyId: Int? - - public var brandId: Int? - - public var active: Bool? + public var modifiedBy: [String: Any]? - public var guide: Guide? + public var createdOn: String? public var createdBy: [String: Any]? - public var createdOn: String? + public var active: Bool? - public var id: String? + public var title: String public var subtitle: String? - public var description: String? + public var brandId: Int? - public var modifiedOn: String? + public var companyId: Int? - public var name: String + public var modifiedOn: String? public var tag: String? - public var modifiedBy: [String: Any]? - - public var title: String + public var description: String? public var image: String? + public var guide: Guide? + + public var id: String? + + public var name: String + public enum CodingKeys: String, CodingKey { - case companyId = "company_id" - - case brandId = "brand_id" - - case active = "active" + case modifiedBy = "modified_by" - case guide = "guide" + case createdOn = "created_on" case createdBy = "created_by" - case createdOn = "created_on" + case active = "active" - case id = "id" + case title = "title" case subtitle = "subtitle" - case description = "description" + case brandId = "brand_id" - case modifiedOn = "modified_on" + case companyId = "company_id" - case name = "name" + case modifiedOn = "modified_on" case tag = "tag" - case modifiedBy = "modified_by" - - case title = "title" + case description = "description" case image = "image" + case guide = "guide" + + case id = "id" + + case name = "name" + } public init(active: Bool?, brandId: Int?, companyId: Int?, createdBy: [String: Any]?, createdOn: String?, description: String?, guide: Guide?, id: String?, image: String?, modifiedBy: [String: Any]?, modifiedOn: String?, name: String, subtitle: String?, tag: String?, title: String) { - self.companyId = companyId - - self.brandId = brandId - - self.active = active + self.modifiedBy = modifiedBy - self.guide = guide + self.createdOn = createdOn self.createdBy = createdBy - self.createdOn = createdOn + self.active = active - self.id = id + self.title = title self.subtitle = subtitle - self.description = description + self.brandId = brandId + + self.companyId = companyId self.modifiedOn = modifiedOn - self.name = name - self.tag = tag - self.modifiedBy = modifiedBy - - self.title = title + self.description = description self.image = image + self.guide = guide + + self.id = id + + self.name = name + } required public init(from decoder: Decoder) throws { @@ -69673,7 +69673,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) + modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69684,7 +69684,7 @@ public extension PlatformClient { do { - brandId = try container.decode(Int.self, forKey: .brandId) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69695,7 +69695,7 @@ public extension PlatformClient { do { - active = try container.decode(Bool.self, forKey: .active) + createdBy = try container.decode([String: Any].self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69706,7 +69706,7 @@ public extension PlatformClient { do { - guide = try container.decode(Guide.self, forKey: .guide) + active = try container.decode(Bool.self, forKey: .active) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69716,8 +69716,12 @@ public extension PlatformClient { + title = try container.decode(String.self, forKey: .title) + + + do { - createdBy = try container.decode([String: Any].self, forKey: .createdBy) + subtitle = try container.decode(String.self, forKey: .subtitle) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69728,7 +69732,7 @@ public extension PlatformClient { do { - createdOn = try container.decode(String.self, forKey: .createdOn) + brandId = try container.decode(Int.self, forKey: .brandId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69739,7 +69743,7 @@ public extension PlatformClient { do { - id = try container.decode(String.self, forKey: .id) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69750,7 +69754,7 @@ public extension PlatformClient { do { - subtitle = try container.decode(String.self, forKey: .subtitle) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69761,7 +69765,7 @@ public extension PlatformClient { do { - description = try container.decode(String.self, forKey: .description) + tag = try container.decode(String.self, forKey: .tag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69772,7 +69776,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + description = try container.decode(String.self, forKey: .description) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69782,12 +69786,8 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - do { - tag = try container.decode(String.self, forKey: .tag) + image = try container.decode(String.self, forKey: .image) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69798,7 +69798,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) + guide = try container.decode(Guide.self, forKey: .guide) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69808,12 +69808,8 @@ public extension PlatformClient { - title = try container.decode(String.self, forKey: .title) - - - do { - image = try container.decode(String.self, forKey: .image) + id = try container.decode(String.self, forKey: .id) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -69822,41 +69818,45 @@ public extension PlatformClient { } + + name = try container.decode(String.self, forKey: .name) + + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(companyId, forKey: .companyId) - - try? container.encodeIfPresent(brandId, forKey: .brandId) - - try? container.encodeIfPresent(active, forKey: .active) + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(guide, forKey: .guide) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) try? container.encodeIfPresent(createdBy, forKey: .createdBy) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) + try? container.encodeIfPresent(active, forKey: .active) - try? container.encodeIfPresent(id, forKey: .id) + try? container.encodeIfPresent(title, forKey: .title) try? container.encodeIfPresent(subtitle, forKey: .subtitle) - try? container.encodeIfPresent(description, forKey: .description) + try? container.encodeIfPresent(brandId, forKey: .brandId) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) try? container.encodeIfPresent(tag, forKey: .tag) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - - try? container.encodeIfPresent(title, forKey: .title) + try? container.encodeIfPresent(description, forKey: .description) try? container.encodeIfPresent(image, forKey: .image) + try? container.encodeIfPresent(guide, forKey: .guide) + + try? container.encodeIfPresent(id, forKey: .id) + + try? container.encodeIfPresent(name, forKey: .name) + } } @@ -69938,58 +69938,58 @@ public extension PlatformClient { public var createdOn: String? - public var brandId: Int? + public var createdBy: [String: Any]? public var active: Bool? - public var companyId: Int? - - public var tag: String? + public var name: String? - public var id: String? + public var title: String? public var subtitle: String? - public var modifiedOn: String? + public var brandId: Int? - public var name: String? + public var companyId: Int? - public var guide: [String: Any]? + public var tag: String? - public var title: String? + public var guide: [String: Any]? public var modifiedBy: [String: Any]? - public var createdBy: [String: Any]? + public var id: String? + + public var modifiedOn: String? public enum CodingKeys: String, CodingKey { case createdOn = "created_on" - case brandId = "brand_id" + case createdBy = "created_by" case active = "active" - case companyId = "company_id" - - case tag = "tag" + case name = "name" - case id = "id" + case title = "title" case subtitle = "subtitle" - case modifiedOn = "modified_on" + case brandId = "brand_id" - case name = "name" + case companyId = "company_id" - case guide = "guide" + case tag = "tag" - case title = "title" + case guide = "guide" case modifiedBy = "modified_by" - case createdBy = "created_by" + case id = "id" + + case modifiedOn = "modified_on" } @@ -69997,29 +69997,29 @@ public extension PlatformClient { self.createdOn = createdOn - self.brandId = brandId + self.createdBy = createdBy self.active = active - self.companyId = companyId - - self.tag = tag + self.name = name - self.id = id + self.title = title self.subtitle = subtitle - self.modifiedOn = modifiedOn + self.brandId = brandId - self.name = name + self.companyId = companyId - self.guide = guide + self.tag = tag - self.title = title + self.guide = guide self.modifiedBy = modifiedBy - self.createdBy = createdBy + self.id = id + + self.modifiedOn = modifiedOn } @@ -70039,7 +70039,7 @@ public extension PlatformClient { do { - brandId = try container.decode(Int.self, forKey: .brandId) + createdBy = try container.decode([String: Any].self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70061,7 +70061,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70072,7 +70072,7 @@ public extension PlatformClient { do { - tag = try container.decode(String.self, forKey: .tag) + title = try container.decode(String.self, forKey: .title) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70083,7 +70083,7 @@ public extension PlatformClient { do { - id = try container.decode(String.self, forKey: .id) + subtitle = try container.decode(String.self, forKey: .subtitle) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70094,7 +70094,7 @@ public extension PlatformClient { do { - subtitle = try container.decode(String.self, forKey: .subtitle) + brandId = try container.decode(Int.self, forKey: .brandId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70105,7 +70105,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70116,7 +70116,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + tag = try container.decode(String.self, forKey: .tag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70138,7 +70138,7 @@ public extension PlatformClient { do { - title = try container.decode(String.self, forKey: .title) + modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70149,7 +70149,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) + id = try container.decode(String.self, forKey: .id) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70160,7 +70160,7 @@ public extension PlatformClient { do { - createdBy = try container.decode([String: Any].self, forKey: .createdBy) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70176,73 +70176,61 @@ public extension PlatformClient { try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(brandId, forKey: .brandId) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) try? container.encodeIfPresent(active, forKey: .active) - try? container.encodeIfPresent(companyId, forKey: .companyId) - - try? container.encodeIfPresent(tag, forKey: .tag) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(id, forKey: .id) + try? container.encodeIfPresent(title, forKey: .title) try? container.encodeIfPresent(subtitle, forKey: .subtitle) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(brandId, forKey: .brandId) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(guide, forKey: .guide) + try? container.encodeIfPresent(tag, forKey: .tag) - try? container.encodeIfPresent(title, forKey: .title) + try? container.encodeIfPresent(guide, forKey: .guide) try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(id, forKey: .id) + + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) } } /* - Model: MetaDataListingFilterMetaResponse + Model: MetaDataListingSortMetaResponse Used By: Catalog */ - class MetaDataListingFilterMetaResponse: Codable { - - - public var display: String? - - public var filterTypes: [String]? + class MetaDataListingSortMetaResponse: Codable { - public var units: [[String: Any]]? public var key: String? + public var display: String? + public enum CodingKeys: String, CodingKey { - case display = "display" - - case filterTypes = "filter_types" - - case units = "units" - case key = "key" + case display = "display" + } - public init(display: String?, filterTypes: [String]?, key: String?, units: [[String: Any]]?) { - - self.display = display - - self.filterTypes = filterTypes - - self.units = units + public init(display: String?, key: String?) { self.key = key + self.display = display + } required public init(from decoder: Decoder) throws { @@ -70250,29 +70238,7 @@ public extension PlatformClient { do { - display = try container.decode(String.self, forKey: .display) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - filterTypes = try container.decode([String].self, forKey: .filterTypes) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - units = try container.decode([[String: Any]].self, forKey: .units) + key = try container.decode(String.self, forKey: .key) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70283,7 +70249,7 @@ public extension PlatformClient { do { - key = try container.decode(String.self, forKey: .key) + display = try container.decode(String.self, forKey: .display) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70297,27 +70263,23 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(display, forKey: .display) - - try? container.encodeIfPresent(filterTypes, forKey: .filterTypes) - - try? container.encodeIfPresent(units, forKey: .units) - try? container.encodeIfPresent(key, forKey: .key) + try? container.encodeIfPresent(display, forKey: .display) + } } /* - Model: MetaDataListingFilterResponse + Model: MetaDataListingSortResponse Used By: Catalog */ - class MetaDataListingFilterResponse: Codable { + class MetaDataListingSortResponse: Codable { - public var data: [MetaDataListingFilterMetaResponse]? + public var data: [MetaDataListingSortMetaResponse]? public enum CodingKeys: String, CodingKey { @@ -70326,7 +70288,7 @@ public extension PlatformClient { } - public init(data: [MetaDataListingFilterMetaResponse]?) { + public init(data: [MetaDataListingSortMetaResponse]?) { self.data = data @@ -70337,7 +70299,7 @@ public extension PlatformClient { do { - data = try container.decode([MetaDataListingFilterMetaResponse].self, forKey: .data) + data = try container.decode([MetaDataListingSortMetaResponse].self, forKey: .data) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70358,32 +70320,44 @@ public extension PlatformClient { } /* - Model: MetaDataListingSortMetaResponse + Model: MetaDataListingFilterMetaResponse Used By: Catalog */ - class MetaDataListingSortMetaResponse: Codable { + class MetaDataListingFilterMetaResponse: Codable { - public var display: String? + public var units: [[String: Any]]? + + public var filterTypes: [String]? public var key: String? + public var display: String? + public enum CodingKeys: String, CodingKey { - case display = "display" + case units = "units" + + case filterTypes = "filter_types" case key = "key" + case display = "display" + } - public init(display: String?, key: String?) { + public init(display: String?, filterTypes: [String]?, key: String?, units: [[String: Any]]?) { - self.display = display + self.units = units + + self.filterTypes = filterTypes self.key = key + self.display = display + } required public init(from decoder: Decoder) throws { @@ -70391,7 +70365,18 @@ public extension PlatformClient { do { - display = try container.decode(String.self, forKey: .display) + units = try container.decode([[String: Any]].self, forKey: .units) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + filterTypes = try container.decode([String].self, forKey: .filterTypes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70411,28 +70396,43 @@ public extension PlatformClient { } + + do { + display = try container.decode(String.self, forKey: .display) + } 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(display, forKey: .display) + try? container.encodeIfPresent(units, forKey: .units) + + try? container.encodeIfPresent(filterTypes, forKey: .filterTypes) try? container.encodeIfPresent(key, forKey: .key) + try? container.encodeIfPresent(display, forKey: .display) + } } /* - Model: MetaDataListingSortResponse + Model: MetaDataListingFilterResponse Used By: Catalog */ - class MetaDataListingSortResponse: Codable { + class MetaDataListingFilterResponse: Codable { - public var data: [MetaDataListingSortMetaResponse]? + public var data: [MetaDataListingFilterMetaResponse]? public enum CodingKeys: String, CodingKey { @@ -70441,7 +70441,7 @@ public extension PlatformClient { } - public init(data: [MetaDataListingSortMetaResponse]?) { + public init(data: [MetaDataListingFilterMetaResponse]?) { self.data = data @@ -70452,7 +70452,7 @@ public extension PlatformClient { do { - data = try container.decode([MetaDataListingSortMetaResponse].self, forKey: .data) + data = try container.decode([MetaDataListingFilterMetaResponse].self, forKey: .data) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70480,36 +70480,36 @@ public extension PlatformClient { class MetaDataListingResponse: Codable { - public var filter: MetaDataListingFilterResponse - public var sort: MetaDataListingSortResponse + public var filter: MetaDataListingFilterResponse + public enum CodingKeys: String, CodingKey { - case filter = "filter" - case sort = "sort" + case filter = "filter" + } public init(filter: MetaDataListingFilterResponse, sort: MetaDataListingSortResponse) { - self.filter = filter - self.sort = sort + self.filter = filter + } required public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - filter = try container.decode(MetaDataListingFilterResponse.self, forKey: .filter) + sort = try container.decode(MetaDataListingSortResponse.self, forKey: .sort) - sort = try container.decode(MetaDataListingSortResponse.self, forKey: .sort) + filter = try container.decode(MetaDataListingFilterResponse.self, forKey: .filter) } @@ -70517,10 +70517,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(filter, forKey: .filter) - try? container.encodeIfPresent(sort, forKey: .sort) + try? container.encodeIfPresent(filter, forKey: .filter) + } } @@ -70535,35 +70535,35 @@ public extension PlatformClient { public var detail: [String: Any]? + public var variant: [String: Any]? + public var compare: [String: Any]? public var similar: [String: Any]? - public var variant: [String: Any]? - public enum CodingKeys: String, CodingKey { case detail = "detail" + case variant = "variant" + case compare = "compare" case similar = "similar" - case variant = "variant" - } public init(compare: [String: Any]?, detail: [String: Any]?, similar: [String: Any]?, variant: [String: Any]?) { self.detail = detail + self.variant = variant + self.compare = compare self.similar = similar - self.variant = variant - } required public init(from decoder: Decoder) throws { @@ -70582,7 +70582,7 @@ public extension PlatformClient { do { - compare = try container.decode([String: Any].self, forKey: .compare) + variant = try container.decode([String: Any].self, forKey: .variant) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70593,7 +70593,7 @@ public extension PlatformClient { do { - similar = try container.decode([String: Any].self, forKey: .similar) + compare = try container.decode([String: Any].self, forKey: .compare) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70604,7 +70604,7 @@ public extension PlatformClient { do { - variant = try container.decode([String: Any].self, forKey: .variant) + similar = try container.decode([String: Any].self, forKey: .similar) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70620,12 +70620,12 @@ public extension PlatformClient { try? container.encodeIfPresent(detail, forKey: .detail) + try? container.encodeIfPresent(variant, forKey: .variant) + try? container.encodeIfPresent(compare, forKey: .compare) try? container.encodeIfPresent(similar, forKey: .similar) - try? container.encodeIfPresent(variant, forKey: .variant) - } } @@ -70698,31 +70698,31 @@ public extension PlatformClient { } /* - Model: ConfigurationBucketPoints + Model: ProductSize Used By: Catalog */ - class ConfigurationBucketPoints: Codable { + class ProductSize: Codable { - public var end: Double? + public var max: Int - public var start: Double? + public var min: Int public enum CodingKeys: String, CodingKey { - case end = "end" + case max = "max" - case start = "start" + case min = "min" } - public init(end: Double?, start: Double?) { + public init(max: Int, min: Int) { - self.end = end + self.max = max - self.start = start + self.min = min } @@ -70730,84 +70730,82 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - end = try container.decode(Double.self, forKey: .end) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + max = try container.decode(Int.self, forKey: .max) - do { - start = try container.decode(Double.self, forKey: .start) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + + min = try container.decode(Int.self, forKey: .min) + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(end, forKey: .end) + try? container.encodeIfPresent(max, forKey: .max) - try? container.encodeIfPresent(start, forKey: .start) + try? container.encodeIfPresent(min, forKey: .min) } } /* - Model: ConfigurationListingFilterValue + Model: ConfigurationProductVariantConfig Used By: Catalog */ - class ConfigurationListingFilterValue: Codable { + class ConfigurationProductVariantConfig: Codable { - public var value: String? + public var isActive: Bool - public var map: [String: Any]? + public var priority: Int - public var condition: String? + public var displayType: String - public var bucketPoints: [ConfigurationBucketPoints]? + public var logo: String? - public var sort: String? + public var size: ProductSize + + public var key: String + + public var name: String public enum CodingKeys: String, CodingKey { - case value = "value" + case isActive = "is_active" - case map = "map" + case priority = "priority" - case condition = "condition" + case displayType = "display_type" - case bucketPoints = "bucket_points" + case logo = "logo" - case sort = "sort" + case size = "size" + + case key = "key" + + case name = "name" } - public init(bucketPoints: [ConfigurationBucketPoints]?, condition: String?, map: [String: Any]?, sort: String?, value: String?) { + public init(displayType: String, isActive: Bool, key: String, logo: String?, name: String, priority: Int, size: ProductSize) { - self.value = value + self.isActive = isActive - self.map = map + self.priority = priority - self.condition = condition + self.displayType = displayType - self.bucketPoints = bucketPoints + self.logo = logo - self.sort = sort + self.size = size + + self.key = key + + self.name = name } @@ -70815,52 +70813,20 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - value = try container.decode(String.self, forKey: .value) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + isActive = try container.decode(Bool.self, forKey: .isActive) - do { - map = try container.decode([String: Any].self, forKey: .map) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + priority = try container.decode(Int.self, forKey: .priority) - do { - condition = try container.decode(String.self, forKey: .condition) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - do { - bucketPoints = try container.decode([ConfigurationBucketPoints].self, forKey: .bucketPoints) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + displayType = try container.decode(String.self, forKey: .displayType) + do { - sort = try container.decode(String.self, forKey: .sort) + logo = try container.decode(String.self, forKey: .logo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70869,90 +70835,158 @@ public extension PlatformClient { } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(value, forKey: .value) + size = try container.decode(ProductSize.self, forKey: .size) - try? container.encodeIfPresent(map, forKey: .map) - try? container.encodeIfPresent(condition, forKey: .condition) - try? container.encodeIfPresent(bucketPoints, forKey: .bucketPoints) + key = try container.decode(String.self, forKey: .key) + + + + name = try container.decode(String.self, forKey: .name) - try? container.encodeIfPresent(sort, forKey: .sort) } - } + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(isActive, forKey: .isActive) + + try? container.encodeIfPresent(priority, forKey: .priority) + + try? container.encodeIfPresent(displayType, forKey: .displayType) + + try? container.encodeIfPresent(logo, forKey: .logo) + + try? container.encodeIfPresent(size, forKey: .size) + + try? container.encodeIfPresent(key, forKey: .key) + + try? container.encodeIfPresent(name, forKey: .name) + + } + + } /* - Model: ConfigurationListingFilterConfig + Model: ConfigurationProductVariant Used By: Catalog */ - class ConfigurationListingFilterConfig: Codable { + class ConfigurationProductVariant: Codable { - public var valueConfig: ConfigurationListingFilterValue? + public var config: [ConfigurationProductVariantConfig]? + + + public enum CodingKeys: String, CodingKey { + + case config = "config" + + } + + public init(config: [ConfigurationProductVariantConfig]?) { + + self.config = config + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + config = try container.decode([ConfigurationProductVariantConfig].self, forKey: .config) + } 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(config, forKey: .config) + + } + + } + + /* + Model: ConfigurationProductConfig + Used By: Catalog + */ + + class ConfigurationProductConfig: Codable { - public var type: String public var isActive: Bool - public var logo: String? + public var title: String? - public var priority: Int + public var subtitle: String? - public var name: String? + public var logo: String? + + public var size: ProductSize? public var key: String + public var priority: Int + public enum CodingKeys: String, CodingKey { - case valueConfig = "value_config" + case isActive = "is_active" - case type = "type" + case title = "title" - case isActive = "is_active" + case subtitle = "subtitle" case logo = "logo" - case priority = "priority" - - case name = "name" + case size = "size" case key = "key" + case priority = "priority" + } - public init(isActive: Bool, key: String, logo: String?, name: String?, priority: Int, type: String, valueConfig: ConfigurationListingFilterValue?) { + public init(isActive: Bool, key: String, logo: String?, priority: Int, size: ProductSize?, subtitle: String?, title: String?) { - self.valueConfig = valueConfig + self.isActive = isActive - self.type = type + self.title = title - self.isActive = isActive + self.subtitle = subtitle self.logo = logo - self.priority = priority - - self.name = name + self.size = size self.key = key + self.priority = priority + } required public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) + isActive = try container.decode(Bool.self, forKey: .isActive) + + + do { - valueConfig = try container.decode(ConfigurationListingFilterValue.self, forKey: .valueConfig) + title = try container.decode(String.self, forKey: .title) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70962,12 +70996,15 @@ public extension PlatformClient { - type = try container.decode(String.self, forKey: .type) - - - - isActive = try container.decode(Bool.self, forKey: .isActive) - + do { + subtitle = try container.decode(String.self, forKey: .subtitle) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + do { @@ -70981,12 +71018,8 @@ public extension PlatformClient { - priority = try container.decode(Int.self, forKey: .priority) - - - do { - name = try container.decode(String.self, forKey: .name) + size = try container.decode(ProductSize.self, forKey: .size) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -70999,55 +71032,53 @@ public extension PlatformClient { key = try container.decode(String.self, forKey: .key) + + priority = try container.decode(Int.self, forKey: .priority) + + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(valueConfig, forKey: .valueConfig) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(type, forKey: .type) + try? container.encodeIfPresent(title, forKey: .title) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(subtitle, forKey: .subtitle) try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(priority, forKey: .priority) - - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(size, forKey: .size) try? container.encodeIfPresent(key, forKey: .key) + try? container.encodeIfPresent(priority, forKey: .priority) + } } /* - Model: ConfigurationListingFilter + Model: ConfigurationProductSimilar Used By: Catalog */ - class ConfigurationListingFilter: Codable { - + class ConfigurationProductSimilar: Codable { - public var attributeConfig: [ConfigurationListingFilterConfig]? - public var allowSingle: Bool + public var config: [ConfigurationProductConfig]? public enum CodingKeys: String, CodingKey { - case attributeConfig = "attribute_config" - - case allowSingle = "allow_single" + case config = "config" } - public init(allowSingle: Bool, attributeConfig: [ConfigurationListingFilterConfig]?) { - - self.attributeConfig = attributeConfig + public init(config: [ConfigurationProductConfig]?) { - self.allowSingle = allowSingle + self.config = config } @@ -71056,7 +71087,7 @@ public extension PlatformClient { do { - attributeConfig = try container.decode([ConfigurationListingFilterConfig].self, forKey: .attributeConfig) + config = try container.decode([ConfigurationProductConfig].self, forKey: .config) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -71065,8 +71096,55 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) - allowSingle = try container.decode(Bool.self, forKey: .allowSingle) + try? container.encodeIfPresent(config, forKey: .config) + + } + + } + + /* + Model: ConfigurationProduct + Used By: Catalog + */ + + class ConfigurationProduct: Codable { + + + public var variant: ConfigurationProductVariant + + public var similar: ConfigurationProductSimilar + + + public enum CodingKeys: String, CodingKey { + + case variant = "variant" + + case similar = "similar" + + } + + public init(similar: ConfigurationProductSimilar, variant: ConfigurationProductVariant) { + + self.variant = variant + + self.similar = similar + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + variant = try container.decode(ConfigurationProductVariant.self, forKey: .variant) + + + + similar = try container.decode(ConfigurationProductSimilar.self, forKey: .similar) } @@ -71074,9 +71152,9 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(attributeConfig, forKey: .attributeConfig) + try? container.encodeIfPresent(variant, forKey: .variant) - try? container.encodeIfPresent(allowSingle, forKey: .allowSingle) + try? container.encodeIfPresent(similar, forKey: .similar) } @@ -71092,41 +71170,41 @@ public extension PlatformClient { public var isActive: Bool - public var logo: String? - public var priority: Int - public var name: String? + public var logo: String? public var key: String + public var name: String? + public enum CodingKeys: String, CodingKey { case isActive = "is_active" - case logo = "logo" - case priority = "priority" - case name = "name" + case logo = "logo" case key = "key" + case name = "name" + } public init(isActive: Bool, key: String, logo: String?, name: String?, priority: Int) { self.isActive = isActive - self.logo = logo - self.priority = priority - self.name = name + self.logo = logo self.key = key + self.name = name + } required public init(from decoder: Decoder) throws { @@ -71137,6 +71215,10 @@ public extension PlatformClient { + priority = try container.decode(Int.self, forKey: .priority) + + + do { logo = try container.decode(String.self, forKey: .logo) } catch DecodingError.typeMismatch(let type, let context) { @@ -71148,7 +71230,7 @@ public extension PlatformClient { - priority = try container.decode(Int.self, forKey: .priority) + key = try container.decode(String.self, forKey: .key) @@ -71162,10 +71244,6 @@ public extension PlatformClient { } - - key = try container.decode(String.self, forKey: .key) - - } public func encode(to encoder: Encoder) throws { @@ -71173,14 +71251,14 @@ public extension PlatformClient { try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(priority, forKey: .priority) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(logo, forKey: .logo) try? container.encodeIfPresent(key, forKey: .key) + try? container.encodeIfPresent(name, forKey: .name) + } } @@ -71246,31 +71324,31 @@ public extension PlatformClient { } /* - Model: ConfigurationListing + Model: ConfigurationBucketPoints Used By: Catalog */ - class ConfigurationListing: Codable { + class ConfigurationBucketPoints: Codable { - public var filter: ConfigurationListingFilter + public var start: Double? - public var sort: ConfigurationListingSort + public var end: Double? public enum CodingKeys: String, CodingKey { - case filter = "filter" + case start = "start" - case sort = "sort" + case end = "end" } - public init(filter: ConfigurationListingFilter, sort: ConfigurationListingSort) { + public init(end: Double?, start: Double?) { - self.filter = filter + self.start = start - self.sort = sort + self.end = end } @@ -71278,52 +71356,84 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - filter = try container.decode(ConfigurationListingFilter.self, forKey: .filter) - - + do { + start = try container.decode(Double.self, forKey: .start) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - sort = try container.decode(ConfigurationListingSort.self, forKey: .sort) + do { + end = try container.decode(Double.self, forKey: .end) + } 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(filter, forKey: .filter) + try? container.encodeIfPresent(start, forKey: .start) - try? container.encodeIfPresent(sort, forKey: .sort) + try? container.encodeIfPresent(end, forKey: .end) } } /* - Model: ProductSize + Model: ConfigurationListingFilterValue Used By: Catalog */ - class ProductSize: Codable { + class ConfigurationListingFilterValue: Codable { - public var min: Int + public var sort: String? - public var max: Int + public var condition: String? + + public var bucketPoints: [ConfigurationBucketPoints]? + + public var value: String? + + public var map: [String: Any]? public enum CodingKeys: String, CodingKey { - case min = "min" + case sort = "sort" - case max = "max" + case condition = "condition" + + case bucketPoints = "bucket_points" + + case value = "value" + + case map = "map" } - public init(max: Int, min: Int) { + public init(bucketPoints: [ConfigurationBucketPoints]?, condition: String?, map: [String: Any]?, sort: String?, value: String?) { - self.min = min + self.sort = sort - self.max = max + self.condition = condition + + self.bucketPoints = bucketPoints + + self.value = value + + self.map = map } @@ -71331,82 +71441,135 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - min = try container.decode(Int.self, forKey: .min) + do { + sort = try container.decode(String.self, forKey: .sort) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + condition = try container.decode(String.self, forKey: .condition) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + bucketPoints = try container.decode([ConfigurationBucketPoints].self, forKey: .bucketPoints) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + do { + value = try container.decode(String.self, forKey: .value) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - max = try container.decode(Int.self, forKey: .max) + do { + map = try container.decode([String: Any].self, forKey: .map) + } 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(min, forKey: .min) + try? container.encodeIfPresent(sort, forKey: .sort) - try? container.encodeIfPresent(max, forKey: .max) + try? container.encodeIfPresent(condition, forKey: .condition) + + try? container.encodeIfPresent(bucketPoints, forKey: .bucketPoints) + + try? container.encodeIfPresent(value, forKey: .value) + + try? container.encodeIfPresent(map, forKey: .map) } } /* - Model: ConfigurationProductConfig + Model: ConfigurationListingFilterConfig Used By: Catalog */ - class ConfigurationProductConfig: Codable { + class ConfigurationListingFilterConfig: Codable { public var isActive: Bool - public var subtitle: String? + public var priority: Int - public var size: ProductSize? + public var type: String - public var logo: String? + public var valueConfig: ConfigurationListingFilterValue? - public var priority: Int + public var logo: String? public var key: String - public var title: String? + public var name: String? public enum CodingKeys: String, CodingKey { case isActive = "is_active" - case subtitle = "subtitle" + case priority = "priority" - case size = "size" + case type = "type" - case logo = "logo" + case valueConfig = "value_config" - case priority = "priority" + case logo = "logo" case key = "key" - case title = "title" + case name = "name" } - public init(isActive: Bool, key: String, logo: String?, priority: Int, size: ProductSize?, subtitle: String?, title: String?) { + public init(isActive: Bool, key: String, logo: String?, name: String?, priority: Int, type: String, valueConfig: ConfigurationListingFilterValue?) { self.isActive = isActive - self.subtitle = subtitle + self.priority = priority - self.size = size + self.type = type - self.logo = logo + self.valueConfig = valueConfig - self.priority = priority + self.logo = logo self.key = key - self.title = title + self.name = name } @@ -71418,19 +71581,16 @@ public extension PlatformClient { - do { - subtitle = try container.decode(String.self, forKey: .subtitle) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + priority = try container.decode(Int.self, forKey: .priority) + + + + type = try container.decode(String.self, forKey: .type) + do { - size = try container.decode(ProductSize.self, forKey: .size) + valueConfig = try container.decode(ConfigurationListingFilterValue.self, forKey: .valueConfig) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -71451,16 +71611,12 @@ public extension PlatformClient { - priority = try container.decode(Int.self, forKey: .priority) - - - key = try container.decode(String.self, forKey: .key) do { - title = try container.decode(String.self, forKey: .title) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -71476,42 +71632,48 @@ public extension PlatformClient { try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(subtitle, forKey: .subtitle) + try? container.encodeIfPresent(priority, forKey: .priority) - try? container.encodeIfPresent(size, forKey: .size) + try? container.encodeIfPresent(type, forKey: .type) - try? container.encodeIfPresent(logo, forKey: .logo) + try? container.encodeIfPresent(valueConfig, forKey: .valueConfig) - try? container.encodeIfPresent(priority, forKey: .priority) + try? container.encodeIfPresent(logo, forKey: .logo) try? container.encodeIfPresent(key, forKey: .key) - try? container.encodeIfPresent(title, forKey: .title) + try? container.encodeIfPresent(name, forKey: .name) } } /* - Model: ConfigurationProductSimilar + Model: ConfigurationListingFilter Used By: Catalog */ - class ConfigurationProductSimilar: Codable { + class ConfigurationListingFilter: Codable { - public var config: [ConfigurationProductConfig]? + public var allowSingle: Bool + + public var attributeConfig: [ConfigurationListingFilterConfig]? public enum CodingKeys: String, CodingKey { - case config = "config" + case allowSingle = "allow_single" + + case attributeConfig = "attribute_config" } - public init(config: [ConfigurationProductConfig]?) { + public init(allowSingle: Bool, attributeConfig: [ConfigurationListingFilterConfig]?) { - self.config = config + self.allowSingle = allowSingle + + self.attributeConfig = attributeConfig } @@ -71519,8 +71681,12 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) + allowSingle = try container.decode(Bool.self, forKey: .allowSingle) + + + do { - config = try container.decode([ConfigurationProductConfig].self, forKey: .config) + attributeConfig = try container.decode([ConfigurationListingFilterConfig].self, forKey: .attributeConfig) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -71534,206 +71700,40 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(config, forKey: .config) + try? container.encodeIfPresent(allowSingle, forKey: .allowSingle) + + try? container.encodeIfPresent(attributeConfig, forKey: .attributeConfig) } } /* - Model: ConfigurationProductVariantConfig + Model: ConfigurationListing Used By: Catalog */ - class ConfigurationProductVariantConfig: Codable { - - - public var isActive: Bool - - public var size: ProductSize - - public var logo: String? + class ConfigurationListing: Codable { - public var priority: Int - public var name: String + public var sort: ConfigurationListingSort - public var key: String - - public var displayType: String - - - public enum CodingKeys: String, CodingKey { - - case isActive = "is_active" - - case size = "size" - - case logo = "logo" - - case priority = "priority" - - case name = "name" - - case key = "key" - - case displayType = "display_type" - - } - - public init(displayType: String, isActive: Bool, key: String, logo: String?, name: String, priority: Int, size: ProductSize) { - - self.isActive = isActive - - self.size = size - - self.logo = logo - - self.priority = priority - - self.name = name - - self.key = key - - self.displayType = displayType - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - isActive = try container.decode(Bool.self, forKey: .isActive) - - - - size = try container.decode(ProductSize.self, forKey: .size) - - - - do { - logo = try container.decode(String.self, forKey: .logo) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - priority = try container.decode(Int.self, forKey: .priority) - - - - name = try container.decode(String.self, forKey: .name) - - - - key = try container.decode(String.self, forKey: .key) - - - - displayType = try container.decode(String.self, forKey: .displayType) - - - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - - try? container.encodeIfPresent(isActive, forKey: .isActive) - - try? container.encodeIfPresent(size, forKey: .size) - - try? container.encodeIfPresent(logo, forKey: .logo) - - try? container.encodeIfPresent(priority, forKey: .priority) - - try? container.encodeIfPresent(name, forKey: .name) - - try? container.encodeIfPresent(key, forKey: .key) - - try? container.encodeIfPresent(displayType, forKey: .displayType) - - } - - } - - /* - Model: ConfigurationProductVariant - Used By: Catalog - */ - - class ConfigurationProductVariant: Codable { - - - public var config: [ConfigurationProductVariantConfig]? - - - public enum CodingKeys: String, CodingKey { - - case config = "config" - - } - - public init(config: [ConfigurationProductVariantConfig]?) { - - self.config = config - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - do { - config = try container.decode([ConfigurationProductVariantConfig].self, forKey: .config) - } 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(config, forKey: .config) - - } - - } - - /* - Model: ConfigurationProduct - Used By: Catalog - */ - - class ConfigurationProduct: Codable { - - - public var similar: ConfigurationProductSimilar - - public var variant: ConfigurationProductVariant + public var filter: ConfigurationListingFilter public enum CodingKeys: String, CodingKey { - case similar = "similar" + case sort = "sort" - case variant = "variant" + case filter = "filter" } - public init(similar: ConfigurationProductSimilar, variant: ConfigurationProductVariant) { + public init(filter: ConfigurationListingFilter, sort: ConfigurationListingSort) { - self.similar = similar + self.sort = sort - self.variant = variant + self.filter = filter } @@ -71741,11 +71741,11 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - similar = try container.decode(ConfigurationProductSimilar.self, forKey: .similar) + sort = try container.decode(ConfigurationListingSort.self, forKey: .sort) - variant = try container.decode(ConfigurationProductVariant.self, forKey: .variant) + filter = try container.decode(ConfigurationListingFilter.self, forKey: .filter) } @@ -71753,9 +71753,9 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(similar, forKey: .similar) + try? container.encodeIfPresent(sort, forKey: .sort) - try? container.encodeIfPresent(variant, forKey: .variant) + try? container.encodeIfPresent(filter, forKey: .filter) } @@ -71769,49 +71769,49 @@ public extension PlatformClient { class AppCatalogConfiguration: Codable { - public var configId: String? + public var product: ConfigurationProduct? public var configType: String + public var configId: String? + public var listing: ConfigurationListing? public var appId: String public var id: String? - public var product: ConfigurationProduct? - public enum CodingKeys: String, CodingKey { - case configId = "config_id" + case product = "product" case configType = "config_type" + case configId = "config_id" + case listing = "listing" case appId = "app_id" case id = "id" - case product = "product" - } public init(appId: String, configId: String?, configType: String, id: String?, listing: ConfigurationListing?, product: ConfigurationProduct?) { - self.configId = configId + self.product = product self.configType = configType + self.configId = configId + self.listing = listing self.appId = appId self.id = id - self.product = product - } required public init(from decoder: Decoder) throws { @@ -71819,7 +71819,7 @@ public extension PlatformClient { do { - configId = try container.decode(String.self, forKey: .configId) + product = try container.decode(ConfigurationProduct.self, forKey: .product) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -71834,7 +71834,7 @@ public extension PlatformClient { do { - listing = try container.decode(ConfigurationListing.self, forKey: .listing) + configId = try container.decode(String.self, forKey: .configId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -71844,12 +71844,8 @@ public extension PlatformClient { - appId = try container.decode(String.self, forKey: .appId) - - - do { - id = try container.decode(String.self, forKey: .id) + listing = try container.decode(ConfigurationListing.self, forKey: .listing) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -71859,8 +71855,12 @@ public extension PlatformClient { + appId = try container.decode(String.self, forKey: .appId) + + + do { - product = try container.decode(ConfigurationProduct.self, forKey: .product) + id = try container.decode(String.self, forKey: .id) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -71874,18 +71874,18 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(configId, forKey: .configId) + try? container.encodeIfPresent(product, forKey: .product) try? container.encodeIfPresent(configType, forKey: .configType) + try? container.encodeIfPresent(configId, forKey: .configId) + try? container.encodeIfPresent(listing, forKey: .listing) try? container.encodeIfPresent(appId, forKey: .appId) try? container.encodeIfPresent(id, forKey: .id) - try? container.encodeIfPresent(product, forKey: .product) - } } @@ -71965,43 +71965,43 @@ public extension PlatformClient { class AppConfiguration: Codable { - public var configId: String? + public var product: ConfigurationProduct? public var configType: String + public var configId: String? + public var listing: ConfigurationListing? public var appId: String - public var product: ConfigurationProduct? - public enum CodingKeys: String, CodingKey { - case configId = "config_id" + case product = "product" case configType = "config_type" + case configId = "config_id" + case listing = "listing" case appId = "app_id" - case product = "product" - } public init(appId: String, configId: String?, configType: String, listing: ConfigurationListing?, product: ConfigurationProduct?) { - self.configId = configId + self.product = product self.configType = configType + self.configId = configId + self.listing = listing self.appId = appId - self.product = product - } required public init(from decoder: Decoder) throws { @@ -72009,7 +72009,7 @@ public extension PlatformClient { do { - configId = try container.decode(String.self, forKey: .configId) + product = try container.decode(ConfigurationProduct.self, forKey: .product) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72024,7 +72024,7 @@ public extension PlatformClient { do { - listing = try container.decode(ConfigurationListing.self, forKey: .listing) + configId = try container.decode(String.self, forKey: .configId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72034,12 +72034,8 @@ public extension PlatformClient { - appId = try container.decode(String.self, forKey: .appId) - - - do { - product = try container.decode(ConfigurationProduct.self, forKey: .product) + listing = try container.decode(ConfigurationListing.self, forKey: .listing) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72048,21 +72044,25 @@ public extension PlatformClient { } + + appId = try container.decode(String.self, forKey: .appId) + + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(configId, forKey: .configId) + try? container.encodeIfPresent(product, forKey: .product) try? container.encodeIfPresent(configType, forKey: .configType) + try? container.encodeIfPresent(configId, forKey: .configId) + try? container.encodeIfPresent(listing, forKey: .listing) try? container.encodeIfPresent(appId, forKey: .appId) - try? container.encodeIfPresent(product, forKey: .product) - } } @@ -72075,25 +72075,25 @@ public extension PlatformClient { class GetCatalogConfigurationDetailsSchemaListing: Codable { - public var filter: [String: Any]? - public var sort: [String: Any]? + public var filter: [String: Any]? + public enum CodingKeys: String, CodingKey { - case filter = "filter" - case sort = "sort" + case filter = "filter" + } public init(filter: [String: Any]?, sort: [String: Any]?) { - self.filter = filter - self.sort = sort + self.filter = filter + } required public init(from decoder: Decoder) throws { @@ -72101,7 +72101,7 @@ public extension PlatformClient { do { - filter = try container.decode([String: Any].self, forKey: .filter) + sort = try container.decode([String: Any].self, forKey: .sort) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72112,7 +72112,7 @@ public extension PlatformClient { do { - sort = try container.decode([String: Any].self, forKey: .sort) + filter = try container.decode([String: Any].self, forKey: .filter) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72126,10 +72126,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(filter, forKey: .filter) - try? container.encodeIfPresent(sort, forKey: .sort) + try? container.encodeIfPresent(filter, forKey: .filter) + } } @@ -72142,49 +72142,49 @@ public extension PlatformClient { class EntityConfiguration: Codable { - public var configId: String? + public var product: GetCatalogConfigurationDetailsProduct? public var configType: String + public var configId: String? + public var listing: GetCatalogConfigurationDetailsSchemaListing? public var appId: String public var id: String? - public var product: GetCatalogConfigurationDetailsProduct? - public enum CodingKeys: String, CodingKey { - case configId = "config_id" + case product = "product" case configType = "config_type" + case configId = "config_id" + case listing = "listing" case appId = "app_id" case id = "id" - case product = "product" - } public init(appId: String, configId: String?, configType: String, id: String?, listing: GetCatalogConfigurationDetailsSchemaListing?, product: GetCatalogConfigurationDetailsProduct?) { - self.configId = configId + self.product = product self.configType = configType + self.configId = configId + self.listing = listing self.appId = appId self.id = id - self.product = product - } required public init(from decoder: Decoder) throws { @@ -72192,7 +72192,7 @@ public extension PlatformClient { do { - configId = try container.decode(String.self, forKey: .configId) + product = try container.decode(GetCatalogConfigurationDetailsProduct.self, forKey: .product) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72207,7 +72207,7 @@ public extension PlatformClient { do { - listing = try container.decode(GetCatalogConfigurationDetailsSchemaListing.self, forKey: .listing) + configId = try container.decode(String.self, forKey: .configId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72217,12 +72217,8 @@ public extension PlatformClient { - appId = try container.decode(String.self, forKey: .appId) - - - do { - id = try container.decode(String.self, forKey: .id) + listing = try container.decode(GetCatalogConfigurationDetailsSchemaListing.self, forKey: .listing) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72232,8 +72228,12 @@ public extension PlatformClient { + appId = try container.decode(String.self, forKey: .appId) + + + do { - product = try container.decode(GetCatalogConfigurationDetailsProduct.self, forKey: .product) + id = try container.decode(String.self, forKey: .id) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72247,18 +72247,18 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(configId, forKey: .configId) + try? container.encodeIfPresent(product, forKey: .product) try? container.encodeIfPresent(configType, forKey: .configType) + try? container.encodeIfPresent(configId, forKey: .configId) + try? container.encodeIfPresent(listing, forKey: .listing) try? container.encodeIfPresent(appId, forKey: .appId) try? container.encodeIfPresent(id, forKey: .id) - try? container.encodeIfPresent(product, forKey: .product) - } } @@ -72331,91 +72331,177 @@ public extension PlatformClient { } /* - Model: ProductFiltersValue + Model: ProductSortOn Used By: Catalog */ - class ProductFiltersValue: Codable { + class ProductSortOn: Codable { - public var display: String + public var value: String? - public var min: Int? + public var isSelected: Bool? - public var isSelected: Bool + public var name: String? - public var value: String + + public enum CodingKeys: String, CodingKey { + + case value = "value" + + case isSelected = "is_selected" + + case name = "name" + + } + + public init(isSelected: Bool?, name: String?, value: String?) { + + self.value = value + + self.isSelected = isSelected + + self.name = name + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + value = try container.decode(String.self, forKey: .value) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + isSelected = try container.decode(Bool.self, forKey: .isSelected) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + name = try container.decode(String.self, forKey: .name) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + } - public var selectedMax: Int? + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(value, forKey: .value) + + try? container.encodeIfPresent(isSelected, forKey: .isSelected) + + try? container.encodeIfPresent(name, forKey: .name) + + } - public var count: Int? + } + + /* + Model: ProductFiltersValue + Used By: Catalog + */ + + class ProductFiltersValue: Codable { + + + public var selectedMax: Int? public var queryFormat: String? + public var currencySymbol: String? + public var displayFormat: String? - public var currencySymbol: String? + public var max: Int? public var currencyCode: String? + public var isSelected: Bool + + public var display: String + public var selectedMin: Int? - public var max: Int? + public var min: Int? + + public var value: String + + public var count: Int? public enum CodingKeys: String, CodingKey { - case display = "display" - - case min = "min" - - case isSelected = "is_selected" - - case value = "value" - case selectedMax = "selected_max" - case count = "count" - case queryFormat = "query_format" + case currencySymbol = "currency_symbol" + case displayFormat = "display_format" - case currencySymbol = "currency_symbol" + case max = "max" case currencyCode = "currency_code" - case selectedMin = "selected_min" + case isSelected = "is_selected" - case max = "max" + case display = "display" - } - - public init(count: Int?, currencyCode: String?, currencySymbol: String?, display: String, displayFormat: String?, isSelected: Bool, max: Int?, min: Int?, queryFormat: String?, selectedMax: Int?, selectedMin: Int?, value: String) { + case selectedMin = "selected_min" - self.display = display + case min = "min" - self.min = min + case value = "value" - self.isSelected = isSelected + case count = "count" - self.value = value + } + + public init(count: Int?, currencyCode: String?, currencySymbol: String?, display: String, displayFormat: String?, isSelected: Bool, max: Int?, min: Int?, queryFormat: String?, selectedMax: Int?, selectedMin: Int?, value: String) { self.selectedMax = selectedMax - self.count = count - self.queryFormat = queryFormat + self.currencySymbol = currencySymbol + self.displayFormat = displayFormat - self.currencySymbol = currencySymbol + self.max = max self.currencyCode = currencyCode + self.isSelected = isSelected + + self.display = display + self.selectedMin = selectedMin - self.max = max + self.min = min + + self.value = value + + self.count = count } @@ -72423,12 +72509,8 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - display = try container.decode(String.self, forKey: .display) - - - do { - min = try container.decode(Int.self, forKey: .min) + selectedMax = try container.decode(Int.self, forKey: .selectedMax) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72438,16 +72520,8 @@ public extension PlatformClient { - isSelected = try container.decode(Bool.self, forKey: .isSelected) - - - - value = try container.decode(String.self, forKey: .value) - - - do { - selectedMax = try container.decode(Int.self, forKey: .selectedMax) + queryFormat = try container.decode(String.self, forKey: .queryFormat) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72458,7 +72532,7 @@ public extension PlatformClient { do { - count = try container.decode(Int.self, forKey: .count) + currencySymbol = try container.decode(String.self, forKey: .currencySymbol) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72469,7 +72543,7 @@ public extension PlatformClient { do { - queryFormat = try container.decode(String.self, forKey: .queryFormat) + displayFormat = try container.decode(String.self, forKey: .displayFormat) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72480,7 +72554,7 @@ public extension PlatformClient { do { - displayFormat = try container.decode(String.self, forKey: .displayFormat) + max = try container.decode(Int.self, forKey: .max) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72491,7 +72565,7 @@ public extension PlatformClient { do { - currencySymbol = try container.decode(String.self, forKey: .currencySymbol) + currencyCode = try container.decode(String.self, forKey: .currencyCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72501,8 +72575,16 @@ public extension PlatformClient { + isSelected = try container.decode(Bool.self, forKey: .isSelected) + + + + display = try container.decode(String.self, forKey: .display) + + + do { - currencyCode = try container.decode(String.self, forKey: .currencyCode) + selectedMin = try container.decode(Int.self, forKey: .selectedMin) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72513,7 +72595,7 @@ public extension PlatformClient { do { - selectedMin = try container.decode(Int.self, forKey: .selectedMin) + min = try container.decode(Int.self, forKey: .min) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72523,8 +72605,12 @@ public extension PlatformClient { + value = try container.decode(String.self, forKey: .value) + + + do { - max = try container.decode(Int.self, forKey: .max) + count = try container.decode(Int.self, forKey: .count) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72538,29 +72624,29 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(display, forKey: .display) - - try? container.encodeIfPresent(min, forKey: .min) - - try? container.encodeIfPresent(isSelected, forKey: .isSelected) - - try? container.encodeIfPresent(value, forKey: .value) - try? container.encodeIfPresent(selectedMax, forKey: .selectedMax) - try? container.encodeIfPresent(count, forKey: .count) - try? container.encodeIfPresent(queryFormat, forKey: .queryFormat) + try? container.encodeIfPresent(currencySymbol, forKey: .currencySymbol) + try? container.encodeIfPresent(displayFormat, forKey: .displayFormat) - try? container.encodeIfPresent(currencySymbol, forKey: .currencySymbol) + try? container.encodeIfPresent(max, forKey: .max) try? container.encodeIfPresent(currencyCode, forKey: .currencyCode) + try? container.encodeIfPresent(isSelected, forKey: .isSelected) + + try? container.encodeIfPresent(display, forKey: .display) + try? container.encodeIfPresent(selectedMin, forKey: .selectedMin) - try? container.encodeIfPresent(max, forKey: .max) + try? container.encodeIfPresent(min, forKey: .min) + + try? container.encodeIfPresent(value, forKey: .value) + + try? container.encodeIfPresent(count, forKey: .count) } @@ -72574,36 +72660,36 @@ public extension PlatformClient { class ProductFiltersKey: Codable { - public var display: String - public var logo: String? + public var kind: String? + public var name: String - public var kind: String? + public var display: String public enum CodingKeys: String, CodingKey { - case display = "display" - case logo = "logo" + case kind = "kind" + case name = "name" - case kind = "kind" + case display = "display" } public init(display: String, kind: String?, logo: String?, name: String) { - self.display = display - self.logo = logo + self.kind = kind + self.name = name - self.kind = kind + self.display = display } @@ -72611,10 +72697,6 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - display = try container.decode(String.self, forKey: .display) - - - do { logo = try container.decode(String.self, forKey: .logo) } catch DecodingError.typeMismatch(let type, let context) { @@ -72626,10 +72708,6 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - do { kind = try container.decode(String.self, forKey: .kind) } catch DecodingError.typeMismatch(let type, let context) { @@ -72640,18 +72718,26 @@ public extension PlatformClient { } + + name = try container.decode(String.self, forKey: .name) + + + + display = try container.decode(String.self, forKey: .display) + + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(display, forKey: .display) - try? container.encodeIfPresent(logo, forKey: .logo) + try? container.encodeIfPresent(kind, forKey: .kind) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(kind, forKey: .kind) + try? container.encodeIfPresent(display, forKey: .display) } @@ -72711,37 +72797,31 @@ public extension PlatformClient { } /* - Model: ProductSortOn + Model: GetCollectionQueryOptionResponse Used By: Catalog */ - class ProductSortOn: Codable { - + class GetCollectionQueryOptionResponse: Codable { - public var isSelected: Bool? - public var value: String? + public var sortOn: [ProductSortOn]? - public var name: String? + public var filters: [ProductFilters]? public enum CodingKeys: String, CodingKey { - case isSelected = "is_selected" - - case value = "value" + case sortOn = "sort_on" - case name = "name" + case filters = "filters" } - public init(isSelected: Bool?, name: String?, value: String?) { - - self.isSelected = isSelected + public init(filters: [ProductFilters]?, sortOn: [ProductSortOn]?) { - self.value = value + self.sortOn = sortOn - self.name = name + self.filters = filters } @@ -72750,18 +72830,7 @@ public extension PlatformClient { do { - isSelected = try container.decode(Bool.self, forKey: .isSelected) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - value = try container.decode(String.self, forKey: .value) + sortOn = try container.decode([ProductSortOn].self, forKey: .sortOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72772,7 +72841,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + filters = try container.decode([ProductFilters].self, forKey: .filters) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72786,42 +72855,46 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(isSelected, forKey: .isSelected) - - try? container.encodeIfPresent(value, forKey: .value) + try? container.encodeIfPresent(sortOn, forKey: .sortOn) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(filters, forKey: .filters) } } /* - Model: GetCollectionQueryOptionResponse + Model: CollectionListingFilterType Used By: Catalog */ - class GetCollectionQueryOptionResponse: Codable { + class CollectionListingFilterType: Codable { - public var filters: [ProductFilters]? + public var isSelected: Bool? - public var sortOn: [ProductSortOn]? + public var name: String? + + public var display: String? public enum CodingKeys: String, CodingKey { - case filters = "filters" + case isSelected = "is_selected" - case sortOn = "sort_on" + case name = "name" + + case display = "display" } - public init(filters: [ProductFilters]?, sortOn: [ProductSortOn]?) { + public init(display: String?, isSelected: Bool?, name: String?) { - self.filters = filters + self.isSelected = isSelected - self.sortOn = sortOn + self.name = name + + self.display = display } @@ -72830,7 +72903,7 @@ public extension PlatformClient { do { - filters = try container.decode([ProductFilters].self, forKey: .filters) + isSelected = try container.decode(Bool.self, forKey: .isSelected) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72841,7 +72914,18 @@ public extension PlatformClient { do { - sortOn = try container.decode([ProductSortOn].self, forKey: .sortOn) + name = try container.decode(String.self, forKey: .name) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + display = try container.decode(String.self, forKey: .display) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72855,40 +72939,48 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(filters, forKey: .filters) + try? container.encodeIfPresent(isSelected, forKey: .isSelected) - try? container.encodeIfPresent(sortOn, forKey: .sortOn) + try? container.encodeIfPresent(name, forKey: .name) + + try? container.encodeIfPresent(display, forKey: .display) } } /* - Model: BannerImage + Model: CollectionListingFilterTag Used By: Catalog */ - class BannerImage: Codable { + class CollectionListingFilterTag: Codable { - public var aspectRatio: String? + public var isSelected: Bool? - public var url: String? + public var name: String? + + public var display: String? public enum CodingKeys: String, CodingKey { - case aspectRatio = "aspect_ratio" + case isSelected = "is_selected" - case url = "url" + case name = "name" + + case display = "display" } - public init(aspectRatio: String?, url: String?) { + public init(display: String?, isSelected: Bool?, name: String?) { - self.aspectRatio = aspectRatio + self.isSelected = isSelected - self.url = url + self.name = name + + self.display = display } @@ -72897,7 +72989,7 @@ public extension PlatformClient { do { - aspectRatio = try container.decode(String.self, forKey: .aspectRatio) + isSelected = try container.decode(Bool.self, forKey: .isSelected) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72908,7 +73000,18 @@ public extension PlatformClient { do { - url = try container.decode(String.self, forKey: .url) + name = try container.decode(String.self, forKey: .name) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + display = try container.decode(String.self, forKey: .display) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72922,40 +73025,42 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(aspectRatio, forKey: .aspectRatio) + try? container.encodeIfPresent(isSelected, forKey: .isSelected) - try? container.encodeIfPresent(url, forKey: .url) + try? container.encodeIfPresent(name, forKey: .name) + + try? container.encodeIfPresent(display, forKey: .display) } } /* - Model: ImageUrls + Model: CollectionListingFilter Used By: Catalog */ - class ImageUrls: Codable { + class CollectionListingFilter: Codable { - public var portrait: BannerImage? + public var type: [CollectionListingFilterType]? - public var landscape: BannerImage? + public var tags: [CollectionListingFilterTag]? public enum CodingKeys: String, CodingKey { - case portrait = "portrait" + case type = "type" - case landscape = "landscape" + case tags = "tags" } - public init(landscape: BannerImage?, portrait: BannerImage?) { + public init(tags: [CollectionListingFilterTag]?, type: [CollectionListingFilterType]?) { - self.portrait = portrait + self.type = type - self.landscape = landscape + self.tags = tags } @@ -72964,7 +73069,7 @@ public extension PlatformClient { do { - portrait = try container.decode(BannerImage.self, forKey: .portrait) + type = try container.decode([CollectionListingFilterType].self, forKey: .type) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72975,7 +73080,7 @@ public extension PlatformClient { do { - landscape = try container.decode(BannerImage.self, forKey: .landscape) + tags = try container.decode([CollectionListingFilterTag].self, forKey: .tags) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -72989,40 +73094,40 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(portrait, forKey: .portrait) + try? container.encodeIfPresent(type, forKey: .type) - try? container.encodeIfPresent(landscape, forKey: .landscape) + try? container.encodeIfPresent(tags, forKey: .tags) } } /* - Model: ProductListingActionPage + Model: BannerImage Used By: Catalog */ - class ProductListingActionPage: Codable { + class BannerImage: Codable { - public var type: String? + public var url: String? - public var query: [String: Any]? + public var aspectRatio: String? public enum CodingKeys: String, CodingKey { - case type = "type" + case url = "url" - case query = "query" + case aspectRatio = "aspect_ratio" } - public init(query: [String: Any]?, type: String?) { + public init(aspectRatio: String?, url: String?) { - self.type = type + self.url = url - self.query = query + self.aspectRatio = aspectRatio } @@ -73031,7 +73136,7 @@ public extension PlatformClient { do { - type = try container.decode(String.self, forKey: .type) + url = try container.decode(String.self, forKey: .url) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73042,7 +73147,7 @@ public extension PlatformClient { do { - query = try container.decode([String: Any].self, forKey: .query) + aspectRatio = try container.decode(String.self, forKey: .aspectRatio) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73056,23 +73161,157 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(type, forKey: .type) + try? container.encodeIfPresent(url, forKey: .url) - try? container.encodeIfPresent(query, forKey: .query) + try? container.encodeIfPresent(aspectRatio, forKey: .aspectRatio) } } /* - Model: ProductListingAction + Model: ImageUrls Used By: Catalog */ - class ProductListingAction: Codable { + class ImageUrls: Codable { - public var type: String? + public var landscape: BannerImage? + + public var portrait: BannerImage? + + + public enum CodingKeys: String, CodingKey { + + case landscape = "landscape" + + case portrait = "portrait" + + } + + public init(landscape: BannerImage?, portrait: BannerImage?) { + + self.landscape = landscape + + self.portrait = portrait + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + landscape = try container.decode(BannerImage.self, forKey: .landscape) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + portrait = try container.decode(BannerImage.self, forKey: .portrait) + } 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(landscape, forKey: .landscape) + + try? container.encodeIfPresent(portrait, forKey: .portrait) + + } + + } + + /* + Model: ProductListingActionPage + Used By: Catalog + */ + + class ProductListingActionPage: Codable { + + + public var query: [String: Any]? + + public var type: String? + + + public enum CodingKeys: String, CodingKey { + + case query = "query" + + case type = "type" + + } + + public init(query: [String: Any]?, type: String?) { + + self.query = query + + self.type = type + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + query = try container.decode([String: Any].self, forKey: .query) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + type = try container.decode(String.self, forKey: .type) + } 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(query, forKey: .query) + + try? container.encodeIfPresent(type, forKey: .type) + + } + + } + + /* + Model: ProductListingAction + Used By: Catalog + */ + + class ProductListingAction: Codable { + + + public var type: String? public var page: ProductListingActionPage? @@ -73139,30 +73378,30 @@ public extension PlatformClient { class Media1: Codable { - public var type: String? + public var url: String public var meta: [String: Any]? - public var url: String + public var type: String? public enum CodingKeys: String, CodingKey { - case type = "type" + case url = "url" case meta = "meta" - case url = "url" + case type = "type" } public init(meta: [String: Any]?, type: String?, url: String) { - self.type = type + self.url = url self.meta = meta - self.url = url + self.type = type } @@ -73170,8 +73409,12 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) + url = try container.decode(String.self, forKey: .url) + + + do { - type = try container.decode(String.self, forKey: .type) + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73182,7 +73425,7 @@ public extension PlatformClient { do { - meta = try container.decode([String: Any].self, forKey: .meta) + type = try container.decode(String.self, forKey: .type) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73191,20 +73434,16 @@ public extension PlatformClient { } - - url = try container.decode(String.self, forKey: .url) - - } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(type, forKey: .type) + try? container.encodeIfPresent(url, forKey: .url) try? container.encodeIfPresent(meta, forKey: .meta) - try? container.encodeIfPresent(url, forKey: .url) + try? container.encodeIfPresent(type, forKey: .type) } @@ -73218,135 +73457,135 @@ public extension PlatformClient { class GetCollectionDetailNest: Codable { - public var type: String? + public var isActive: Bool? + + public var allowSort: Bool? public var appId: String? - public var tag: [String]? + public var query: [String: Any]? - public var meta: [String: Any]? + public var visibleFacetsKeys: [String]? - public var isActive: Bool? + public var type: String? - public var description: String? + public var allowFacets: Bool? - public var visibleFacetsKeys: [String]? + public var description: String? - public var allowSort: Bool? + public var name: String? public var uid: String? public var schedule: [String: Any]? - public var slug: String? - - public var banners: ImageUrls? - - public var badge: [String: Any]? - public var cron: [String: Any]? - public var name: String? + public var badge: [String: Any]? - public var allowFacets: Bool? + public var banners: ImageUrls? public var action: ProductListingAction? public var logo: Media1? - public var query: [String: Any]? + public var tag: [String]? + + public var slug: String? + + public var meta: [String: Any]? public enum CodingKeys: String, CodingKey { - case type = "type" + case isActive = "is_active" + + case allowSort = "allow_sort" case appId = "app_id" - case tag = "tag" + case query = "query" - case meta = "meta" + case visibleFacetsKeys = "visible_facets_keys" - case isActive = "is_active" + case type = "type" - case description = "description" + case allowFacets = "allow_facets" - case visibleFacetsKeys = "visible_facets_keys" + case description = "description" - case allowSort = "allow_sort" + case name = "name" case uid = "uid" case schedule = "_schedule" - case slug = "slug" - - case banners = "banners" - - case badge = "badge" - case cron = "cron" - case name = "name" + case badge = "badge" - case allowFacets = "allow_facets" + case banners = "banners" case action = "action" case logo = "logo" - case query = "query" + case tag = "tag" + + case slug = "slug" + + case meta = "meta" } public init(action: ProductListingAction?, allowFacets: Bool?, allowSort: Bool?, appId: String?, badge: [String: Any]?, banners: ImageUrls?, cron: [String: Any]?, description: String?, isActive: Bool?, logo: Media1?, meta: [String: Any]?, name: String?, query: [String: Any]?, slug: String?, tag: [String]?, type: String?, uid: String?, visibleFacetsKeys: [String]?, schedule: [String: Any]?) { - self.type = type + self.isActive = isActive + + self.allowSort = allowSort self.appId = appId - self.tag = tag + self.query = query - self.meta = meta + self.visibleFacetsKeys = visibleFacetsKeys - self.isActive = isActive + self.type = type - self.description = description + self.allowFacets = allowFacets - self.visibleFacetsKeys = visibleFacetsKeys + self.description = description - self.allowSort = allowSort + self.name = name self.uid = uid self.schedule = schedule - self.slug = slug - - self.banners = banners - - self.badge = badge - self.cron = cron - self.name = name + self.badge = badge - self.allowFacets = allowFacets + self.banners = banners self.action = action self.logo = logo - self.query = query + self.tag = tag - } + self.slug = slug + + self.meta = meta + + } required public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) do { - type = try container.decode(String.self, forKey: .type) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73357,7 +73596,7 @@ public extension PlatformClient { do { - appId = try container.decode(String.self, forKey: .appId) + allowSort = try container.decode(Bool.self, forKey: .allowSort) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73368,7 +73607,7 @@ public extension PlatformClient { do { - tag = try container.decode([String].self, forKey: .tag) + appId = try container.decode(String.self, forKey: .appId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73379,7 +73618,7 @@ public extension PlatformClient { do { - meta = try container.decode([String: Any].self, forKey: .meta) + query = try container.decode([String: Any].self, forKey: .query) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73390,7 +73629,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + visibleFacetsKeys = try container.decode([String].self, forKey: .visibleFacetsKeys) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73401,7 +73640,7 @@ public extension PlatformClient { do { - description = try container.decode(String.self, forKey: .description) + type = try container.decode(String.self, forKey: .type) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73412,7 +73651,7 @@ public extension PlatformClient { do { - visibleFacetsKeys = try container.decode([String].self, forKey: .visibleFacetsKeys) + allowFacets = try container.decode(Bool.self, forKey: .allowFacets) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73423,7 +73662,7 @@ public extension PlatformClient { do { - allowSort = try container.decode(Bool.self, forKey: .allowSort) + description = try container.decode(String.self, forKey: .description) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73434,7 +73673,7 @@ public extension PlatformClient { do { - uid = try container.decode(String.self, forKey: .uid) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73445,7 +73684,7 @@ public extension PlatformClient { do { - schedule = try container.decode([String: Any].self, forKey: .schedule) + uid = try container.decode(String.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73456,7 +73695,7 @@ public extension PlatformClient { do { - slug = try container.decode(String.self, forKey: .slug) + schedule = try container.decode([String: Any].self, forKey: .schedule) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73467,7 +73706,7 @@ public extension PlatformClient { do { - banners = try container.decode(ImageUrls.self, forKey: .banners) + cron = try container.decode([String: Any].self, forKey: .cron) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73489,7 +73728,7 @@ public extension PlatformClient { do { - cron = try container.decode([String: Any].self, forKey: .cron) + banners = try container.decode(ImageUrls.self, forKey: .banners) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73500,7 +73739,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + action = try container.decode(ProductListingAction.self, forKey: .action) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73511,7 +73750,7 @@ public extension PlatformClient { do { - allowFacets = try container.decode(Bool.self, forKey: .allowFacets) + logo = try container.decode(Media1.self, forKey: .logo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73522,7 +73761,7 @@ public extension PlatformClient { do { - action = try container.decode(ProductListingAction.self, forKey: .action) + tag = try container.decode([String].self, forKey: .tag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73533,7 +73772,7 @@ public extension PlatformClient { do { - logo = try container.decode(Media1.self, forKey: .logo) + slug = try container.decode(String.self, forKey: .slug) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73544,7 +73783,7 @@ public extension PlatformClient { do { - query = try container.decode([String: Any].self, forKey: .query) + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73558,80 +73797,80 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(type, forKey: .type) + try? container.encodeIfPresent(isActive, forKey: .isActive) + + try? container.encodeIfPresent(allowSort, forKey: .allowSort) try? container.encodeIfPresent(appId, forKey: .appId) - try? container.encodeIfPresent(tag, forKey: .tag) + try? container.encodeIfPresent(query, forKey: .query) - try? container.encodeIfPresent(meta, forKey: .meta) + try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(type, forKey: .type) - try? container.encodeIfPresent(description, forKey: .description) + try? container.encodeIfPresent(allowFacets, forKey: .allowFacets) - try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys) + try? container.encodeIfPresent(description, forKey: .description) - try? container.encodeIfPresent(allowSort, forKey: .allowSort) + try? container.encodeIfPresent(name, forKey: .name) try? container.encodeIfPresent(uid, forKey: .uid) try? container.encodeIfPresent(schedule, forKey: .schedule) - try? container.encodeIfPresent(slug, forKey: .slug) - - try? container.encodeIfPresent(banners, forKey: .banners) - - try? container.encodeIfPresent(badge, forKey: .badge) - try? container.encodeIfPresent(cron, forKey: .cron) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(badge, forKey: .badge) - try? container.encodeIfPresent(allowFacets, forKey: .allowFacets) + try? container.encodeIfPresent(banners, forKey: .banners) try? container.encodeIfPresent(action, forKey: .action) try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(query, forKey: .query) + try? container.encodeIfPresent(tag, forKey: .tag) + + try? container.encodeIfPresent(slug, forKey: .slug) + + try? container.encodeIfPresent(meta, forKey: .meta) } } /* - Model: CollectionListingFilterType + Model: GetCollectionListingResponse Used By: Catalog */ - class CollectionListingFilterType: Codable { + class GetCollectionListingResponse: Codable { - public var isSelected: Bool? + public var page: Page? - public var display: String? + public var filters: CollectionListingFilter? - public var name: String? + public var items: [GetCollectionDetailNest]? public enum CodingKeys: String, CodingKey { - case isSelected = "is_selected" + case page = "page" - case display = "display" + case filters = "filters" - case name = "name" + case items = "items" } - public init(display: String?, isSelected: Bool?, name: String?) { + public init(filters: CollectionListingFilter?, items: [GetCollectionDetailNest]?, page: Page?) { - self.isSelected = isSelected + self.page = page - self.display = display + self.filters = filters - self.name = name + self.items = items } @@ -73640,7 +73879,7 @@ public extension PlatformClient { do { - isSelected = try container.decode(Bool.self, forKey: .isSelected) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73651,7 +73890,7 @@ public extension PlatformClient { do { - display = try container.decode(String.self, forKey: .display) + filters = try container.decode(CollectionListingFilter.self, forKey: .filters) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73662,7 +73901,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + items = try container.decode([GetCollectionDetailNest].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73676,48 +73915,54 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(isSelected, forKey: .isSelected) + try? container.encodeIfPresent(page, forKey: .page) - try? container.encodeIfPresent(display, forKey: .display) + try? container.encodeIfPresent(filters, forKey: .filters) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(items, forKey: .items) } } /* - Model: CollectionListingFilterTag + Model: UserInfo Used By: Catalog */ - class CollectionListingFilterTag: Codable { + class UserInfo: Codable { - public var isSelected: Bool? + public var email: String? - public var display: String? + public var uid: String? - public var name: String? + public var username: String? + + public var userId: String? public enum CodingKeys: String, CodingKey { - case isSelected = "is_selected" + case email = "email" - case display = "display" + case uid = "uid" - case name = "name" + case username = "username" + + case userId = "user_id" } - public init(display: String?, isSelected: Bool?, name: String?) { + public init(email: String?, uid: String?, username: String?, userId: String?) { - self.isSelected = isSelected + self.email = email - self.display = display + self.uid = uid - self.name = name + self.username = username + + self.userId = userId } @@ -73726,7 +73971,7 @@ public extension PlatformClient { do { - isSelected = try container.decode(Bool.self, forKey: .isSelected) + email = try container.decode(String.self, forKey: .email) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73737,7 +73982,7 @@ public extension PlatformClient { do { - display = try container.decode(String.self, forKey: .display) + uid = try container.decode(String.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73748,7 +73993,18 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + username = try container.decode(String.self, forKey: .username) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + userId = try container.decode(String.self, forKey: .userId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73762,42 +74018,44 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(isSelected, forKey: .isSelected) + try? container.encodeIfPresent(email, forKey: .email) - try? container.encodeIfPresent(display, forKey: .display) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(username, forKey: .username) + + try? container.encodeIfPresent(userId, forKey: .userId) } } /* - Model: CollectionListingFilter + Model: SeoDetail Used By: Catalog */ - class CollectionListingFilter: Codable { + class SeoDetail: Codable { - public var type: [CollectionListingFilterType]? + public var description: String? - public var tags: [CollectionListingFilterTag]? + public var title: String? public enum CodingKeys: String, CodingKey { - case type = "type" + case description = "description" - case tags = "tags" + case title = "title" } - public init(tags: [CollectionListingFilterTag]?, type: [CollectionListingFilterType]?) { + public init(description: String?, title: String?) { - self.type = type + self.description = description - self.tags = tags + self.title = title } @@ -73806,7 +74064,7 @@ public extension PlatformClient { do { - type = try container.decode([CollectionListingFilterType].self, forKey: .type) + description = try container.decode(String.self, forKey: .description) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73817,7 +74075,7 @@ public extension PlatformClient { do { - tags = try container.decode([CollectionListingFilterTag].self, forKey: .tags) + title = try container.decode(String.self, forKey: .title) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73831,46 +74089,52 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(type, forKey: .type) + try? container.encodeIfPresent(description, forKey: .description) - try? container.encodeIfPresent(tags, forKey: .tags) + try? container.encodeIfPresent(title, forKey: .title) } } /* - Model: GetCollectionListingResponse + Model: Schedule Used By: Catalog */ - class GetCollectionListingResponse: Codable { + class Schedule: Codable { - public var items: [GetCollectionDetailNest]? + public var start: String? - public var filters: CollectionListingFilter? + public var end: String? - public var page: Page? + public var duration: Int? + + public var cron: String? public enum CodingKeys: String, CodingKey { - case items = "items" + case start = "start" - case filters = "filters" + case end = "end" - case page = "page" + case duration = "duration" + + case cron = "cron" } - public init(filters: CollectionListingFilter?, items: [GetCollectionDetailNest]?, page: Page?) { + public init(cron: String?, duration: Int?, end: String?, start: String?) { - self.items = items + self.start = start - self.filters = filters + self.end = end - self.page = page + self.duration = duration + + self.cron = cron } @@ -73879,7 +74143,7 @@ public extension PlatformClient { do { - items = try container.decode([GetCollectionDetailNest].self, forKey: .items) + start = try container.decode(String.self, forKey: .start) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73890,7 +74154,7 @@ public extension PlatformClient { do { - filters = try container.decode(CollectionListingFilter.self, forKey: .filters) + end = try container.decode(String.self, forKey: .end) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73901,7 +74165,18 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + duration = try container.decode(Int.self, forKey: .duration) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + cron = try container.decode(String.self, forKey: .cron) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73915,42 +74190,44 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) + try? container.encodeIfPresent(start, forKey: .start) - try? container.encodeIfPresent(filters, forKey: .filters) + try? container.encodeIfPresent(end, forKey: .end) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(duration, forKey: .duration) + + try? container.encodeIfPresent(cron, forKey: .cron) } } /* - Model: SeoDetail + Model: CollectionBadge Used By: Catalog */ - class SeoDetail: Codable { + class CollectionBadge: Codable { - public var description: String? + public var text: String? - public var title: String? + public var color: String? public enum CodingKeys: String, CodingKey { - case description = "description" + case text = "text" - case title = "title" + case color = "color" } - public init(description: String?, title: String?) { + public init(color: String?, text: String?) { - self.description = description + self.text = text - self.title = title + self.color = color } @@ -73959,7 +74236,7 @@ public extension PlatformClient { do { - description = try container.decode(String.self, forKey: .description) + text = try container.decode(String.self, forKey: .text) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73970,7 +74247,7 @@ public extension PlatformClient { do { - title = try container.decode(String.self, forKey: .title) + color = try container.decode(String.self, forKey: .color) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -73984,52 +74261,40 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(description, forKey: .description) + try? container.encodeIfPresent(text, forKey: .text) - try? container.encodeIfPresent(title, forKey: .title) + try? container.encodeIfPresent(color, forKey: .color) } } /* - Model: UserInfo + Model: CollectionImage Used By: Catalog */ - class UserInfo: Codable { - - - public var uid: String? + class CollectionImage: Codable { - public var email: String? - public var username: String? + public var url: String - public var userId: String? + public var aspectRatio: String public enum CodingKeys: String, CodingKey { - case uid = "uid" - - case email = "email" - - case username = "username" + case url = "url" - case userId = "user_id" + case aspectRatio = "aspect_ratio" } - public init(email: String?, uid: String?, username: String?, userId: String?) { - - self.uid = uid - - self.email = email + public init(aspectRatio: String, url: String) { - self.username = username + self.url = url - self.userId = userId + self.aspectRatio = aspectRatio } @@ -74037,104 +74302,52 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - uid = try container.decode(String.self, forKey: .uid) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - email = try container.decode(String.self, forKey: .email) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + url = try container.decode(String.self, forKey: .url) - do { - username = try container.decode(String.self, forKey: .username) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + aspectRatio = try container.decode(String.self, forKey: .aspectRatio) - do { - userId = try container.decode(String.self, forKey: .userId) - } 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(uid, forKey: .uid) - - try? container.encodeIfPresent(email, forKey: .email) - - try? container.encodeIfPresent(username, forKey: .username) + try? container.encodeIfPresent(url, forKey: .url) - try? container.encodeIfPresent(userId, forKey: .userId) + try? container.encodeIfPresent(aspectRatio, forKey: .aspectRatio) } } /* - Model: Schedule + Model: CollectionBanner Used By: Catalog */ - class Schedule: Codable { - - - public var end: String? + class CollectionBanner: Codable { - public var cron: String? - public var start: String? + public var landscape: CollectionImage - public var duration: Int? + public var portrait: CollectionImage public enum CodingKeys: String, CodingKey { - case end = "end" - - case cron = "cron" - - case start = "start" + case landscape = "landscape" - case duration = "duration" + case portrait = "portrait" } - public init(cron: String?, duration: Int?, end: String?, start: String?) { - - self.end = end - - self.cron = cron + public init(landscape: CollectionImage, portrait: CollectionImage) { - self.start = start + self.landscape = landscape - self.duration = duration + self.portrait = portrait } @@ -74142,198 +74355,178 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - end = try container.decode(String.self, forKey: .end) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - cron = try container.decode(String.self, forKey: .cron) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + landscape = try container.decode(CollectionImage.self, forKey: .landscape) - do { - start = try container.decode(String.self, forKey: .start) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + portrait = try container.decode(CollectionImage.self, forKey: .portrait) - do { - duration = try container.decode(Int.self, forKey: .duration) - } 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(end, forKey: .end) - - try? container.encodeIfPresent(cron, forKey: .cron) - - try? container.encodeIfPresent(start, forKey: .start) + try? container.encodeIfPresent(landscape, forKey: .landscape) - try? container.encodeIfPresent(duration, forKey: .duration) + try? container.encodeIfPresent(portrait, forKey: .portrait) } } /* - Model: CollectionImage + Model: CreateCollection Used By: Catalog */ - class CollectionImage: Codable { + class CreateCollection: Codable { - public var aspectRatio: String + public var isActive: Bool? - public var url: String + public var allowSort: Bool? + + public var appId: String + + public var sortOn: String? + + public var tags: [String]? + + public var query: [String: Any]? + + public var createdBy: UserInfo? + + public var visibleFacetsKeys: [String]? + + public var seo: SeoDetail? + + public var type: String + + public var allowFacets: Bool? + + public var description: String? + + public var modifiedBy: UserInfo? + + public var published: Bool? + + public var name: String + + public var localeLanguage: [String: Any]? + + public var schedule: Schedule? + + public var customJson: [String: Any]? + + public var badge: CollectionBadge? + + public var banners: CollectionBanner + + public var logo: CollectionImage + + public var slug: String + + public var meta: [String: Any]? public enum CodingKeys: String, CodingKey { - case aspectRatio = "aspect_ratio" + case isActive = "is_active" - case url = "url" + case allowSort = "allow_sort" - } - - public init(aspectRatio: String, url: String) { + case appId = "app_id" - self.aspectRatio = aspectRatio + case sortOn = "sort_on" - self.url = url + case tags = "tags" - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + case query = "query" + case createdBy = "created_by" - aspectRatio = try container.decode(String.self, forKey: .aspectRatio) + case visibleFacetsKeys = "visible_facets_keys" + case seo = "seo" + case type = "type" - url = try container.decode(String.self, forKey: .url) + case allowFacets = "allow_facets" + case description = "description" - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) + case modifiedBy = "modified_by" - try? container.encodeIfPresent(aspectRatio, forKey: .aspectRatio) + case published = "published" - try? container.encodeIfPresent(url, forKey: .url) + case name = "name" - } - - } - - /* - Model: CollectionBanner - Used By: Catalog - */ - - class CollectionBanner: Codable { - - - public var portrait: CollectionImage - - public var landscape: CollectionImage - - - public enum CodingKeys: String, CodingKey { + case localeLanguage = "_locale_language" - case portrait = "portrait" + case schedule = "_schedule" - case landscape = "landscape" + case customJson = "_custom_json" - } - - public init(landscape: CollectionImage, portrait: CollectionImage) { + case badge = "badge" - self.portrait = portrait + case banners = "banners" - self.landscape = landscape + case logo = "logo" + + case slug = "slug" + + case meta = "meta" } - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + public init(allowFacets: Bool?, allowSort: Bool?, appId: String, badge: CollectionBadge?, banners: CollectionBanner, createdBy: UserInfo?, description: String?, isActive: Bool?, logo: CollectionImage, meta: [String: Any]?, modifiedBy: UserInfo?, name: String, published: Bool?, query: [String: Any]?, seo: SeoDetail?, slug: String, sortOn: String?, tags: [String]?, type: String, visibleFacetsKeys: [String]?, customJson: [String: Any]?, localeLanguage: [String: Any]?, schedule: Schedule?) { + self.isActive = isActive - portrait = try container.decode(CollectionImage.self, forKey: .portrait) + self.allowSort = allowSort + self.appId = appId + self.sortOn = sortOn - landscape = try container.decode(CollectionImage.self, forKey: .landscape) + self.tags = tags + self.query = query - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) + self.createdBy = createdBy - try? container.encodeIfPresent(portrait, forKey: .portrait) + self.visibleFacetsKeys = visibleFacetsKeys - try? container.encodeIfPresent(landscape, forKey: .landscape) + self.seo = seo - } - - } - - /* - Model: CollectionBadge - Used By: Catalog - */ - - class CollectionBadge: Codable { - - - public var text: String? - - public var color: String? - - - public enum CodingKeys: String, CodingKey { + self.type = type - case text = "text" + self.allowFacets = allowFacets - case color = "color" + self.description = description - } - - public init(color: String?, text: String?) { + self.modifiedBy = modifiedBy - self.text = text + self.published = published - self.color = color + self.name = name + + self.localeLanguage = localeLanguage + + self.schedule = schedule + + self.customJson = customJson + + self.badge = badge + + self.banners = banners + + self.logo = logo + + self.slug = slug + + self.meta = meta } @@ -74342,7 +74535,7 @@ public extension PlatformClient { do { - text = try container.decode(String.self, forKey: .text) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74353,7 +74546,196 @@ public extension PlatformClient { do { - color = try container.decode(String.self, forKey: .color) + allowSort = try container.decode(Bool.self, forKey: .allowSort) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + appId = try container.decode(String.self, forKey: .appId) + + + + do { + sortOn = try container.decode(String.self, forKey: .sortOn) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + tags = try container.decode([String].self, forKey: .tags) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + query = try container.decode([String: Any].self, forKey: .query) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + createdBy = try container.decode(UserInfo.self, forKey: .createdBy) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + visibleFacetsKeys = try container.decode([String].self, forKey: .visibleFacetsKeys) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + seo = try container.decode(SeoDetail.self, forKey: .seo) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + type = try container.decode(String.self, forKey: .type) + + + + do { + allowFacets = try container.decode(Bool.self, forKey: .allowFacets) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + description = try container.decode(String.self, forKey: .description) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + modifiedBy = try container.decode(UserInfo.self, forKey: .modifiedBy) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + published = try container.decode(Bool.self, forKey: .published) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + name = try container.decode(String.self, forKey: .name) + + + + do { + localeLanguage = try container.decode([String: Any].self, forKey: .localeLanguage) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + schedule = try container.decode(Schedule.self, forKey: .schedule) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + customJson = try container.decode([String: Any].self, forKey: .customJson) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + badge = try container.decode(CollectionBadge.self, forKey: .badge) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + banners = try container.decode(CollectionBanner.self, forKey: .banners) + + + + logo = try container.decode(CollectionImage.self, forKey: .logo) + + + + slug = try container.decode(String.self, forKey: .slug) + + + + do { + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74367,166 +74749,172 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(text, forKey: .text) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(color, forKey: .color) + try? container.encodeIfPresent(allowSort, forKey: .allowSort) + + try? container.encodeIfPresent(appId, forKey: .appId) + + try? container.encodeIfPresent(sortOn, forKey: .sortOn) + + try? container.encodeIfPresent(tags, forKey: .tags) + + try? container.encodeIfPresent(query, forKey: .query) + + try? container.encodeIfPresent(createdBy, forKey: .createdBy) + + try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys) + + try? container.encodeIfPresent(seo, forKey: .seo) + + try? container.encodeIfPresent(type, forKey: .type) + + try? container.encodeIfPresent(allowFacets, forKey: .allowFacets) + + try? container.encodeIfPresent(description, forKey: .description) + + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + + try? container.encodeIfPresent(published, forKey: .published) + + try? container.encodeIfPresent(name, forKey: .name) + + try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage) + + try? container.encodeIfPresent(schedule, forKey: .schedule) + + try? container.encodeIfPresent(customJson, forKey: .customJson) + + try? container.encodeIfPresent(badge, forKey: .badge) + + try? container.encodeIfPresent(banners, forKey: .banners) + + try? container.encodeIfPresent(logo, forKey: .logo) + + try? container.encodeIfPresent(slug, forKey: .slug) + + try? container.encodeIfPresent(meta, forKey: .meta) } } /* - Model: CreateCollection + Model: CollectionCreateResponse Used By: Catalog */ - class CreateCollection: Codable { - - - public var type: String - - public var appId: String + class CollectionCreateResponse: Codable { - public var meta: [String: Any]? - public var localeLanguage: [String: Any]? + public var query: [String: Any]? public var isActive: Bool? - public var description: String? - public var visibleFacetsKeys: [String]? - public var seo: SeoDetail? - public var allowSort: Bool? - public var createdBy: UserInfo? - - public var tags: [String]? + public var badge: [String: Any]? - public var schedule: Schedule? + public var type: String? - public var slug: String + public var banners: ImageUrls? - public var banners: CollectionBanner + public var allowFacets: Bool? - public var badge: CollectionBadge? + public var schedule: [String: Any]? - public var name: String + public var appId: String? - public var published: Bool? + public var description: String? - public var allowFacets: Bool? + public var logo: BannerImage? - public var customJson: [String: Any]? + public var tag: [String]? - public var sortOn: String? + public var slug: String? - public var logo: CollectionImage + public var meta: [String: Any]? - public var query: [String: Any]? + public var name: String? - public var modifiedBy: UserInfo? + public var cron: [String: Any]? public enum CodingKeys: String, CodingKey { - case type = "type" - - case appId = "app_id" - - case meta = "meta" - - case localeLanguage = "_locale_language" + case query = "query" case isActive = "is_active" - case description = "description" - case visibleFacetsKeys = "visible_facets_keys" - case seo = "seo" - case allowSort = "allow_sort" - case createdBy = "created_by" - - case tags = "tags" - - case schedule = "_schedule" - - case slug = "slug" - - case banners = "banners" - case badge = "badge" - case name = "name" + case type = "type" - case published = "published" + case banners = "banners" case allowFacets = "allow_facets" - case customJson = "_custom_json" + case schedule = "_schedule" - case sortOn = "sort_on" + case appId = "app_id" + + case description = "description" case logo = "logo" - case query = "query" + case tag = "tag" - case modifiedBy = "modified_by" + case slug = "slug" - } - - public init(allowFacets: Bool?, allowSort: Bool?, appId: String, badge: CollectionBadge?, banners: CollectionBanner, createdBy: UserInfo?, description: String?, isActive: Bool?, logo: CollectionImage, meta: [String: Any]?, modifiedBy: UserInfo?, name: String, published: Bool?, query: [String: Any]?, seo: SeoDetail?, slug: String, sortOn: String?, tags: [String]?, type: String, visibleFacetsKeys: [String]?, customJson: [String: Any]?, localeLanguage: [String: Any]?, schedule: Schedule?) { + case meta = "meta" - self.type = type + case name = "name" - self.appId = appId + case cron = "cron" - self.meta = meta + } + + public init(allowFacets: Bool?, allowSort: Bool?, appId: String?, badge: [String: Any]?, banners: ImageUrls?, cron: [String: Any]?, description: String?, isActive: Bool?, logo: BannerImage?, meta: [String: Any]?, name: String?, query: [String: Any]?, slug: String?, tag: [String]?, type: String?, visibleFacetsKeys: [String]?, schedule: [String: Any]?) { - self.localeLanguage = localeLanguage + self.query = query self.isActive = isActive - self.description = description - self.visibleFacetsKeys = visibleFacetsKeys - self.seo = seo - self.allowSort = allowSort - self.createdBy = createdBy - - self.tags = tags - - self.schedule = schedule + self.badge = badge - self.slug = slug + self.type = type self.banners = banners - self.badge = badge + self.allowFacets = allowFacets - self.name = name + self.schedule = schedule - self.published = published + self.appId = appId - self.allowFacets = allowFacets + self.description = description - self.customJson = customJson + self.logo = logo - self.sortOn = sortOn + self.tag = tag - self.logo = logo + self.slug = slug - self.query = query + self.meta = meta - self.modifiedBy = modifiedBy + self.name = name + + self.cron = cron } @@ -74534,16 +74922,8 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - type = try container.decode(String.self, forKey: .type) - - - - appId = try container.decode(String.self, forKey: .appId) - - - do { - meta = try container.decode([String: Any].self, forKey: .meta) + query = try container.decode([String: Any].self, forKey: .query) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74554,7 +74934,7 @@ public extension PlatformClient { do { - localeLanguage = try container.decode([String: Any].self, forKey: .localeLanguage) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74565,7 +74945,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + visibleFacetsKeys = try container.decode([String].self, forKey: .visibleFacetsKeys) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74576,7 +74956,7 @@ public extension PlatformClient { do { - description = try container.decode(String.self, forKey: .description) + allowSort = try container.decode(Bool.self, forKey: .allowSort) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74587,7 +74967,7 @@ public extension PlatformClient { do { - visibleFacetsKeys = try container.decode([String].self, forKey: .visibleFacetsKeys) + badge = try container.decode([String: Any].self, forKey: .badge) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74598,7 +74978,7 @@ public extension PlatformClient { do { - seo = try container.decode(SeoDetail.self, forKey: .seo) + type = try container.decode(String.self, forKey: .type) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74609,7 +74989,7 @@ public extension PlatformClient { do { - allowSort = try container.decode(Bool.self, forKey: .allowSort) + banners = try container.decode(ImageUrls.self, forKey: .banners) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74620,7 +75000,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserInfo.self, forKey: .createdBy) + allowFacets = try container.decode(Bool.self, forKey: .allowFacets) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74631,7 +75011,7 @@ public extension PlatformClient { do { - tags = try container.decode([String].self, forKey: .tags) + schedule = try container.decode([String: Any].self, forKey: .schedule) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74642,7 +75022,7 @@ public extension PlatformClient { do { - schedule = try container.decode(Schedule.self, forKey: .schedule) + appId = try container.decode(String.self, forKey: .appId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74652,16 +75032,8 @@ public extension PlatformClient { - slug = try container.decode(String.self, forKey: .slug) - - - - banners = try container.decode(CollectionBanner.self, forKey: .banners) - - - do { - badge = try container.decode(CollectionBadge.self, forKey: .badge) + description = try container.decode(String.self, forKey: .description) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74671,12 +75043,8 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - do { - published = try container.decode(Bool.self, forKey: .published) + logo = try container.decode(BannerImage.self, forKey: .logo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74687,7 +75055,7 @@ public extension PlatformClient { do { - allowFacets = try container.decode(Bool.self, forKey: .allowFacets) + tag = try container.decode([String].self, forKey: .tag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74698,7 +75066,7 @@ public extension PlatformClient { do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + slug = try container.decode(String.self, forKey: .slug) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74709,7 +75077,7 @@ public extension PlatformClient { do { - sortOn = try container.decode(String.self, forKey: .sortOn) + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74719,12 +75087,8 @@ public extension PlatformClient { - logo = try container.decode(CollectionImage.self, forKey: .logo) - - - do { - query = try container.decode([String: Any].self, forKey: .query) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74735,7 +75099,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserInfo.self, forKey: .modifiedBy) + cron = try container.decode([String: Any].self, forKey: .cron) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74749,67 +75113,61 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(type, forKey: .type) - - try? container.encodeIfPresent(appId, forKey: .appId) - - try? container.encodeIfPresent(meta, forKey: .meta) - - try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage) + try? container.encodeIfPresent(query, forKey: .query) try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(description, forKey: .description) - try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys) - try? container.encodeIfPresent(seo, forKey: .seo) - try? container.encodeIfPresent(allowSort, forKey: .allowSort) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) - - try? container.encodeIfPresent(tags, forKey: .tags) - - try? container.encodeIfPresent(schedule, forKey: .schedule) + try? container.encodeIfPresent(badge, forKey: .badge) - try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(type, forKey: .type) try? container.encodeIfPresent(banners, forKey: .banners) - try? container.encodeIfPresent(badge, forKey: .badge) + try? container.encodeIfPresent(allowFacets, forKey: .allowFacets) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(schedule, forKey: .schedule) + + try? container.encodeIfPresent(appId, forKey: .appId) - try? container.encodeIfPresent(published, forKey: .published) + try? container.encodeIfPresent(description, forKey: .description) - try? container.encodeIfPresent(allowFacets, forKey: .allowFacets) + try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(customJson, forKey: .customJson) + try? container.encodeIfPresent(tag, forKey: .tag) - try? container.encodeIfPresent(sortOn, forKey: .sortOn) + try? container.encodeIfPresent(slug, forKey: .slug) - try? container.encodeIfPresent(logo, forKey: .logo) + try? container.encodeIfPresent(meta, forKey: .meta) - try? container.encodeIfPresent(query, forKey: .query) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(cron, forKey: .cron) } } /* - Model: CollectionCreateResponse + Model: CollectionDetailResponse Used By: Catalog */ - class CollectionCreateResponse: Codable { + class CollectionDetailResponse: Codable { - public var schedule: [String: Any]? + public var query: [String: Any]? - public var slug: String? + public var isActive: Bool? + + public var visibleFacetsKeys: [String]? + + public var allowSort: Bool? + + public var badge: [String: Any]? public var type: String? @@ -74817,36 +75175,36 @@ public extension PlatformClient { public var allowFacets: Bool? - public var appId: String? + public var schedule: [String: Any]? - public var isActive: Bool? + public var appId: String? public var description: String? - public var logo: BannerImage? - - public var visibleFacetsKeys: [String]? - - public var cron: [String: Any]? - - public var name: String? - - public var query: [String: Any]? - - public var badge: [String: Any]? + public var logo: Media1? public var tag: [String]? + public var slug: String? + public var meta: [String: Any]? - public var allowSort: Bool? + public var name: String? + + public var cron: [String: Any]? public enum CodingKeys: String, CodingKey { - case schedule = "_schedule" + case query = "query" - case slug = "slug" + case isActive = "is_active" + + case visibleFacetsKeys = "visible_facets_keys" + + case allowSort = "allow_sort" + + case badge = "badge" case type = "type" @@ -74854,37 +75212,37 @@ public extension PlatformClient { case allowFacets = "allow_facets" - case appId = "app_id" + case schedule = "_schedule" - case isActive = "is_active" + case appId = "app_id" case description = "description" case logo = "logo" - case visibleFacetsKeys = "visible_facets_keys" + case tag = "tag" - case cron = "cron" + case slug = "slug" - case name = "name" + case meta = "meta" - case query = "query" + case name = "name" - case badge = "badge" + case cron = "cron" - case tag = "tag" + } + + public init(allowFacets: Bool?, allowSort: Bool?, appId: String?, badge: [String: Any]?, banners: ImageUrls?, cron: [String: Any]?, description: String?, isActive: Bool?, logo: Media1?, meta: [String: Any]?, name: String?, query: [String: Any]?, slug: String?, tag: [String]?, type: String?, visibleFacetsKeys: [String]?, schedule: [String: Any]?) { - case meta = "meta" + self.query = query - case allowSort = "allow_sort" + self.isActive = isActive - } - - public init(allowFacets: Bool?, allowSort: Bool?, appId: String?, badge: [String: Any]?, banners: ImageUrls?, cron: [String: Any]?, description: String?, isActive: Bool?, logo: BannerImage?, meta: [String: Any]?, name: String?, query: [String: Any]?, slug: String?, tag: [String]?, type: String?, visibleFacetsKeys: [String]?, schedule: [String: Any]?) { + self.visibleFacetsKeys = visibleFacetsKeys - self.schedule = schedule + self.allowSort = allowSort - self.slug = slug + self.badge = badge self.type = type @@ -74892,29 +75250,23 @@ public extension PlatformClient { self.allowFacets = allowFacets - self.appId = appId + self.schedule = schedule - self.isActive = isActive + self.appId = appId self.description = description self.logo = logo - self.visibleFacetsKeys = visibleFacetsKeys - - self.cron = cron - - self.name = name - - self.query = query - - self.badge = badge - self.tag = tag + self.slug = slug + self.meta = meta - self.allowSort = allowSort + self.name = name + + self.cron = cron } @@ -74923,7 +75275,7 @@ public extension PlatformClient { do { - schedule = try container.decode([String: Any].self, forKey: .schedule) + query = try container.decode([String: Any].self, forKey: .query) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74934,7 +75286,40 @@ public extension PlatformClient { do { - slug = try container.decode(String.self, forKey: .slug) + isActive = try container.decode(Bool.self, forKey: .isActive) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + visibleFacetsKeys = try container.decode([String].self, forKey: .visibleFacetsKeys) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + allowSort = try container.decode(Bool.self, forKey: .allowSort) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + badge = try container.decode([String: Any].self, forKey: .badge) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74978,7 +75363,7 @@ public extension PlatformClient { do { - appId = try container.decode(String.self, forKey: .appId) + schedule = try container.decode([String: Any].self, forKey: .schedule) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -74989,7 +75374,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + appId = try container.decode(String.self, forKey: .appId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75011,7 +75396,7 @@ public extension PlatformClient { do { - logo = try container.decode(BannerImage.self, forKey: .logo) + logo = try container.decode(Media1.self, forKey: .logo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75022,7 +75407,7 @@ public extension PlatformClient { do { - visibleFacetsKeys = try container.decode([String].self, forKey: .visibleFacetsKeys) + tag = try container.decode([String].self, forKey: .tag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75033,7 +75418,18 @@ public extension PlatformClient { do { - cron = try container.decode([String: Any].self, forKey: .cron) + slug = try container.decode(String.self, forKey: .slug) + } 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) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75055,7 +75451,7 @@ public extension PlatformClient { do { - query = try container.decode([String: Any].self, forKey: .query) + cron = try container.decode([String: Any].self, forKey: .cron) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75064,9 +75460,96 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(query, forKey: .query) + + try? container.encodeIfPresent(isActive, forKey: .isActive) + + try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys) + + try? container.encodeIfPresent(allowSort, forKey: .allowSort) + + try? container.encodeIfPresent(badge, forKey: .badge) + + try? container.encodeIfPresent(type, forKey: .type) + + try? container.encodeIfPresent(banners, forKey: .banners) + + try? container.encodeIfPresent(allowFacets, forKey: .allowFacets) + + try? container.encodeIfPresent(schedule, forKey: .schedule) + + try? container.encodeIfPresent(appId, forKey: .appId) + + try? container.encodeIfPresent(description, forKey: .description) + + try? container.encodeIfPresent(logo, forKey: .logo) + + try? container.encodeIfPresent(tag, forKey: .tag) + + try? container.encodeIfPresent(slug, forKey: .slug) + + try? container.encodeIfPresent(meta, forKey: .meta) + + try? container.encodeIfPresent(name, forKey: .name) + + try? container.encodeIfPresent(cron, forKey: .cron) + + } + + } + + /* + Model: Price1 + Used By: Catalog + */ + + class Price1: Codable { + + + public var currencyCode: String? + + public var max: Double? + + public var min: Double? + + public var currencySymbol: String? + + + public enum CodingKeys: String, CodingKey { + + case currencyCode = "currency_code" + + case max = "max" + + case min = "min" + + case currencySymbol = "currency_symbol" + + } + + public init(currencyCode: String?, currencySymbol: String?, max: Double?, min: Double?) { + + self.currencyCode = currencyCode + + self.max = max + + self.min = min + + self.currencySymbol = currencySymbol + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + do { - badge = try container.decode([String: Any].self, forKey: .badge) + currencyCode = try container.decode(String.self, forKey: .currencyCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75077,7 +75560,7 @@ public extension PlatformClient { do { - tag = try container.decode([String].self, forKey: .tag) + max = try container.decode(Double.self, forKey: .max) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75088,7 +75571,7 @@ public extension PlatformClient { do { - meta = try container.decode([String: Any].self, forKey: .meta) + min = try container.decode(Double.self, forKey: .min) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75099,7 +75582,7 @@ public extension PlatformClient { do { - allowSort = try container.decode(Bool.self, forKey: .allowSort) + currencySymbol = try container.decode(String.self, forKey: .currencySymbol) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75113,169 +75596,301 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(schedule, forKey: .schedule) + try? container.encodeIfPresent(currencyCode, forKey: .currencyCode) - try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(max, forKey: .max) - try? container.encodeIfPresent(type, forKey: .type) + try? container.encodeIfPresent(min, forKey: .min) - try? container.encodeIfPresent(banners, forKey: .banners) + try? container.encodeIfPresent(currencySymbol, forKey: .currencySymbol) - try? container.encodeIfPresent(allowFacets, forKey: .allowFacets) + } + + } + + /* + Model: ProductListingPrice + Used By: Catalog + */ + + class ProductListingPrice: Codable { + + + public var marked: Price1? + + public var effective: Price1? + + + public enum CodingKeys: String, CodingKey { - try? container.encodeIfPresent(appId, forKey: .appId) + case marked = "marked" - try? container.encodeIfPresent(isActive, forKey: .isActive) + case effective = "effective" - try? container.encodeIfPresent(description, forKey: .description) + } + + public init(effective: Price1?, marked: Price1?) { - try? container.encodeIfPresent(logo, forKey: .logo) + self.marked = marked - try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys) + self.effective = effective - try? container.encodeIfPresent(cron, forKey: .cron) + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(query, forKey: .query) + do { + marked = try container.decode(Price1.self, forKey: .marked) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - try? container.encodeIfPresent(badge, forKey: .badge) - try? container.encodeIfPresent(tag, forKey: .tag) + do { + effective = try container.decode(Price1.self, forKey: .effective) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - try? container.encodeIfPresent(meta, forKey: .meta) + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(allowSort, forKey: .allowSort) + try? container.encodeIfPresent(marked, forKey: .marked) + + try? container.encodeIfPresent(effective, forKey: .effective) } } /* - Model: CollectionDetailResponse + Model: ProductListingDetail Used By: Catalog */ - class CollectionDetailResponse: Codable { + class ProductListingDetail: Codable { - public var schedule: [String: Any]? + public var discount: String? - public var slug: String? + public var medias: [Media1]? - public var type: String? + public var color: String? - public var banners: ImageUrls? + public var price: ProductListingPrice? - public var allowFacets: Bool? + public var hasVariant: Bool? - public var appId: String? + public var similars: [String]? - public var isActive: Bool? + public var type: String? public var description: String? - public var logo: Media1? - - public var visibleFacetsKeys: [String]? + public var promoMeta: [String: Any]? - public var cron: [String: Any]? + public var rating: Double? public var name: String? - public var query: [String: Any]? + public var attributes: [String: Any]? - public var badge: [String: Any]? + public var uid: Int? - public var tag: [String]? + public var tryouts: [String]? - public var meta: [String: Any]? + public var highlights: [String]? - public var allowSort: Bool? + public var productOnlineDate: String? + + public var shortDescription: String? + + public var imageNature: String? + + public var ratingCount: Int? + + public var itemType: String? + + public var slug: String + + public var sellable: Bool? + + public var teaserTag: [String: Any]? public enum CodingKeys: String, CodingKey { - case schedule = "_schedule" + case discount = "discount" - case slug = "slug" + case medias = "medias" - case type = "type" + case color = "color" - case banners = "banners" + case price = "price" - case allowFacets = "allow_facets" + case hasVariant = "has_variant" - case appId = "app_id" + case similars = "similars" - case isActive = "is_active" + case type = "type" case description = "description" - case logo = "logo" - - case visibleFacetsKeys = "visible_facets_keys" + case promoMeta = "promo_meta" - case cron = "cron" + case rating = "rating" case name = "name" - case query = "query" + case attributes = "attributes" - case badge = "badge" + case uid = "uid" - case tag = "tag" + case tryouts = "tryouts" - case meta = "meta" + case highlights = "highlights" - case allowSort = "allow_sort" + case productOnlineDate = "product_online_date" + + case shortDescription = "short_description" + + case imageNature = "image_nature" + + case ratingCount = "rating_count" + + case itemType = "item_type" + + case slug = "slug" + + case sellable = "sellable" + + case teaserTag = "teaser_tag" } - public init(allowFacets: Bool?, allowSort: Bool?, appId: String?, badge: [String: Any]?, banners: ImageUrls?, cron: [String: Any]?, description: String?, isActive: Bool?, logo: Media1?, meta: [String: Any]?, name: String?, query: [String: Any]?, slug: String?, tag: [String]?, type: String?, visibleFacetsKeys: [String]?, schedule: [String: Any]?) { + public init(attributes: [String: Any]?, color: String?, description: String?, discount: String?, hasVariant: Bool?, highlights: [String]?, imageNature: String?, itemType: String?, medias: [Media1]?, name: String?, price: ProductListingPrice?, productOnlineDate: String?, promoMeta: [String: Any]?, rating: Double?, ratingCount: Int?, sellable: Bool?, shortDescription: String?, similars: [String]?, slug: String, teaserTag: [String: Any]?, tryouts: [String]?, type: String?, uid: Int?) { - self.schedule = schedule + self.discount = discount - self.slug = slug + self.medias = medias - self.type = type + self.color = color - self.banners = banners + self.price = price - self.allowFacets = allowFacets + self.hasVariant = hasVariant - self.appId = appId + self.similars = similars - self.isActive = isActive + self.type = type self.description = description - self.logo = logo - - self.visibleFacetsKeys = visibleFacetsKeys + self.promoMeta = promoMeta - self.cron = cron + self.rating = rating self.name = name - self.query = query + self.attributes = attributes - self.badge = badge + self.uid = uid + + self.tryouts = tryouts + + self.highlights = highlights + + self.productOnlineDate = productOnlineDate + + self.shortDescription = shortDescription + + self.imageNature = imageNature + + self.ratingCount = ratingCount + + self.itemType = itemType + + self.slug = slug + + self.sellable = sellable + + self.teaserTag = teaserTag + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + discount = try container.decode(String.self, forKey: .discount) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + medias = try container.decode([Media1].self, forKey: .medias) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + color = try container.decode(String.self, forKey: .color) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - self.tag = tag - self.meta = meta + do { + price = try container.decode(ProductListingPrice.self, forKey: .price) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - self.allowSort = allowSort - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + do { + hasVariant = try container.decode(Bool.self, forKey: .hasVariant) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + do { - schedule = try container.decode([String: Any].self, forKey: .schedule) + similars = try container.decode([String].self, forKey: .similars) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75286,7 +75901,7 @@ public extension PlatformClient { do { - slug = try container.decode(String.self, forKey: .slug) + type = try container.decode(String.self, forKey: .type) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75297,7 +75912,7 @@ public extension PlatformClient { do { - type = try container.decode(String.self, forKey: .type) + description = try container.decode(String.self, forKey: .description) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75308,7 +75923,7 @@ public extension PlatformClient { do { - banners = try container.decode(ImageUrls.self, forKey: .banners) + promoMeta = try container.decode([String: Any].self, forKey: .promoMeta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75319,7 +75934,7 @@ public extension PlatformClient { do { - allowFacets = try container.decode(Bool.self, forKey: .allowFacets) + rating = try container.decode(Double.self, forKey: .rating) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75330,7 +75945,7 @@ public extension PlatformClient { do { - appId = try container.decode(String.self, forKey: .appId) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75341,7 +75956,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + attributes = try container.decode([String: Any].self, forKey: .attributes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75352,7 +75967,7 @@ public extension PlatformClient { do { - description = try container.decode(String.self, forKey: .description) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75363,7 +75978,7 @@ public extension PlatformClient { do { - logo = try container.decode(Media1.self, forKey: .logo) + tryouts = try container.decode([String].self, forKey: .tryouts) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75374,7 +75989,7 @@ public extension PlatformClient { do { - visibleFacetsKeys = try container.decode([String].self, forKey: .visibleFacetsKeys) + highlights = try container.decode([String].self, forKey: .highlights) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75385,7 +76000,7 @@ public extension PlatformClient { do { - cron = try container.decode([String: Any].self, forKey: .cron) + productOnlineDate = try container.decode(String.self, forKey: .productOnlineDate) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75396,7 +76011,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + shortDescription = try container.decode(String.self, forKey: .shortDescription) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75407,7 +76022,7 @@ public extension PlatformClient { do { - query = try container.decode([String: Any].self, forKey: .query) + imageNature = try container.decode(String.self, forKey: .imageNature) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75418,7 +76033,7 @@ public extension PlatformClient { do { - badge = try container.decode([String: Any].self, forKey: .badge) + ratingCount = try container.decode(Int.self, forKey: .ratingCount) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75429,7 +76044,7 @@ public extension PlatformClient { do { - tag = try container.decode([String].self, forKey: .tag) + itemType = try container.decode(String.self, forKey: .itemType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75439,8 +76054,12 @@ public extension PlatformClient { + slug = try container.decode(String.self, forKey: .slug) + + + do { - meta = try container.decode([String: Any].self, forKey: .meta) + sellable = try container.decode(Bool.self, forKey: .sellable) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75451,7 +76070,7 @@ public extension PlatformClient { do { - allowSort = try container.decode(Bool.self, forKey: .allowSort) + teaserTag = try container.decode([String: Any].self, forKey: .teaserTag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75465,82 +76084,94 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(schedule, forKey: .schedule) + try? container.encodeIfPresent(discount, forKey: .discount) - try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(medias, forKey: .medias) - try? container.encodeIfPresent(type, forKey: .type) + try? container.encodeIfPresent(color, forKey: .color) - try? container.encodeIfPresent(banners, forKey: .banners) + try? container.encodeIfPresent(price, forKey: .price) - try? container.encodeIfPresent(allowFacets, forKey: .allowFacets) + try? container.encodeIfPresent(hasVariant, forKey: .hasVariant) - try? container.encodeIfPresent(appId, forKey: .appId) + try? container.encodeIfPresent(similars, forKey: .similars) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(type, forKey: .type) try? container.encodeIfPresent(description, forKey: .description) - try? container.encodeIfPresent(logo, forKey: .logo) - - try? container.encodeIfPresent(visibleFacetsKeys, forKey: .visibleFacetsKeys) + try? container.encodeIfPresent(promoMeta, forKey: .promoMeta) - try? container.encodeIfPresent(cron, forKey: .cron) + try? container.encodeIfPresent(rating, forKey: .rating) try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(query, forKey: .query) + try? container.encodeIfPresent(attributes, forKey: .attributes) - try? container.encodeIfPresent(badge, forKey: .badge) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(tag, forKey: .tag) + try? container.encodeIfPresent(tryouts, forKey: .tryouts) - try? container.encodeIfPresent(meta, forKey: .meta) + try? container.encodeIfPresent(highlights, forKey: .highlights) - try? container.encodeIfPresent(allowSort, forKey: .allowSort) + try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate) + + try? container.encodeIfPresent(shortDescription, forKey: .shortDescription) + + try? container.encodeIfPresent(imageNature, forKey: .imageNature) + + try? container.encodeIfPresent(ratingCount, forKey: .ratingCount) + + try? container.encodeIfPresent(itemType, forKey: .itemType) + + try? container.encodeIfPresent(slug, forKey: .slug) + + try? container.encodeIfPresent(sellable, forKey: .sellable) + + try? container.encodeIfPresent(teaserTag, forKey: .teaserTag) } } /* - Model: Price1 + Model: GetCollectionItemsResponse Used By: Catalog */ - class Price1: Codable { + class GetCollectionItemsResponse: Codable { - public var min: Double? + public var page: Page? - public var currencySymbol: String? + public var sortOn: [ProductSortOn]? - public var currencyCode: String? + public var filters: [ProductFilters]? - public var max: Double? + public var items: [ProductListingDetail]? public enum CodingKeys: String, CodingKey { - case min = "min" + case page = "page" - case currencySymbol = "currency_symbol" + case sortOn = "sort_on" - case currencyCode = "currency_code" + case filters = "filters" - case max = "max" + case items = "items" } - public init(currencyCode: String?, currencySymbol: String?, max: Double?, min: Double?) { + public init(filters: [ProductFilters]?, items: [ProductListingDetail]?, page: Page?, sortOn: [ProductSortOn]?) { - self.min = min + self.page = page - self.currencySymbol = currencySymbol + self.sortOn = sortOn - self.currencyCode = currencyCode + self.filters = filters - self.max = max + self.items = items } @@ -75549,7 +76180,7 @@ public extension PlatformClient { do { - min = try container.decode(Double.self, forKey: .min) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75560,7 +76191,7 @@ public extension PlatformClient { do { - currencySymbol = try container.decode(String.self, forKey: .currencySymbol) + sortOn = try container.decode([ProductSortOn].self, forKey: .sortOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75571,7 +76202,7 @@ public extension PlatformClient { do { - currencyCode = try container.decode(String.self, forKey: .currencyCode) + filters = try container.decode([ProductFilters].self, forKey: .filters) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75582,7 +76213,7 @@ public extension PlatformClient { do { - max = try container.decode(Double.self, forKey: .max) + items = try container.decode([ProductListingDetail].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75596,44 +76227,151 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(min, forKey: .min) + try? container.encodeIfPresent(page, forKey: .page) - try? container.encodeIfPresent(currencySymbol, forKey: .currencySymbol) + try? container.encodeIfPresent(sortOn, forKey: .sortOn) - try? container.encodeIfPresent(currencyCode, forKey: .currencyCode) + try? container.encodeIfPresent(filters, forKey: .filters) + + try? container.encodeIfPresent(items, forKey: .items) + + } + + } + + /* + Model: CollectionItemRequest + Used By: Catalog + */ + + class CollectionItemRequest: Codable { + + + public var pageSize: Int + + public var pageNo: Int + + + public enum CodingKeys: String, CodingKey { + + case pageSize = "page_size" + + case pageNo = "page_no" + + } + + public init(pageNo: Int, pageSize: Int) { + + self.pageSize = pageSize + + self.pageNo = pageNo + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + pageSize = try container.decode(Int.self, forKey: .pageSize) + + + + pageNo = try container.decode(Int.self, forKey: .pageNo) + + + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(pageSize, forKey: .pageSize) + + try? container.encodeIfPresent(pageNo, forKey: .pageNo) + + } + + } + + /* + Model: UpdatedResponse + Used By: Catalog + */ + + class UpdatedResponse: Codable { + + + public var message: String? + + + public enum CodingKeys: String, CodingKey { + + case message = "message" + + } + + public init(message: String?) { + + self.message = message + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + message = try container.decode(String.self, forKey: .message) + } 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(max, forKey: .max) + try? container.encodeIfPresent(message, forKey: .message) } } /* - Model: ProductListingPrice + Model: CatalogInsightItem Used By: Catalog */ - class ProductListingPrice: Codable { + class CatalogInsightItem: Codable { - public var marked: Price1? + public var sellableCount: Int? - public var effective: Price1? + public var outOfStockCount: Int? + + public var count: Int? public enum CodingKeys: String, CodingKey { - case marked = "marked" + case sellableCount = "sellable_count" - case effective = "effective" + case outOfStockCount = "out_of_stock_count" + + case count = "count" } - public init(effective: Price1?, marked: Price1?) { + public init(count: Int?, outOfStockCount: Int?, sellableCount: Int?) { - self.marked = marked + self.sellableCount = sellableCount - self.effective = effective + self.outOfStockCount = outOfStockCount + + self.count = count } @@ -75642,7 +76380,7 @@ public extension PlatformClient { do { - marked = try container.decode(Price1.self, forKey: .marked) + sellableCount = try container.decode(Int.self, forKey: .sellableCount) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75653,7 +76391,18 @@ public extension PlatformClient { do { - effective = try container.decode(Price1.self, forKey: .effective) + outOfStockCount = try container.decode(Int.self, forKey: .outOfStockCount) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + count = try container.decode(Int.self, forKey: .count) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75667,241 +76416,75 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(marked, forKey: .marked) + try? container.encodeIfPresent(sellableCount, forKey: .sellableCount) - try? container.encodeIfPresent(effective, forKey: .effective) + try? container.encodeIfPresent(outOfStockCount, forKey: .outOfStockCount) + + try? container.encodeIfPresent(count, forKey: .count) } } /* - Model: ProductListingDetail + Model: CatalogInsightBrand Used By: Catalog */ - class ProductListingDetail: Codable { - - - public var hasVariant: Bool? - - public var type: String? - - public var ratingCount: Int? - - public var similars: [String]? - - public var teaserTag: [String: Any]? - - public var imageNature: String? - - public var description: String? - - public var highlights: [String]? - - public var tryouts: [String]? + class CatalogInsightBrand: Codable { - public var shortDescription: String? - public var uid: Int? + public var totalSizes: Int? - public var medias: [Media1]? + public var availableSizes: Int? - public var attributes: [String: Any]? + public var totalArticles: Int? - public var slug: String + public var articleFreshness: Int? - public var promoMeta: [String: Any]? + public var availableArticles: Int? public var name: String? - public var itemType: String? - - public var rating: Double? - - public var color: String? - - public var discount: String? - - public var sellable: Bool? - - public var price: ProductListingPrice? - - public var productOnlineDate: String? - public enum CodingKeys: String, CodingKey { - case hasVariant = "has_variant" - - case type = "type" - - case ratingCount = "rating_count" - - case similars = "similars" - - case teaserTag = "teaser_tag" - - case imageNature = "image_nature" - - case description = "description" - - case highlights = "highlights" - - case tryouts = "tryouts" - - case shortDescription = "short_description" - - case uid = "uid" + case totalSizes = "total_sizes" - case medias = "medias" + case availableSizes = "available_sizes" - case attributes = "attributes" + case totalArticles = "total_articles" - case slug = "slug" + case articleFreshness = "article_freshness" - case promoMeta = "promo_meta" + case availableArticles = "available_articles" case name = "name" - case itemType = "item_type" - - case rating = "rating" - - case color = "color" - - case discount = "discount" - - case sellable = "sellable" - - case price = "price" - - case productOnlineDate = "product_online_date" - } - public init(attributes: [String: Any]?, color: String?, description: String?, discount: String?, hasVariant: Bool?, highlights: [String]?, imageNature: String?, itemType: String?, medias: [Media1]?, name: String?, price: ProductListingPrice?, productOnlineDate: String?, promoMeta: [String: Any]?, rating: Double?, ratingCount: Int?, sellable: Bool?, shortDescription: String?, similars: [String]?, slug: String, teaserTag: [String: Any]?, tryouts: [String]?, type: String?, uid: Int?) { - - self.hasVariant = hasVariant - - self.type = type - - self.ratingCount = ratingCount - - self.similars = similars - - self.teaserTag = teaserTag - - self.imageNature = imageNature - - self.description = description - - self.highlights = highlights - - self.tryouts = tryouts - - self.shortDescription = shortDescription + public init(articleFreshness: Int?, availableArticles: Int?, availableSizes: Int?, name: String?, totalArticles: Int?, totalSizes: Int?) { - self.uid = uid + self.totalSizes = totalSizes - self.medias = medias + self.availableSizes = availableSizes - self.attributes = attributes + self.totalArticles = totalArticles - self.slug = slug + self.articleFreshness = articleFreshness - self.promoMeta = promoMeta + self.availableArticles = availableArticles self.name = name - self.itemType = itemType - - self.rating = rating - - self.color = color - - self.discount = discount - - self.sellable = sellable - - self.price = price - - self.productOnlineDate = productOnlineDate - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - do { - hasVariant = try container.decode(Bool.self, forKey: .hasVariant) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - type = try container.decode(String.self, forKey: .type) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - ratingCount = try container.decode(Int.self, forKey: .ratingCount) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - similars = try container.decode([String].self, forKey: .similars) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - teaserTag = try container.decode([String: Any].self, forKey: .teaserTag) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - imageNature = try container.decode(String.self, forKey: .imageNature) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + do { - description = try container.decode(String.self, forKey: .description) + totalSizes = try container.decode(Int.self, forKey: .totalSizes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75912,7 +76495,7 @@ public extension PlatformClient { do { - highlights = try container.decode([String].self, forKey: .highlights) + availableSizes = try container.decode(Int.self, forKey: .availableSizes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75923,7 +76506,7 @@ public extension PlatformClient { do { - tryouts = try container.decode([String].self, forKey: .tryouts) + totalArticles = try container.decode(Int.self, forKey: .totalArticles) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75934,7 +76517,7 @@ public extension PlatformClient { do { - shortDescription = try container.decode(String.self, forKey: .shortDescription) + articleFreshness = try container.decode(Int.self, forKey: .articleFreshness) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75945,7 +76528,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + availableArticles = try container.decode(Int.self, forKey: .availableArticles) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75956,7 +76539,7 @@ public extension PlatformClient { do { - medias = try container.decode([Media1].self, forKey: .medias) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -75965,57 +76548,62 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) - do { - attributes = try container.decode([String: Any].self, forKey: .attributes) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(totalSizes, forKey: .totalSizes) + + try? container.encodeIfPresent(availableSizes, forKey: .availableSizes) + try? container.encodeIfPresent(totalArticles, forKey: .totalArticles) - slug = try container.decode(String.self, forKey: .slug) + try? container.encodeIfPresent(articleFreshness, forKey: .articleFreshness) + try? container.encodeIfPresent(availableArticles, forKey: .availableArticles) + try? container.encodeIfPresent(name, forKey: .name) - do { - promoMeta = try container.decode([String: Any].self, forKey: .promoMeta) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + } + + } + + /* + Model: CatalogInsightResponse + Used By: Catalog + */ + + class CatalogInsightResponse: Codable { + + + public var item: CatalogInsightItem? + + public var brandDistribution: CatalogInsightBrand? + + + public enum CodingKeys: String, CodingKey { + case item = "item" - do { - name = try container.decode(String.self, forKey: .name) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + case brandDistribution = "brand_distribution" + } + + public init(brandDistribution: CatalogInsightBrand?, item: CatalogInsightItem?) { - do { - itemType = try container.decode(String.self, forKey: .itemType) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + self.item = item + + self.brandDistribution = brandDistribution + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) do { - rating = try container.decode(Double.self, forKey: .rating) + item = try container.decode(CatalogInsightItem.self, forKey: .item) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76026,7 +76614,7 @@ public extension PlatformClient { do { - color = try container.decode(String.self, forKey: .color) + brandDistribution = try container.decode(CatalogInsightBrand.self, forKey: .brandDistribution) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76035,9 +76623,54 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(item, forKey: .item) + + try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution) + + } + + } + + /* + Model: CrossSellingData + Used By: Catalog + */ + + class CrossSellingData: Codable { + + + public var articles: Int? + + public var products: Int? + + + public enum CodingKeys: String, CodingKey { + + case articles = "articles" + + case products = "products" + + } + + public init(articles: Int?, products: Int?) { + + self.articles = articles + + self.products = products + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + do { - discount = try container.decode(String.self, forKey: .discount) + articles = try container.decode(Int.self, forKey: .articles) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76048,7 +76681,7 @@ public extension PlatformClient { do { - sellable = try container.decode(Bool.self, forKey: .sellable) + products = try container.decode(Int.self, forKey: .products) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76057,9 +76690,54 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(articles, forKey: .articles) + + try? container.encodeIfPresent(products, forKey: .products) + + } + + } + + /* + Model: CrossSellingResponse + Used By: Catalog + */ + + class CrossSellingResponse: Codable { + + + public var brandDistribution: CatalogInsightBrand? + + public var data: CrossSellingData? + + + public enum CodingKeys: String, CodingKey { + + case brandDistribution = "brand_distribution" + + case data = "data" + + } + + public init(brandDistribution: CatalogInsightBrand?, data: CrossSellingData?) { + + self.brandDistribution = brandDistribution + + self.data = data + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + do { - price = try container.decode(ProductListingPrice.self, forKey: .price) + brandDistribution = try container.decode(CatalogInsightBrand.self, forKey: .brandDistribution) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76070,7 +76748,7 @@ public extension PlatformClient { do { - productOnlineDate = try container.decode(String.self, forKey: .productOnlineDate) + data = try container.decode(CrossSellingData.self, forKey: .data) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76084,94 +76762,52 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(hasVariant, forKey: .hasVariant) - - try? container.encodeIfPresent(type, forKey: .type) - - try? container.encodeIfPresent(ratingCount, forKey: .ratingCount) - - try? container.encodeIfPresent(similars, forKey: .similars) - - try? container.encodeIfPresent(teaserTag, forKey: .teaserTag) - - try? container.encodeIfPresent(imageNature, forKey: .imageNature) - - try? container.encodeIfPresent(description, forKey: .description) - - try? container.encodeIfPresent(highlights, forKey: .highlights) - - try? container.encodeIfPresent(tryouts, forKey: .tryouts) - - try? container.encodeIfPresent(shortDescription, forKey: .shortDescription) - - try? container.encodeIfPresent(uid, forKey: .uid) - - try? container.encodeIfPresent(medias, forKey: .medias) - - try? container.encodeIfPresent(attributes, forKey: .attributes) - - try? container.encodeIfPresent(slug, forKey: .slug) - - try? container.encodeIfPresent(promoMeta, forKey: .promoMeta) - - try? container.encodeIfPresent(name, forKey: .name) - - try? container.encodeIfPresent(itemType, forKey: .itemType) - - try? container.encodeIfPresent(rating, forKey: .rating) - - try? container.encodeIfPresent(color, forKey: .color) - - try? container.encodeIfPresent(discount, forKey: .discount) - - try? container.encodeIfPresent(sellable, forKey: .sellable) - - try? container.encodeIfPresent(price, forKey: .price) + try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution) - try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate) + try? container.encodeIfPresent(data, forKey: .data) } } /* - Model: GetCollectionItemsResponse + Model: OptInPostRequest Used By: Catalog */ - class GetCollectionItemsResponse: Codable { + class OptInPostRequest: Codable { - public var items: [ProductListingDetail]? + public var enabled: Bool? - public var filters: [ProductFilters]? + public var storeIds: [Int]? - public var sortOn: [ProductSortOn]? + public var brandIds: [Int]? - public var page: Page? + public var optLevel: String public enum CodingKeys: String, CodingKey { - case items = "items" + case enabled = "enabled" - case filters = "filters" + case storeIds = "store_ids" - case sortOn = "sort_on" + case brandIds = "brand_ids" - case page = "page" + case optLevel = "opt_level" } - public init(filters: [ProductFilters]?, items: [ProductListingDetail]?, page: Page?, sortOn: [ProductSortOn]?) { + public init(brandIds: [Int]?, enabled: Bool?, optLevel: String, storeIds: [Int]?) { - self.items = items + self.enabled = enabled - self.filters = filters + self.storeIds = storeIds - self.sortOn = sortOn + self.brandIds = brandIds - self.page = page + self.optLevel = optLevel } @@ -76180,7 +76816,7 @@ public extension PlatformClient { do { - items = try container.decode([ProductListingDetail].self, forKey: .items) + enabled = try container.decode(Bool.self, forKey: .enabled) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76191,7 +76827,7 @@ public extension PlatformClient { do { - filters = try container.decode([ProductFilters].self, forKey: .filters) + storeIds = try container.decode([Int].self, forKey: .storeIds) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76202,7 +76838,7 @@ public extension PlatformClient { do { - sortOn = try container.decode([ProductSortOn].self, forKey: .sortOn) + brandIds = try container.decode([Int].self, forKey: .brandIds) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76212,59 +76848,100 @@ public extension PlatformClient { - do { - page = try container.decode(Page.self, forKey: .page) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + optLevel = try container.decode(String.self, forKey: .optLevel) + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) + try? container.encodeIfPresent(enabled, forKey: .enabled) - try? container.encodeIfPresent(filters, forKey: .filters) + try? container.encodeIfPresent(storeIds, forKey: .storeIds) - try? container.encodeIfPresent(sortOn, forKey: .sortOn) + try? container.encodeIfPresent(brandIds, forKey: .brandIds) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(optLevel, forKey: .optLevel) } } /* - Model: CollectionItemRequest + Model: CompanyOptIn Used By: Catalog */ - class CollectionItemRequest: Codable { + class CompanyOptIn: Codable { - public var pageSize: Int + public var createdOn: Int - public var pageNo: Int + public var createdBy: [String: Any]? + + public var companyId: Int + + public var enabled: Bool + + public var platform: String + + public var brandIds: [Int] + + public var storeIds: [Int] + + public var modifiedBy: [String: Any]? + + public var modifiedOn: Int + + public var optLevel: String public enum CodingKeys: String, CodingKey { - case pageSize = "page_size" + case createdOn = "created_on" - case pageNo = "page_no" + case createdBy = "created_by" + + case companyId = "company_id" + + case enabled = "enabled" + + case platform = "platform" + + case brandIds = "brand_ids" + + case storeIds = "store_ids" + + case modifiedBy = "modified_by" + + case modifiedOn = "modified_on" + + case optLevel = "opt_level" } - public init(pageNo: Int, pageSize: Int) { + public init(brandIds: [Int], companyId: Int, createdBy: [String: Any]?, createdOn: Int, enabled: Bool, modifiedBy: [String: Any]?, modifiedOn: Int, optLevel: String, platform: String, storeIds: [Int]) { - self.pageSize = pageSize + self.createdOn = createdOn - self.pageNo = pageNo + self.createdBy = createdBy + + self.companyId = companyId + + self.enabled = enabled + + self.platform = platform + + self.brandIds = brandIds + + self.storeIds = storeIds + + self.modifiedBy = modifiedBy + + self.modifiedOn = modifiedOn + + self.optLevel = optLevel } @@ -76272,55 +76949,43 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - pageSize = try container.decode(Int.self, forKey: .pageSize) + createdOn = try container.decode(Int.self, forKey: .createdOn) - pageNo = try container.decode(Int.self, forKey: .pageNo) + do { + createdBy = try container.decode([String: Any].self, forKey: .createdBy) + } 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) + companyId = try container.decode(Int.self, forKey: .companyId) - try? container.encodeIfPresent(pageSize, forKey: .pageSize) - try? container.encodeIfPresent(pageNo, forKey: .pageNo) - } - - } - - /* - Model: UpdatedResponse - Used By: Catalog - */ - - class UpdatedResponse: Codable { - - - public var message: String? - - - public enum CodingKeys: String, CodingKey { + enabled = try container.decode(Bool.self, forKey: .enabled) - case message = "message" - } - - public init(message: String?) { - self.message = message + platform = try container.decode(String.self, forKey: .platform) + + + + brandIds = try container.decode([Int].self, forKey: .brandIds) + + + + storeIds = try container.decode([Int].self, forKey: .storeIds) - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) do { - message = try container.decode(String.self, forKey: .message) + modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76329,49 +76994,69 @@ public extension PlatformClient { } + + modifiedOn = try container.decode(Int.self, forKey: .modifiedOn) + + + + optLevel = try container.decode(String.self, forKey: .optLevel) + + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(message, forKey: .message) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) + + try? container.encodeIfPresent(createdBy, forKey: .createdBy) + + try? container.encodeIfPresent(companyId, forKey: .companyId) + + try? container.encodeIfPresent(enabled, forKey: .enabled) + + try? container.encodeIfPresent(platform, forKey: .platform) + + try? container.encodeIfPresent(brandIds, forKey: .brandIds) + + try? container.encodeIfPresent(storeIds, forKey: .storeIds) + + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + + try? container.encodeIfPresent(optLevel, forKey: .optLevel) } } /* - Model: CatalogInsightItem + Model: GetOptInPlatform Used By: Catalog */ - class CatalogInsightItem: Codable { - + class GetOptInPlatform: Codable { - public var sellableCount: Int? - public var outOfStockCount: Int? + public var page: Page - public var count: Int? + public var items: [CompanyOptIn] public enum CodingKeys: String, CodingKey { - case sellableCount = "sellable_count" - - case outOfStockCount = "out_of_stock_count" + case page = "page" - case count = "count" + case items = "items" } - public init(count: Int?, outOfStockCount: Int?, sellableCount: Int?) { - - self.sellableCount = sellableCount + public init(items: [CompanyOptIn], page: Page) { - self.outOfStockCount = outOfStockCount + self.page = page - self.count = count + self.items = items } @@ -76379,104 +77064,65 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - sellableCount = try container.decode(Int.self, forKey: .sellableCount) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + page = try container.decode(Page.self, forKey: .page) - do { - outOfStockCount = try container.decode(Int.self, forKey: .outOfStockCount) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + items = try container.decode([CompanyOptIn].self, forKey: .items) - do { - count = try container.decode(Int.self, forKey: .count) - } 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(sellableCount, forKey: .sellableCount) - - try? container.encodeIfPresent(outOfStockCount, forKey: .outOfStockCount) + try? container.encodeIfPresent(page, forKey: .page) - try? container.encodeIfPresent(count, forKey: .count) + try? container.encodeIfPresent(items, forKey: .items) } } /* - Model: CatalogInsightBrand + Model: OptinCompanyDetail Used By: Catalog */ - class CatalogInsightBrand: Codable { + class OptinCompanyDetail: Codable { - public var availableSizes: Int? + public var uid: Int? - public var totalSizes: Int? + public var businessType: String? - public var articleFreshness: Int? + public var companyType: String? public var name: String? - public var totalArticles: Int? - - public var availableArticles: Int? - public enum CodingKeys: String, CodingKey { - case availableSizes = "available_sizes" + case uid = "uid" - case totalSizes = "total_sizes" + case businessType = "business_type" - case articleFreshness = "article_freshness" + case companyType = "company_type" case name = "name" - case totalArticles = "total_articles" - - case availableArticles = "available_articles" - } - public init(articleFreshness: Int?, availableArticles: Int?, availableSizes: Int?, name: String?, totalArticles: Int?, totalSizes: Int?) { + public init(businessType: String?, companyType: String?, name: String?, uid: Int?) { - self.availableSizes = availableSizes + self.uid = uid - self.totalSizes = totalSizes + self.businessType = businessType - self.articleFreshness = articleFreshness + self.companyType = companyType self.name = name - self.totalArticles = totalArticles - - self.availableArticles = availableArticles - } required public init(from decoder: Decoder) throws { @@ -76484,7 +77130,7 @@ public extension PlatformClient { do { - availableSizes = try container.decode(Int.self, forKey: .availableSizes) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76495,7 +77141,7 @@ public extension PlatformClient { do { - totalSizes = try container.decode(Int.self, forKey: .totalSizes) + businessType = try container.decode(String.self, forKey: .businessType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76506,7 +77152,7 @@ public extension PlatformClient { do { - articleFreshness = try container.decode(Int.self, forKey: .articleFreshness) + companyType = try container.decode(String.self, forKey: .companyType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76526,75 +77172,61 @@ public extension PlatformClient { } - - do { - totalArticles = try container.decode(Int.self, forKey: .totalArticles) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - availableArticles = try container.decode(Int.self, forKey: .availableArticles) - } 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(availableSizes, forKey: .availableSizes) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(totalSizes, forKey: .totalSizes) + try? container.encodeIfPresent(businessType, forKey: .businessType) - try? container.encodeIfPresent(articleFreshness, forKey: .articleFreshness) + try? container.encodeIfPresent(companyType, forKey: .companyType) try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(totalArticles, forKey: .totalArticles) - - try? container.encodeIfPresent(availableArticles, forKey: .availableArticles) - } } /* - Model: CatalogInsightResponse + Model: CompanyBrandDetail Used By: Catalog */ - class CatalogInsightResponse: Codable { + class CompanyBrandDetail: Codable { - public var item: CatalogInsightItem? + public var totalArticle: Int? - public var brandDistribution: CatalogInsightBrand? + public var brandId: Int? + + public var brandName: String? + + public var companyId: Int? public enum CodingKeys: String, CodingKey { - case item = "item" + case totalArticle = "total_article" - case brandDistribution = "brand_distribution" + case brandId = "brand_id" + + case brandName = "brand_name" + + case companyId = "company_id" } - public init(brandDistribution: CatalogInsightBrand?, item: CatalogInsightItem?) { + public init(brandId: Int?, brandName: String?, companyId: Int?, totalArticle: Int?) { - self.item = item + self.totalArticle = totalArticle - self.brandDistribution = brandDistribution + self.brandId = brandId + + self.brandName = brandName + + self.companyId = companyId } @@ -76603,7 +77235,7 @@ public extension PlatformClient { do { - item = try container.decode(CatalogInsightItem.self, forKey: .item) + totalArticle = try container.decode(Int.self, forKey: .totalArticle) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76614,7 +77246,7 @@ public extension PlatformClient { do { - brandDistribution = try container.decode(CatalogInsightBrand.self, forKey: .brandDistribution) + brandId = try container.decode(Int.self, forKey: .brandId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76623,54 +77255,9 @@ public extension PlatformClient { } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - - try? container.encodeIfPresent(item, forKey: .item) - - try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution) - - } - - } - - /* - Model: CrossSellingData - Used By: Catalog - */ - - class CrossSellingData: Codable { - - - public var products: Int? - - public var articles: Int? - - - public enum CodingKeys: String, CodingKey { - - case products = "products" - - case articles = "articles" - - } - - public init(articles: Int?, products: Int?) { - - self.products = products - - self.articles = articles - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - do { - products = try container.decode(Int.self, forKey: .products) + brandName = try container.decode(String.self, forKey: .brandName) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76681,7 +77268,7 @@ public extension PlatformClient { do { - articles = try container.decode(Int.self, forKey: .articles) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76695,40 +77282,44 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(products, forKey: .products) + try? container.encodeIfPresent(totalArticle, forKey: .totalArticle) - try? container.encodeIfPresent(articles, forKey: .articles) + try? container.encodeIfPresent(brandId, forKey: .brandId) + + try? container.encodeIfPresent(brandName, forKey: .brandName) + + try? container.encodeIfPresent(companyId, forKey: .companyId) } } /* - Model: CrossSellingResponse + Model: OptinCompanyBrandDetailsView Used By: Catalog */ - class CrossSellingResponse: Codable { + class OptinCompanyBrandDetailsView: Codable { - public var brandDistribution: CatalogInsightBrand? + public var page: Page? - public var data: CrossSellingData? + public var items: [CompanyBrandDetail]? public enum CodingKeys: String, CodingKey { - case brandDistribution = "brand_distribution" + case page = "page" - case data = "data" + case items = "items" } - public init(brandDistribution: CatalogInsightBrand?, data: CrossSellingData?) { + public init(items: [CompanyBrandDetail]?, page: Page?) { - self.brandDistribution = brandDistribution + self.page = page - self.data = data + self.items = items } @@ -76737,7 +77328,7 @@ public extension PlatformClient { do { - brandDistribution = try container.decode(CatalogInsightBrand.self, forKey: .brandDistribution) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76748,7 +77339,7 @@ public extension PlatformClient { do { - data = try container.decode(CrossSellingData.self, forKey: .data) + items = try container.decode([CompanyBrandDetail].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76762,52 +77353,46 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(brandDistribution, forKey: .brandDistribution) + try? container.encodeIfPresent(page, forKey: .page) - try? container.encodeIfPresent(data, forKey: .data) + try? container.encodeIfPresent(items, forKey: .items) } } /* - Model: OptInPostRequest + Model: OptinCompanyMetrics Used By: Catalog */ - class OptInPostRequest: Codable { - + class OptinCompanyMetrics: Codable { - public var storeIds: [Int]? - public var optLevel: String + public var company: String? - public var brandIds: [Int]? + public var brand: Int? - public var enabled: Bool? + public var store: Int? public enum CodingKeys: String, CodingKey { - case storeIds = "store_ids" - - case optLevel = "opt_level" + case company = "company" - case brandIds = "brand_ids" + case brand = "brand" - case enabled = "enabled" + case store = "store" } - public init(brandIds: [Int]?, enabled: Bool?, optLevel: String, storeIds: [Int]?) { - - self.storeIds = storeIds + public init(brand: Int?, company: String?, store: Int?) { - self.optLevel = optLevel + self.company = company - self.brandIds = brandIds + self.brand = brand - self.enabled = enabled + self.store = store } @@ -76816,7 +77401,7 @@ public extension PlatformClient { do { - storeIds = try container.decode([Int].self, forKey: .storeIds) + company = try container.decode(String.self, forKey: .company) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76826,12 +77411,8 @@ public extension PlatformClient { - optLevel = try container.decode(String.self, forKey: .optLevel) - - - do { - brandIds = try container.decode([Int].self, forKey: .brandIds) + brand = try container.decode(Int.self, forKey: .brand) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76842,7 +77423,7 @@ public extension PlatformClient { do { - enabled = try container.decode(Bool.self, forKey: .enabled) + store = try container.decode(Int.self, forKey: .store) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76856,92 +77437,96 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(storeIds, forKey: .storeIds) - - try? container.encodeIfPresent(optLevel, forKey: .optLevel) + try? container.encodeIfPresent(company, forKey: .company) - try? container.encodeIfPresent(brandIds, forKey: .brandIds) + try? container.encodeIfPresent(brand, forKey: .brand) - try? container.encodeIfPresent(enabled, forKey: .enabled) + try? container.encodeIfPresent(store, forKey: .store) } } /* - Model: CompanyOptIn + Model: StoreDetail Used By: Catalog */ - class CompanyOptIn: Codable { + class StoreDetail: Codable { - public var companyId: Int + public var createdOn: String? - public var createdOn: Int + public var additionalContacts: [[String: Any]]? - public var platform: String + public var uid: Int? - public var storeIds: [Int] + public var timing: [String: Any]? - public var modifiedOn: Int + public var displayName: String? - public var brandIds: [Int] + public var modifiedOn: String? - public var modifiedBy: [String: Any]? + public var companyId: Int? - public var enabled: Bool + public var documents: [[String: Any]]? + + public var storeType: String? - public var optLevel: String + public var name: String? - public var createdBy: [String: Any]? + public var storeCode: String? public enum CodingKeys: String, CodingKey { - case companyId = "company_id" - case createdOn = "created_on" - case platform = "platform" + case additionalContacts = "additional_contacts" - case storeIds = "store_ids" + case uid = "uid" + + case timing = "timing" + + case displayName = "display_name" case modifiedOn = "modified_on" - case brandIds = "brand_ids" + case companyId = "company_id" - case modifiedBy = "modified_by" + case documents = "documents" - case enabled = "enabled" + case storeType = "store_type" - case optLevel = "opt_level" + case name = "name" - case createdBy = "created_by" + case storeCode = "store_code" } - public init(brandIds: [Int], companyId: Int, createdBy: [String: Any]?, createdOn: Int, enabled: Bool, modifiedBy: [String: Any]?, modifiedOn: Int, optLevel: String, platform: String, storeIds: [Int]) { - - self.companyId = companyId + public init(additionalContacts: [[String: Any]]?, companyId: Int?, createdOn: String?, displayName: String?, documents: [[String: Any]]?, modifiedOn: String?, name: String?, storeCode: String?, storeType: String?, timing: [String: Any]?, uid: Int?) { self.createdOn = createdOn - self.platform = platform + self.additionalContacts = additionalContacts - self.storeIds = storeIds + self.uid = uid + + self.timing = timing + + self.displayName = displayName self.modifiedOn = modifiedOn - self.brandIds = brandIds + self.companyId = companyId - self.modifiedBy = modifiedBy + self.documents = documents - self.enabled = enabled + self.storeType = storeType - self.optLevel = optLevel + self.name = name - self.createdBy = createdBy + self.storeCode = storeCode } @@ -76949,32 +77534,74 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - companyId = try container.decode(Int.self, forKey: .companyId) - - - - createdOn = try container.decode(Int.self, forKey: .createdOn) - - - - platform = try container.decode(String.self, forKey: .platform) + do { + createdOn = try container.decode(String.self, forKey: .createdOn) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + do { + additionalContacts = try container.decode([[String: Any]].self, forKey: .additionalContacts) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - storeIds = try container.decode([Int].self, forKey: .storeIds) + do { + uid = try container.decode(Int.self, forKey: .uid) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - modifiedOn = try container.decode(Int.self, forKey: .modifiedOn) + do { + timing = try container.decode([String: Any].self, forKey: .timing) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + do { + displayName = try container.decode(String.self, forKey: .displayName) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - brandIds = try container.decode([Int].self, forKey: .brandIds) + do { + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + do { - modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -76984,16 +77611,41 @@ public extension PlatformClient { - enabled = try container.decode(Bool.self, forKey: .enabled) + do { + documents = try container.decode([[String: Any]].self, forKey: .documents) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + do { + storeType = try container.decode(String.self, forKey: .storeType) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - optLevel = try container.decode(String.self, forKey: .optLevel) + do { + name = try container.decode(String.self, forKey: .name) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + do { - createdBy = try container.decode([String: Any].self, forKey: .createdBy) + storeCode = try container.decode(String.self, forKey: .storeCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77007,152 +77659,134 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(platform, forKey: .platform) + try? container.encodeIfPresent(additionalContacts, forKey: .additionalContacts) - try? container.encodeIfPresent(storeIds, forKey: .storeIds) + try? container.encodeIfPresent(uid, forKey: .uid) + + try? container.encodeIfPresent(timing, forKey: .timing) + + try? container.encodeIfPresent(displayName, forKey: .displayName) try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - try? container.encodeIfPresent(brandIds, forKey: .brandIds) + try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(documents, forKey: .documents) - try? container.encodeIfPresent(enabled, forKey: .enabled) + try? container.encodeIfPresent(storeType, forKey: .storeType) - try? container.encodeIfPresent(optLevel, forKey: .optLevel) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(storeCode, forKey: .storeCode) } } /* - Model: GetOptInPlatform + Model: OptinStoreDetails Used By: Catalog */ - class GetOptInPlatform: Codable { + class OptinStoreDetails: Codable { - public var items: [CompanyOptIn] + public var page: Page? - public var page: Page + public var items: [StoreDetail]? public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } - public init(items: [CompanyOptIn], page: Page) { - - self.items = items + public init(items: [StoreDetail]?, page: Page?) { self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - items = try container.decode([CompanyOptIn].self, forKey: .items) - - + do { + page = try container.decode(Page.self, forKey: .page) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - page = try container.decode(Page.self, forKey: .page) + do { + items = try container.decode([StoreDetail].self, forKey: .items) + } 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(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } /* - Model: OptinCompanyDetail + Model: ProdcutTemplateCategoriesResponse Used By: Catalog */ - class OptinCompanyDetail: Codable { - - - public var uid: Int? + class ProdcutTemplateCategoriesResponse: Codable { - public var businessType: String? - public var companyType: String? + public var page: Page? - public var name: String? + public var items: [[String: Any]]? public enum CodingKeys: String, CodingKey { - case uid = "uid" - - case businessType = "business_type" - - case companyType = "company_type" - - case name = "name" - - } - - public init(businessType: String?, companyType: String?, name: String?, uid: Int?) { - - self.uid = uid - - self.businessType = businessType - - self.companyType = companyType + case page = "page" - self.name = name + case items = "items" } - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - do { - uid = try container.decode(Int.self, forKey: .uid) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + public init(items: [[String: Any]]?, page: Page?) { + self.page = page - do { - businessType = try container.decode(String.self, forKey: .businessType) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + self.items = items + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) do { - companyType = try container.decode(String.self, forKey: .companyType) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77163,7 +77797,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + items = try container.decode([[String: Any]].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77177,56 +77811,58 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(uid, forKey: .uid) - - try? container.encodeIfPresent(businessType, forKey: .businessType) - - try? container.encodeIfPresent(companyType, forKey: .companyType) + try? container.encodeIfPresent(page, forKey: .page) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(items, forKey: .items) } } /* - Model: CompanyBrandDetail + Model: PTErrorResponse Used By: Catalog */ - class CompanyBrandDetail: Codable { + class PTErrorResponse: Codable { - public var totalArticle: Int? + public var code: String? - public var companyId: Int? + public var errors: [String: Any]? - public var brandName: String? + public var status: Int? - public var brandId: Int? + public var meta: [String: Any]? + + public var message: String? public enum CodingKeys: String, CodingKey { - case totalArticle = "total_article" + case code = "code" - case companyId = "company_id" + case errors = "errors" - case brandName = "brand_name" + case status = "status" - case brandId = "brand_id" + case meta = "meta" + + case message = "message" } - public init(brandId: Int?, brandName: String?, companyId: Int?, totalArticle: Int?) { + public init(code: String?, errors: [String: Any]?, message: String?, meta: [String: Any]?, status: Int?) { - self.totalArticle = totalArticle + self.code = code - self.companyId = companyId + self.errors = errors - self.brandName = brandName + self.status = status - self.brandId = brandId + self.meta = meta + + self.message = message } @@ -77235,18 +77871,7 @@ public extension PlatformClient { do { - totalArticle = try container.decode(Int.self, forKey: .totalArticle) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - companyId = try container.decode(Int.self, forKey: .companyId) + code = try container.decode(String.self, forKey: .code) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77257,7 +77882,7 @@ public extension PlatformClient { do { - brandName = try container.decode(String.self, forKey: .brandName) + errors = try container.decode([String: Any].self, forKey: .errors) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77268,7 +77893,7 @@ public extension PlatformClient { do { - brandId = try container.decode(Int.self, forKey: .brandId) + status = try container.decode(Int.self, forKey: .status) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77277,58 +77902,9 @@ public extension PlatformClient { } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - - try? container.encodeIfPresent(totalArticle, forKey: .totalArticle) - - try? container.encodeIfPresent(companyId, forKey: .companyId) - - try? container.encodeIfPresent(brandName, forKey: .brandName) - - try? container.encodeIfPresent(brandId, forKey: .brandId) - - } - - } - - /* - Model: OptinCompanyBrandDetailsView - Used By: Catalog - */ - - class OptinCompanyBrandDetailsView: Codable { - - - public var items: [CompanyBrandDetail]? - - public var page: Page? - - - public enum CodingKeys: String, CodingKey { - - case items = "items" - - case page = "page" - - } - - public init(items: [CompanyBrandDetail]?, page: Page?) { - - self.items = items - - self.page = page - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - do { - items = try container.decode([CompanyBrandDetail].self, forKey: .items) + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77339,7 +77915,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + message = try container.decode(String.self, forKey: .message) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77353,46 +77929,52 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) + try? container.encodeIfPresent(code, forKey: .code) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(errors, forKey: .errors) + + try? container.encodeIfPresent(status, forKey: .status) + + try? container.encodeIfPresent(meta, forKey: .meta) + + try? container.encodeIfPresent(message, forKey: .message) } } /* - Model: OptinCompanyMetrics + Model: UserSerializer Used By: Catalog */ - class OptinCompanyMetrics: Codable { + class UserSerializer: Codable { - public var brand: Int? + public var username: String? - public var store: Int? + public var contact: String? - public var company: String? + public var userId: String? public enum CodingKeys: String, CodingKey { - case brand = "brand" + case username = "username" - case store = "store" + case contact = "contact" - case company = "company" + case userId = "user_id" } - public init(brand: Int?, company: String?, store: Int?) { + public init(contact: String?, username: String?, userId: String?) { - self.brand = brand + self.username = username - self.store = store + self.contact = contact - self.company = company + self.userId = userId } @@ -77401,7 +77983,7 @@ public extension PlatformClient { do { - brand = try container.decode(Int.self, forKey: .brand) + username = try container.decode(String.self, forKey: .username) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77412,7 +77994,7 @@ public extension PlatformClient { do { - store = try container.decode(Int.self, forKey: .store) + contact = try container.decode(String.self, forKey: .contact) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77423,7 +78005,7 @@ public extension PlatformClient { do { - company = try container.decode(String.self, forKey: .company) + userId = try container.decode(String.self, forKey: .userId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77437,94 +78019,118 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(brand, forKey: .brand) + try? container.encodeIfPresent(username, forKey: .username) - try? container.encodeIfPresent(store, forKey: .store) + try? container.encodeIfPresent(contact, forKey: .contact) - try? container.encodeIfPresent(company, forKey: .company) + try? container.encodeIfPresent(userId, forKey: .userId) } } /* - Model: StoreDetail + Model: GetDepartment Used By: Catalog */ - class StoreDetail: Codable { - + class GetDepartment: Codable { - public var uid: Int? public var createdOn: String? - public var companyId: Int? + public var isActive: Bool? - public var displayName: String? + public var pageNo: Int? - public var storeCode: String? + public var createdBy: UserSerializer? - public var additionalContacts: [[String: Any]]? + public var priorityOrder: Int? - public var storeType: String? + public var uid: Int? - public var documents: [[String: Any]]? + public var synonyms: [String]? + + public var search: String? + + public var logo: String? public var modifiedOn: String? - public var timing: [String: Any]? + public var itemType: String? + + public var slug: String? + + public var pageSize: Int? + + public var modifiedBy: UserSerializer? public var name: String? public enum CodingKeys: String, CodingKey { - case uid = "uid" - case createdOn = "created_on" - case companyId = "company_id" + case isActive = "is_active" - case displayName = "display_name" + case pageNo = "page_no" - case storeCode = "store_code" + case createdBy = "created_by" - case additionalContacts = "additional_contacts" + case priorityOrder = "priority_order" - case storeType = "store_type" + case uid = "uid" - case documents = "documents" + case synonyms = "synonyms" + + case search = "search" + + case logo = "logo" case modifiedOn = "modified_on" - case timing = "timing" + case itemType = "item_type" + + case slug = "slug" + + case pageSize = "page_size" + + case modifiedBy = "modified_by" case name = "name" } - public init(additionalContacts: [[String: Any]]?, companyId: Int?, createdOn: String?, displayName: String?, documents: [[String: Any]]?, modifiedOn: String?, name: String?, storeCode: String?, storeType: String?, timing: [String: Any]?, uid: Int?) { - - self.uid = uid + public init(createdBy: UserSerializer?, createdOn: String?, isActive: Bool?, itemType: String?, logo: String?, modifiedBy: UserSerializer?, modifiedOn: String?, name: String?, pageNo: Int?, pageSize: Int?, priorityOrder: Int?, search: String?, slug: String?, synonyms: [String]?, uid: Int?) { self.createdOn = createdOn - self.companyId = companyId + self.isActive = isActive - self.displayName = displayName + self.pageNo = pageNo - self.storeCode = storeCode + self.createdBy = createdBy + + self.priorityOrder = priorityOrder + + self.uid = uid + + self.synonyms = synonyms + + self.search = search + + self.logo = logo - self.additionalContacts = additionalContacts + self.modifiedOn = modifiedOn - self.storeType = storeType + self.itemType = itemType - self.documents = documents + self.slug = slug - self.modifiedOn = modifiedOn + self.pageSize = pageSize - self.timing = timing + self.modifiedBy = modifiedBy self.name = name @@ -77534,17 +78140,6 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - uid = try container.decode(Int.self, forKey: .uid) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - do { createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { @@ -77557,51 +78152,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - displayName = try container.decode(String.self, forKey: .displayName) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - storeCode = try container.decode(String.self, forKey: .storeCode) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - additionalContacts = try container.decode([[String: Any]].self, forKey: .additionalContacts) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - storeType = try container.decode(String.self, forKey: .storeType) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77612,7 +78163,7 @@ public extension PlatformClient { do { - documents = try container.decode([[String: Any]].self, forKey: .documents) + pageNo = try container.decode(Int.self, forKey: .pageNo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77623,7 +78174,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + createdBy = try container.decode(UserSerializer.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77634,7 +78185,7 @@ public extension PlatformClient { do { - timing = try container.decode([String: Any].self, forKey: .timing) + priorityOrder = try container.decode(Int.self, forKey: .priorityOrder) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77645,7 +78196,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77654,72 +78205,9 @@ public extension PlatformClient { } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - - try? container.encodeIfPresent(uid, forKey: .uid) - - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - - try? container.encodeIfPresent(companyId, forKey: .companyId) - - try? container.encodeIfPresent(displayName, forKey: .displayName) - - try? container.encodeIfPresent(storeCode, forKey: .storeCode) - - try? container.encodeIfPresent(additionalContacts, forKey: .additionalContacts) - - try? container.encodeIfPresent(storeType, forKey: .storeType) - - try? container.encodeIfPresent(documents, forKey: .documents) - - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - - try? container.encodeIfPresent(timing, forKey: .timing) - - try? container.encodeIfPresent(name, forKey: .name) - - } - - } - - /* - Model: OptinStoreDetails - Used By: Catalog - */ - - class OptinStoreDetails: Codable { - - - public var items: [StoreDetail]? - - public var page: Page? - - - public enum CodingKeys: String, CodingKey { - - case items = "items" - - case page = "page" - - } - - public init(items: [StoreDetail]?, page: Page?) { - - self.items = items - - self.page = page - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - do { - items = try container.decode([StoreDetail].self, forKey: .items) + synonyms = try container.decode([String].self, forKey: .synonyms) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77730,7 +78218,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + search = try container.decode(String.self, forKey: .search) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77739,54 +78227,9 @@ public extension PlatformClient { } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - - try? container.encodeIfPresent(items, forKey: .items) - - try? container.encodeIfPresent(page, forKey: .page) - - } - - } - - /* - Model: ProdcutTemplateCategoriesResponse - Used By: Catalog - */ - - class ProdcutTemplateCategoriesResponse: Codable { - - - public var items: [[String: Any]]? - - public var page: Page? - - - public enum CodingKeys: String, CodingKey { - - case items = "items" - - case page = "page" - - } - - public init(items: [[String: Any]]?, page: Page?) { - - self.items = items - - self.page = page - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - do { - items = try container.decode([[String: Any]].self, forKey: .items) + logo = try container.decode(String.self, forKey: .logo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77797,81 +78240,18 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } 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(items, forKey: .items) - - try? container.encodeIfPresent(page, forKey: .page) - - } - - } - - /* - Model: PTErrorResponse - Used By: Catalog - */ - - class PTErrorResponse: Codable { - - - public var status: Int? - - public var code: String? - - public var errors: [String: Any]? - - public var message: String? - - public var meta: [String: Any]? - - - public enum CodingKeys: String, CodingKey { - - case status = "status" - - case code = "code" - - case errors = "errors" - - case message = "message" - - case meta = "meta" - - } - - public init(code: String?, errors: [String: Any]?, message: String?, meta: [String: Any]?, status: Int?) { - - self.status = status - - self.code = code - - self.errors = errors - - self.message = message - - self.meta = meta - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + } + do { - status = try container.decode(Int.self, forKey: .status) + itemType = try container.decode(String.self, forKey: .itemType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77882,7 +78262,7 @@ public extension PlatformClient { do { - code = try container.decode(String.self, forKey: .code) + slug = try container.decode(String.self, forKey: .slug) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77893,7 +78273,7 @@ public extension PlatformClient { do { - errors = try container.decode([String: Any].self, forKey: .errors) + pageSize = try container.decode(Int.self, forKey: .pageSize) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77904,7 +78284,7 @@ public extension PlatformClient { do { - message = try container.decode(String.self, forKey: .message) + modifiedBy = try container.decode(UserSerializer.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77915,7 +78295,7 @@ public extension PlatformClient { do { - meta = try container.decode([String: Any].self, forKey: .meta) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -77929,52 +78309,66 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(status, forKey: .status) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(code, forKey: .code) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(errors, forKey: .errors) + try? container.encodeIfPresent(pageNo, forKey: .pageNo) - try? container.encodeIfPresent(message, forKey: .message) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) - try? container.encodeIfPresent(meta, forKey: .meta) + try? container.encodeIfPresent(priorityOrder, forKey: .priorityOrder) + + try? container.encodeIfPresent(uid, forKey: .uid) + + try? container.encodeIfPresent(synonyms, forKey: .synonyms) + + try? container.encodeIfPresent(search, forKey: .search) + + try? container.encodeIfPresent(logo, forKey: .logo) + + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + + try? container.encodeIfPresent(itemType, forKey: .itemType) + + try? container.encodeIfPresent(slug, forKey: .slug) + + try? container.encodeIfPresent(pageSize, forKey: .pageSize) + + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + + try? container.encodeIfPresent(name, forKey: .name) } } /* - Model: UserSerializer + Model: DepartmentsResponse Used By: Catalog */ - class UserSerializer: Codable { - + class DepartmentsResponse: Codable { - public var contact: String? - public var username: String? + public var page: Page? - public var userId: String? + public var items: [GetDepartment]? public enum CodingKeys: String, CodingKey { - case contact = "contact" - - case username = "username" + case page = "page" - case userId = "user_id" + case items = "items" } - public init(contact: String?, username: String?, userId: String?) { - - self.contact = contact + public init(items: [GetDepartment]?, page: Page?) { - self.username = username + self.page = page - self.userId = userId + self.items = items } @@ -77983,18 +78377,7 @@ public extension PlatformClient { do { - contact = try container.decode(String.self, forKey: .contact) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - username = try container.decode(String.self, forKey: .username) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78005,7 +78388,7 @@ public extension PlatformClient { do { - userId = try container.decode(String.self, forKey: .userId) + items = try container.decode([GetDepartment].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78019,239 +78402,67 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(contact, forKey: .contact) - - try? container.encodeIfPresent(username, forKey: .username) + try? container.encodeIfPresent(page, forKey: .page) - try? container.encodeIfPresent(userId, forKey: .userId) + try? container.encodeIfPresent(items, forKey: .items) } } /* - Model: GetDepartment + Model: DepartmentErrorResponse Used By: Catalog */ - class GetDepartment: Codable { - - - public var uid: Int? - - public var createdOn: String? - - public var pageNo: Int? - - public var slug: String? - - public var search: String? - - public var isActive: Bool? - - public var synonyms: [String]? - - public var modifiedOn: String? - - public var pageSize: Int? + class DepartmentErrorResponse: Codable { - public var logo: String? - public var priorityOrder: Int? + public var code: String? - public var name: String? + public var errors: [String: Any]? - public var itemType: String? + public var status: Int? - public var modifiedBy: UserSerializer? + public var meta: [String: Any]? - public var createdBy: UserSerializer? + public var message: String? public enum CodingKeys: String, CodingKey { - case uid = "uid" - - case createdOn = "created_on" - - case pageNo = "page_no" - - case slug = "slug" - - case search = "search" - - case isActive = "is_active" - - case synonyms = "synonyms" - - case modifiedOn = "modified_on" - - case pageSize = "page_size" - - case logo = "logo" - - case priorityOrder = "priority_order" - - case name = "name" - - case itemType = "item_type" - - case modifiedBy = "modified_by" - - case createdBy = "created_by" - - } - - public init(createdBy: UserSerializer?, createdOn: String?, isActive: Bool?, itemType: String?, logo: String?, modifiedBy: UserSerializer?, modifiedOn: String?, name: String?, pageNo: Int?, pageSize: Int?, priorityOrder: Int?, search: String?, slug: String?, synonyms: [String]?, uid: Int?) { - - self.uid = uid - - self.createdOn = createdOn - - self.pageNo = pageNo - - self.slug = slug - - self.search = search - - self.isActive = isActive - - self.synonyms = synonyms - - self.modifiedOn = modifiedOn - - self.pageSize = pageSize - - self.logo = logo - - self.priorityOrder = priorityOrder - - self.name = name - - self.itemType = itemType - - self.modifiedBy = modifiedBy - - self.createdBy = createdBy - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - do { - uid = try container.decode(Int.self, forKey: .uid) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - createdOn = try container.decode(String.self, forKey: .createdOn) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - pageNo = try container.decode(Int.self, forKey: .pageNo) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - slug = try container.decode(String.self, forKey: .slug) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - search = try container.decode(String.self, forKey: .search) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + case code = "code" + case errors = "errors" - do { - isActive = try container.decode(Bool.self, forKey: .isActive) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + case status = "status" + case meta = "meta" - do { - synonyms = try container.decode([String].self, forKey: .synonyms) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + case message = "message" + } + + public init(code: String?, errors: [String: Any]?, message: String?, meta: [String: Any]?, status: Int?) { - do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + self.code = code + self.errors = errors - do { - pageSize = try container.decode(Int.self, forKey: .pageSize) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + self.status = status + self.meta = meta - do { - logo = try container.decode(String.self, forKey: .logo) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + self.message = message + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) do { - priorityOrder = try container.decode(Int.self, forKey: .priorityOrder) + code = try container.decode(String.self, forKey: .code) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78262,7 +78473,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + errors = try container.decode([String: Any].self, forKey: .errors) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78273,7 +78484,7 @@ public extension PlatformClient { do { - itemType = try container.decode(String.self, forKey: .itemType) + status = try container.decode(Int.self, forKey: .status) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78284,7 +78495,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserSerializer.self, forKey: .modifiedBy) + meta = try container.decode([String: Any].self, forKey: .meta) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78295,7 +78506,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserSerializer.self, forKey: .createdBy) + message = try container.decode(String.self, forKey: .message) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78309,66 +78520,124 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(uid, forKey: .uid) - - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - - try? container.encodeIfPresent(pageNo, forKey: .pageNo) - - try? container.encodeIfPresent(slug, forKey: .slug) - - try? container.encodeIfPresent(search, forKey: .search) - - try? container.encodeIfPresent(isActive, forKey: .isActive) - - try? container.encodeIfPresent(synonyms, forKey: .synonyms) - - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - - try? container.encodeIfPresent(pageSize, forKey: .pageSize) - - try? container.encodeIfPresent(logo, forKey: .logo) - - try? container.encodeIfPresent(priorityOrder, forKey: .priorityOrder) + try? container.encodeIfPresent(code, forKey: .code) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(errors, forKey: .errors) - try? container.encodeIfPresent(itemType, forKey: .itemType) + try? container.encodeIfPresent(status, forKey: .status) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(meta, forKey: .meta) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(message, forKey: .message) } } /* - Model: DepartmentsResponse + Model: ProductTemplate Used By: Catalog */ - class DepartmentsResponse: Codable { + class ProductTemplate: Codable { - public var items: [GetDepartment]? + public var createdOn: String? - public var page: Page? + public var isActive: Bool? + + public var attributes: [String]? + + public var createdBy: [String: Any]? + + public var isPhysical: Bool + + public var departments: [String]? + + public var modifiedOn: String? + + public var logo: String? + + public var description: String? + + public var tag: String? + + public var categories: [String]? + + public var slug: String + + public var isArchived: Bool? + + public var modifiedBy: [String: Any]? + + public var name: String? public enum CodingKeys: String, CodingKey { - case items = "items" + case createdOn = "created_on" - case page = "page" + case isActive = "is_active" + + case attributes = "attributes" + + case createdBy = "created_by" + + case isPhysical = "is_physical" + + case departments = "departments" + + case modifiedOn = "modified_on" + + case logo = "logo" + + case description = "description" + + case tag = "tag" + + case categories = "categories" + + case slug = "slug" + + case isArchived = "is_archived" + + case modifiedBy = "modified_by" + + case name = "name" } - public init(items: [GetDepartment]?, page: Page?) { + public init(attributes: [String]?, categories: [String]?, createdBy: [String: Any]?, createdOn: String?, departments: [String]?, description: String?, isActive: Bool?, isArchived: Bool?, isPhysical: Bool, logo: String?, modifiedBy: [String: Any]?, modifiedOn: String?, name: String?, slug: String, tag: String?) { - self.items = items + self.createdOn = createdOn - self.page = page + self.isActive = isActive + + self.attributes = attributes + + self.createdBy = createdBy + + self.isPhysical = isPhysical + + self.departments = departments + + self.modifiedOn = modifiedOn + + self.logo = logo + + self.description = description + + self.tag = tag + + self.categories = categories + + self.slug = slug + + self.isArchived = isArchived + + self.modifiedBy = modifiedBy + + self.name = name } @@ -78377,7 +78646,7 @@ public extension PlatformClient { do { - items = try container.decode([GetDepartment].self, forKey: .items) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78388,7 +78657,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78397,72 +78666,79 @@ public extension PlatformClient { } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + do { + attributes = try container.decode([String].self, forKey: .attributes) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - } - - } - - /* - Model: DepartmentErrorResponse - Used By: Catalog - */ - - class DepartmentErrorResponse: Codable { - - - public var status: Int? - - public var code: String? - - public var errors: [String: Any]? - - public var message: String? - - public var meta: [String: Any]? - - - public enum CodingKeys: String, CodingKey { - case status = "status" + do { + createdBy = try container.decode([String: Any].self, forKey: .createdBy) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - case code = "code" - case errors = "errors" + isPhysical = try container.decode(Bool.self, forKey: .isPhysical) - case message = "message" - case meta = "meta" - } - - public init(code: String?, errors: [String: Any]?, message: String?, meta: [String: Any]?, status: Int?) { + do { + departments = try container.decode([String].self, forKey: .departments) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - self.status = status - self.code = code + do { + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - self.errors = errors - self.message = message + do { + logo = try container.decode(String.self, forKey: .logo) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - self.meta = meta - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + do { + description = try container.decode(String.self, forKey: .description) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + do { - status = try container.decode(Int.self, forKey: .status) + tag = try container.decode(String.self, forKey: .tag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78473,7 +78749,7 @@ public extension PlatformClient { do { - code = try container.decode(String.self, forKey: .code) + categories = try container.decode([String].self, forKey: .categories) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78483,8 +78759,12 @@ public extension PlatformClient { + slug = try container.decode(String.self, forKey: .slug) + + + do { - errors = try container.decode([String: Any].self, forKey: .errors) + isArchived = try container.decode(Bool.self, forKey: .isArchived) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78495,7 +78775,7 @@ public extension PlatformClient { do { - message = try container.decode(String.self, forKey: .message) + modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78506,7 +78786,7 @@ public extension PlatformClient { do { - meta = try container.decode([String: Any].self, forKey: .meta) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78520,124 +78800,66 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(status, forKey: .status) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(code, forKey: .code) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(errors, forKey: .errors) + try? container.encodeIfPresent(attributes, forKey: .attributes) - try? container.encodeIfPresent(message, forKey: .message) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) - try? container.encodeIfPresent(meta, forKey: .meta) + try? container.encodeIfPresent(isPhysical, forKey: .isPhysical) + + try? container.encodeIfPresent(departments, forKey: .departments) + + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + + try? container.encodeIfPresent(logo, forKey: .logo) + + try? container.encodeIfPresent(description, forKey: .description) + + try? container.encodeIfPresent(tag, forKey: .tag) + + try? container.encodeIfPresent(categories, forKey: .categories) + + try? container.encodeIfPresent(slug, forKey: .slug) + + try? container.encodeIfPresent(isArchived, forKey: .isArchived) + + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + + try? container.encodeIfPresent(name, forKey: .name) } } /* - Model: ProductTemplate + Model: TemplatesResponse Used By: Catalog */ - class ProductTemplate: Codable { - - - public var createdOn: String? - - public var isPhysical: Bool - - public var slug: String - - public var attributes: [String]? - - public var isArchived: Bool? - - public var description: String? - - public var isActive: Bool? - - public var departments: [String]? - - public var categories: [String]? - - public var modifiedOn: String? - - public var logo: String? - - public var name: String? + class TemplatesResponse: Codable { - public var tag: String? - public var modifiedBy: [String: Any]? + public var page: Page? - public var createdBy: [String: Any]? + public var items: ProductTemplate? public enum CodingKeys: String, CodingKey { - case createdOn = "created_on" - - case isPhysical = "is_physical" - - case slug = "slug" - - case attributes = "attributes" - - case isArchived = "is_archived" - - case description = "description" - - case isActive = "is_active" - - case departments = "departments" - - case categories = "categories" - - case modifiedOn = "modified_on" - - case logo = "logo" - - case name = "name" - - case tag = "tag" - - case modifiedBy = "modified_by" + case page = "page" - case createdBy = "created_by" + case items = "items" } - public init(attributes: [String]?, categories: [String]?, createdBy: [String: Any]?, createdOn: String?, departments: [String]?, description: String?, isActive: Bool?, isArchived: Bool?, isPhysical: Bool, logo: String?, modifiedBy: [String: Any]?, modifiedOn: String?, name: String?, slug: String, tag: String?) { - - self.createdOn = createdOn - - self.isPhysical = isPhysical - - self.slug = slug - - self.attributes = attributes - - self.isArchived = isArchived - - self.description = description - - self.isActive = isActive - - self.departments = departments - - self.categories = categories - - self.modifiedOn = modifiedOn - - self.logo = logo - - self.name = name - - self.tag = tag + public init(items: ProductTemplate?, page: Page?) { - self.modifiedBy = modifiedBy + self.page = page - self.createdBy = createdBy + self.items = items } @@ -78646,7 +78868,7 @@ public extension PlatformClient { do { - createdOn = try container.decode(String.self, forKey: .createdOn) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78656,16 +78878,8 @@ public extension PlatformClient { - isPhysical = try container.decode(Bool.self, forKey: .isPhysical) - - - - slug = try container.decode(String.self, forKey: .slug) - - - do { - attributes = try container.decode([String].self, forKey: .attributes) + items = try container.decode(ProductTemplate.self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78674,53 +78888,48 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) - do { - isArchived = try container.decode(Bool.self, forKey: .isArchived) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) - do { - description = try container.decode(String.self, forKey: .description) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + } + + } + + /* + Model: MultipleCommon + Used By: Catalog + */ + + class MultipleCommon: Codable { + + + public var uid: String? + + + public enum CodingKeys: String, CodingKey { + case uid = "uid" - do { - isActive = try container.decode(Bool.self, forKey: .isActive) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + } + + public init(uid: String?) { + self.uid = uid - do { - departments = try container.decode([String].self, forKey: .departments) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) do { - categories = try container.decode([String].self, forKey: .categories) + uid = try container.decode(String.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78729,20 +78938,46 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) - do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(uid, forKey: .uid) + + } + + } + + /* + Model: TemplatesValidationResponse + Used By: Catalog + */ + + class TemplatesValidationResponse: Codable { + + + public var data: MultipleCommon? + + + public enum CodingKeys: String, CodingKey { + + case data = "data" + + } + + public init(data: MultipleCommon?) { + + self.data = data + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) do { - logo = try container.decode(String.self, forKey: .logo) + data = try container.decode(MultipleCommon.self, forKey: .data) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78751,9 +78986,52 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(data, forKey: .data) + + } + + } + + /* + Model: InventoryValidationResponse + Used By: Catalog + */ + + class InventoryValidationResponse: Codable { + + + public var message: String? + + public var data: MultipleCommon? + + + public enum CodingKeys: String, CodingKey { + + case message = "message" + + case data = "data" + + } + + public init(data: MultipleCommon?, message: String?) { + + self.message = message + + self.data = data + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + do { - name = try container.decode(String.self, forKey: .name) + message = try container.decode(String.self, forKey: .message) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78764,7 +79042,7 @@ public extension PlatformClient { do { - tag = try container.decode(String.self, forKey: .tag) + data = try container.decode(MultipleCommon.self, forKey: .data) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78773,9 +79051,54 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(message, forKey: .message) + + try? container.encodeIfPresent(data, forKey: .data) + + } + + } + + /* + Model: HSNData + Used By: Catalog + */ + + class HSNData: Codable { + + + public var countryOfOrigin: [String]? + + public var hsnCode: [String]? + + + public enum CodingKeys: String, CodingKey { + + case countryOfOrigin = "country_of_origin" + + case hsnCode = "hsn_code" + + } + + public init(countryOfOrigin: [String]?, hsnCode: [String]?) { + + self.countryOfOrigin = countryOfOrigin + + self.hsnCode = hsnCode + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + do { - modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) + countryOfOrigin = try container.decode([String].self, forKey: .countryOfOrigin) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78786,7 +79109,7 @@ public extension PlatformClient { do { - createdBy = try container.decode([String: Any].self, forKey: .createdBy) + hsnCode = try container.decode([String].self, forKey: .hsnCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78800,66 +79123,40 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - - try? container.encodeIfPresent(isPhysical, forKey: .isPhysical) - - try? container.encodeIfPresent(slug, forKey: .slug) - - try? container.encodeIfPresent(attributes, forKey: .attributes) - - try? container.encodeIfPresent(isArchived, forKey: .isArchived) - - try? container.encodeIfPresent(description, forKey: .description) - - try? container.encodeIfPresent(isActive, forKey: .isActive) - - try? container.encodeIfPresent(departments, forKey: .departments) - - try? container.encodeIfPresent(categories, forKey: .categories) - - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - - try? container.encodeIfPresent(logo, forKey: .logo) - - try? container.encodeIfPresent(name, forKey: .name) - - try? container.encodeIfPresent(tag, forKey: .tag) - - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) } } /* - Model: TemplatesResponse + Model: HSNCodesResponse Used By: Catalog */ - class TemplatesResponse: Codable { + class HSNCodesResponse: Codable { - public var items: ProductTemplate? + public var message: String? - public var page: Page? + public var data: HSNData? public enum CodingKeys: String, CodingKey { - case items = "items" + case message = "message" - case page = "page" + case data = "data" } - public init(items: ProductTemplate?, page: Page?) { + public init(data: HSNData?, message: String?) { - self.items = items + self.message = message - self.page = page + self.data = data } @@ -78868,7 +79165,7 @@ public extension PlatformClient { do { - items = try container.decode(ProductTemplate.self, forKey: .items) + message = try container.decode(String.self, forKey: .message) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78879,7 +79176,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + data = try container.decode(HSNData.self, forKey: .data) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78893,34 +79190,40 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) + try? container.encodeIfPresent(message, forKey: .message) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(data, forKey: .data) } } /* - Model: MultipleCommon + Model: ProductConfligurationDownloads Used By: Catalog */ - class MultipleCommon: Codable { + class ProductConfligurationDownloads: Codable { - public var uid: String? + public var multivalue: Bool? + + public var data: [MultipleCommon]? public enum CodingKeys: String, CodingKey { - case uid = "uid" + case multivalue = "multivalue" + + case data = "data" } - public init(uid: String?) { + public init(data: [MultipleCommon]?, multivalue: Bool?) { - self.uid = uid + self.multivalue = multivalue + + self.data = data } @@ -78929,7 +79232,18 @@ public extension PlatformClient { do { - uid = try container.decode(String.self, forKey: .uid) + multivalue = try container.decode(Bool.self, forKey: .multivalue) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + data = try container.decode([MultipleCommon].self, forKey: .data) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78943,32 +79257,40 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(multivalue, forKey: .multivalue) + + try? container.encodeIfPresent(data, forKey: .data) } } /* - Model: TemplatesValidationResponse + Model: CategoryMappingValues Used By: Catalog */ - class TemplatesValidationResponse: Codable { + class CategoryMappingValues: Codable { - public var data: MultipleCommon? + public var name: String + + public var catalogId: Int? public enum CodingKeys: String, CodingKey { - case data = "data" + case name = "name" + + case catalogId = "catalog_id" } - public init(data: MultipleCommon?) { + public init(catalogId: Int?, name: String) { - self.data = data + self.name = name + + self.catalogId = catalogId } @@ -78976,8 +79298,12 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) + name = try container.decode(String.self, forKey: .name) + + + do { - data = try container.decode(MultipleCommon.self, forKey: .data) + catalogId = try container.decode(Int.self, forKey: .catalogId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -78991,38 +79317,46 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(data, forKey: .data) + try? container.encodeIfPresent(name, forKey: .name) + + try? container.encodeIfPresent(catalogId, forKey: .catalogId) } } /* - Model: InventoryValidationResponse + Model: CategoryMapping Used By: Catalog */ - class InventoryValidationResponse: Codable { + class CategoryMapping: Codable { - public var message: String? + public var google: CategoryMappingValues? - public var data: MultipleCommon? + public var ajio: CategoryMappingValues? + + public var facebook: CategoryMappingValues? public enum CodingKeys: String, CodingKey { - case message = "message" + case google = "google" - case data = "data" + case ajio = "ajio" + + case facebook = "facebook" } - public init(data: MultipleCommon?, message: String?) { + public init(ajio: CategoryMappingValues?, facebook: CategoryMappingValues?, google: CategoryMappingValues?) { - self.message = message + self.google = google - self.data = data + self.ajio = ajio + + self.facebook = facebook } @@ -79031,7 +79365,7 @@ public extension PlatformClient { do { - message = try container.decode(String.self, forKey: .message) + google = try container.decode(CategoryMappingValues.self, forKey: .google) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79042,7 +79376,18 @@ public extension PlatformClient { do { - data = try container.decode(MultipleCommon.self, forKey: .data) + ajio = try container.decode(CategoryMappingValues.self, forKey: .ajio) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + facebook = try container.decode(CategoryMappingValues.self, forKey: .facebook) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79056,40 +79401,48 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(message, forKey: .message) + try? container.encodeIfPresent(google, forKey: .google) - try? container.encodeIfPresent(data, forKey: .data) + try? container.encodeIfPresent(ajio, forKey: .ajio) + + try? container.encodeIfPresent(facebook, forKey: .facebook) } } /* - Model: HSNData + Model: Media2 Used By: Catalog */ - class HSNData: Codable { + class Media2: Codable { - public var hsnCode: [String]? + public var logo: String - public var countryOfOrigin: [String]? + public var landscape: String + + public var portrait: String public enum CodingKeys: String, CodingKey { - case hsnCode = "hsn_code" + case logo = "logo" - case countryOfOrigin = "country_of_origin" + case landscape = "landscape" + + case portrait = "portrait" } - public init(countryOfOrigin: [String]?, hsnCode: [String]?) { + public init(landscape: String, logo: String, portrait: String) { - self.hsnCode = hsnCode + self.logo = logo - self.countryOfOrigin = countryOfOrigin + self.landscape = landscape + + self.portrait = portrait } @@ -79097,66 +79450,64 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - hsnCode = try container.decode([String].self, forKey: .hsnCode) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + logo = try container.decode(String.self, forKey: .logo) - do { - countryOfOrigin = try container.decode([String].self, forKey: .countryOfOrigin) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + + landscape = try container.decode(String.self, forKey: .landscape) + + + + portrait = try container.decode(String.self, forKey: .portrait) + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) + try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin) + try? container.encodeIfPresent(landscape, forKey: .landscape) + + try? container.encodeIfPresent(portrait, forKey: .portrait) } } /* - Model: HSNCodesResponse + Model: Hierarchy Used By: Catalog */ - class HSNCodesResponse: Codable { + class Hierarchy: Codable { - public var message: String? + public var l1: Int - public var data: HSNData? + public var l2: Int + + public var department: Int public enum CodingKeys: String, CodingKey { - case message = "message" + case l1 = "l1" - case data = "data" + case l2 = "l2" + + case department = "department" } - public init(data: HSNData?, message: String?) { + public init(department: Int, l1: Int, l2: Int) { - self.message = message + self.l1 = l1 - self.data = data + self.l2 = l2 + + self.department = department } @@ -79164,66 +79515,148 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - message = try container.decode(String.self, forKey: .message) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + l1 = try container.decode(Int.self, forKey: .l1) - do { - data = try container.decode(HSNData.self, forKey: .data) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + + l2 = try container.decode(Int.self, forKey: .l2) + + + + department = try container.decode(Int.self, forKey: .department) + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(message, forKey: .message) + try? container.encodeIfPresent(l1, forKey: .l1) - try? container.encodeIfPresent(data, forKey: .data) + try? container.encodeIfPresent(l2, forKey: .l2) + + try? container.encodeIfPresent(department, forKey: .department) } } /* - Model: ProductConfligurationDownloads + Model: Category Used By: Catalog */ - class ProductConfligurationDownloads: Codable { + class Category: Codable { - public var multivalue: Bool? + public var createdOn: String? - public var data: [MultipleCommon]? + public var marketplaces: CategoryMapping? + + public var isActive: Bool + + public var createdBy: [String: Any]? + + public var modifiedBy: [String: Any]? + + public var uid: Int? + + public var tryouts: [String]? + + public var priority: Int? + + public var departments: [Int] + + public var synonyms: [String]? + + public var modifiedOn: String? + + public var slug: String? + + public var media: Media2? + + public var level: Int + + public var id: String? + + public var hierarchy: [Hierarchy]? + + public var name: String public enum CodingKeys: String, CodingKey { - case multivalue = "multivalue" + case createdOn = "created_on" + + case marketplaces = "marketplaces" + + case isActive = "is_active" + + case createdBy = "created_by" + + case modifiedBy = "modified_by" + + case uid = "uid" + + case tryouts = "tryouts" + + case priority = "priority" + + case departments = "departments" + + case synonyms = "synonyms" + + case modifiedOn = "modified_on" + + case slug = "slug" + + case media = "media" + + case level = "level" + + case id = "_id" + + case hierarchy = "hierarchy" + + case name = "name" + + } + + public init(createdBy: [String: Any]?, createdOn: String?, departments: [Int], hierarchy: [Hierarchy]?, isActive: Bool, level: Int, marketplaces: CategoryMapping?, media: Media2?, modifiedBy: [String: Any]?, modifiedOn: String?, name: String, priority: Int?, slug: String?, synonyms: [String]?, tryouts: [String]?, uid: Int?, id: String?) { + + self.createdOn = createdOn + + self.marketplaces = marketplaces + + self.isActive = isActive + + self.createdBy = createdBy + + self.modifiedBy = modifiedBy + + self.uid = uid + + self.tryouts = tryouts + + self.priority = priority + + self.departments = departments - case data = "data" + self.synonyms = synonyms - } - - public init(data: [MultipleCommon]?, multivalue: Bool?) { + self.modifiedOn = modifiedOn - self.multivalue = multivalue + self.slug = slug - self.data = data + self.media = media + + self.level = level + + self.id = id + + self.hierarchy = hierarchy + + self.name = name } @@ -79232,7 +79665,7 @@ public extension PlatformClient { do { - multivalue = try container.decode(Bool.self, forKey: .multivalue) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79243,7 +79676,7 @@ public extension PlatformClient { do { - data = try container.decode([MultipleCommon].self, forKey: .data) + marketplaces = try container.decode(CategoryMapping.self, forKey: .marketplaces) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79252,54 +79685,13 @@ public extension PlatformClient { } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - - try? container.encodeIfPresent(multivalue, forKey: .multivalue) - - try? container.encodeIfPresent(data, forKey: .data) - - } - - } - - /* - Model: CategoryMappingValues - Used By: Catalog - */ - - class CategoryMappingValues: Codable { - - - public var catalogId: Int? - - public var name: String - - - public enum CodingKeys: String, CodingKey { - - case catalogId = "catalog_id" - - case name = "name" - } - - public init(catalogId: Int?, name: String) { - - self.catalogId = catalogId - - self.name = name + isActive = try container.decode(Bool.self, forKey: .isActive) - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) do { - catalogId = try container.decode(Int.self, forKey: .catalogId) + createdBy = try container.decode([String: Any].self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79309,63 +79701,67 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) + do { + modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - try? container.encodeIfPresent(catalogId, forKey: .catalogId) - try? container.encodeIfPresent(name, forKey: .name) + do { + uid = try container.decode(Int.self, forKey: .uid) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - } - - } - - /* - Model: CategoryMapping - Used By: Catalog - */ - - class CategoryMapping: Codable { - - - public var google: CategoryMappingValues? - - public var ajio: CategoryMappingValues? - - public var facebook: CategoryMappingValues? - - - public enum CodingKeys: String, CodingKey { - case google = "google" + do { + tryouts = try container.decode([String].self, forKey: .tryouts) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - case ajio = "ajio" - case facebook = "facebook" + do { + priority = try container.decode(Int.self, forKey: .priority) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - } - - public init(ajio: CategoryMappingValues?, facebook: CategoryMappingValues?, google: CategoryMappingValues?) { - self.google = google + departments = try container.decode([Int].self, forKey: .departments) - self.ajio = ajio - self.facebook = facebook - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + do { + synonyms = try container.decode([String].self, forKey: .synonyms) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + do { - google = try container.decode(CategoryMappingValues.self, forKey: .google) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79376,7 +79772,7 @@ public extension PlatformClient { do { - ajio = try container.decode(CategoryMappingValues.self, forKey: .ajio) + slug = try container.decode(String.self, forKey: .slug) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79387,7 +79783,7 @@ public extension PlatformClient { do { - facebook = try container.decode(CategoryMappingValues.self, forKey: .facebook) + media = try container.decode(Media2.self, forKey: .media) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79396,118 +79792,105 @@ public extension PlatformClient { } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(google, forKey: .google) + level = try container.decode(Int.self, forKey: .level) - try? container.encodeIfPresent(ajio, forKey: .ajio) - try? container.encodeIfPresent(facebook, forKey: .facebook) - } - - } - - /* - Model: Media2 - Used By: Catalog - */ - - class Media2: Codable { - - - public var logo: String - - public var portrait: String - - public var landscape: String - - - public enum CodingKeys: String, CodingKey { + do { + id = try container.decode(String.self, forKey: .id) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - case logo = "logo" - case portrait = "portrait" + do { + hierarchy = try container.decode([Hierarchy].self, forKey: .hierarchy) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + name = try container.decode(String.self, forKey: .name) - case landscape = "landscape" } - - public init(landscape: String, logo: String, portrait: String) { + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) - self.logo = logo + try? container.encodeIfPresent(createdOn, forKey: .createdOn) - self.portrait = portrait + try? container.encodeIfPresent(marketplaces, forKey: .marketplaces) - self.landscape = landscape + try? container.encodeIfPresent(isActive, forKey: .isActive) - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - logo = try container.decode(String.self, forKey: .logo) + try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(tryouts, forKey: .tryouts) + try? container.encodeIfPresent(priority, forKey: .priority) - portrait = try container.decode(String.self, forKey: .portrait) + try? container.encodeIfPresent(departments, forKey: .departments) + try? container.encodeIfPresent(synonyms, forKey: .synonyms) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - landscape = try container.decode(String.self, forKey: .landscape) + try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(media, forKey: .media) - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(level, forKey: .level) - try? container.encodeIfPresent(logo, forKey: .logo) + try? container.encodeIfPresent(id, forKey: .id) - try? container.encodeIfPresent(portrait, forKey: .portrait) + try? container.encodeIfPresent(hierarchy, forKey: .hierarchy) - try? container.encodeIfPresent(landscape, forKey: .landscape) + try? container.encodeIfPresent(name, forKey: .name) } } /* - Model: Hierarchy + Model: CategoryResponse Used By: Catalog */ - class Hierarchy: Codable { - + class CategoryResponse: Codable { - public var l1: Int - public var l2: Int + public var page: Page? - public var department: Int + public var items: [Category]? public enum CodingKeys: String, CodingKey { - case l1 = "l1" - - case l2 = "l2" + case page = "page" - case department = "department" + case items = "items" } - public init(department: Int, l1: Int, l2: Int) { - - self.l1 = l1 + public init(items: [Category]?, page: Page?) { - self.l2 = l2 + self.page = page - self.department = department + self.items = items } @@ -79515,149 +79898,121 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - l1 = try container.decode(Int.self, forKey: .l1) - - - - l2 = try container.decode(Int.self, forKey: .l2) - - + do { + page = try container.decode(Page.self, forKey: .page) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + - department = try container.decode(Int.self, forKey: .department) + do { + items = try container.decode([Category].self, forKey: .items) + } 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(l1, forKey: .l1) - - try? container.encodeIfPresent(l2, forKey: .l2) + try? container.encodeIfPresent(page, forKey: .page) - try? container.encodeIfPresent(department, forKey: .department) + try? container.encodeIfPresent(items, forKey: .items) } } /* - Model: Category + Model: CategoryRequestBody Used By: Catalog */ - class Category: Codable { - - - public var uid: Int? - - public var level: Int - - public var createdOn: String? + class CategoryRequestBody: Codable { - public var createdBy: [String: Any]? - public var id: String? + public var marketplaces: CategoryMapping? - public var slug: String? + public var isActive: Bool - public var marketplaces: CategoryMapping? + public var priority: Int? - public var synonyms: [String]? + public var tryouts: [String]? public var departments: [Int] - public var isActive: Bool + public var synonyms: [String]? - public var modifiedOn: String? + public var slug: String? public var media: Media2? - public var priority: Int? - - public var name: String - - public var tryouts: [String]? - - public var modifiedBy: [String: Any]? + public var level: Int public var hierarchy: [Hierarchy]? + public var name: String + public enum CodingKeys: String, CodingKey { - case uid = "uid" - - case level = "level" - - case createdOn = "created_on" - - case createdBy = "created_by" - - case id = "_id" + case marketplaces = "marketplaces" - case slug = "slug" + case isActive = "is_active" - case marketplaces = "marketplaces" + case priority = "priority" - case synonyms = "synonyms" + case tryouts = "tryouts" case departments = "departments" - case isActive = "is_active" + case synonyms = "synonyms" - case modifiedOn = "modified_on" + case slug = "slug" case media = "media" - case priority = "priority" - - case name = "name" - - case tryouts = "tryouts" - - case modifiedBy = "modified_by" + case level = "level" case hierarchy = "hierarchy" + case name = "name" + } - public init(createdBy: [String: Any]?, createdOn: String?, departments: [Int], hierarchy: [Hierarchy]?, isActive: Bool, level: Int, marketplaces: CategoryMapping?, media: Media2?, modifiedBy: [String: Any]?, modifiedOn: String?, name: String, priority: Int?, slug: String?, synonyms: [String]?, tryouts: [String]?, uid: Int?, id: String?) { - - self.uid = uid - - self.level = level - - self.createdOn = createdOn - - self.createdBy = createdBy + public init(departments: [Int], hierarchy: [Hierarchy]?, isActive: Bool, level: Int, marketplaces: CategoryMapping?, media: Media2?, name: String, priority: Int?, slug: String?, synonyms: [String]?, tryouts: [String]?) { - self.id = id + self.marketplaces = marketplaces - self.slug = slug + self.isActive = isActive - self.marketplaces = marketplaces + self.priority = priority - self.synonyms = synonyms + self.tryouts = tryouts self.departments = departments - self.isActive = isActive + self.synonyms = synonyms - self.modifiedOn = modifiedOn + self.slug = slug self.media = media - self.priority = priority - - self.name = name - - self.tryouts = tryouts - - self.modifiedBy = modifiedBy + self.level = level self.hierarchy = hierarchy + self.name = name + } required public init(from decoder: Decoder) throws { @@ -79665,7 +80020,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + marketplaces = try container.decode(CategoryMapping.self, forKey: .marketplaces) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79675,23 +80030,12 @@ public extension PlatformClient { - level = try container.decode(Int.self, forKey: .level) - - + isActive = try container.decode(Bool.self, forKey: .isActive) - do { - createdOn = try container.decode(String.self, forKey: .createdOn) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - do { - createdBy = try container.decode([String: Any].self, forKey: .createdBy) + priority = try container.decode(Int.self, forKey: .priority) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79702,7 +80046,7 @@ public extension PlatformClient { do { - id = try container.decode(String.self, forKey: .id) + tryouts = try container.decode([String].self, forKey: .tryouts) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79712,26 +80056,8 @@ public extension PlatformClient { - do { - slug = try container.decode(String.self, forKey: .slug) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - + departments = try container.decode([Int].self, forKey: .departments) - do { - marketplaces = try container.decode(CategoryMapping.self, forKey: .marketplaces) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - do { @@ -79745,16 +80071,8 @@ public extension PlatformClient { - departments = try container.decode([Int].self, forKey: .departments) - - - - isActive = try container.decode(Bool.self, forKey: .isActive) - - - do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + slug = try container.decode(String.self, forKey: .slug) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79775,23 +80093,12 @@ public extension PlatformClient { - do { - priority = try container.decode(Int.self, forKey: .priority) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - name = try container.decode(String.self, forKey: .name) + level = try container.decode(Int.self, forKey: .level) do { - tryouts = try container.decode([String].self, forKey: .tryouts) + hierarchy = try container.decode([Hierarchy].self, forKey: .hierarchy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79801,96 +80108,66 @@ public extension PlatformClient { - do { - modifiedBy = try container.decode([String: Any].self, forKey: .modifiedBy) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - + name = try container.decode(String.self, forKey: .name) - do { - hierarchy = try container.decode([Hierarchy].self, forKey: .hierarchy) - } 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(uid, forKey: .uid) - - try? container.encodeIfPresent(level, forKey: .level) - - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - - try? container.encodeIfPresent(createdBy, forKey: .createdBy) - - try? container.encodeIfPresent(id, forKey: .id) - - try? container.encodeIfPresent(slug, forKey: .slug) - try? container.encodeIfPresent(marketplaces, forKey: .marketplaces) - try? container.encodeIfPresent(synonyms, forKey: .synonyms) - - try? container.encodeIfPresent(departments, forKey: .departments) - try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(priority, forKey: .priority) - try? container.encodeIfPresent(media, forKey: .media) + try? container.encodeIfPresent(tryouts, forKey: .tryouts) + + try? container.encodeIfPresent(departments, forKey: .departments) - try? container.encodeIfPresent(priority, forKey: .priority) + try? container.encodeIfPresent(synonyms, forKey: .synonyms) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(slug, forKey: .slug) - try? container.encodeIfPresent(tryouts, forKey: .tryouts) + try? container.encodeIfPresent(media, forKey: .media) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(level, forKey: .level) try? container.encodeIfPresent(hierarchy, forKey: .hierarchy) + try? container.encodeIfPresent(name, forKey: .name) + } } /* - Model: CategoryResponse + Model: CategoryCreateResponse Used By: Catalog */ - class CategoryResponse: Codable { + class CategoryCreateResponse: Codable { - public var items: [Category]? + public var uid: Int? - public var page: Page? + public var message: String? public enum CodingKeys: String, CodingKey { - case items = "items" + case uid = "uid" - case page = "page" + case message = "message" } - public init(items: [Category]?, page: Page?) { + public init(message: String?, uid: Int?) { - self.items = items + self.uid = uid - self.page = page + self.message = message } @@ -79899,7 +80176,7 @@ public extension PlatformClient { do { - items = try container.decode([Category].self, forKey: .items) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79910,7 +80187,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + message = try container.decode(String.self, forKey: .message) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -79924,94 +80201,40 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(message, forKey: .message) } } /* - Model: CategoryRequestBody + Model: CategoryUpdateResponse Used By: Catalog */ - class CategoryRequestBody: Codable { - - - public var level: Int - - public var slug: String? - - public var marketplaces: CategoryMapping? - - public var synonyms: [String]? - - public var departments: [Int] - - public var isActive: Bool - - public var media: Media2? - - public var priority: Int? + class CategoryUpdateResponse: Codable { - public var name: String - public var tryouts: [String]? + public var message: String? - public var hierarchy: [Hierarchy]? + public var success: Bool? public enum CodingKeys: String, CodingKey { - case level = "level" - - case slug = "slug" - - case marketplaces = "marketplaces" - - case synonyms = "synonyms" - - case departments = "departments" - - case isActive = "is_active" - - case media = "media" - - case priority = "priority" - - case name = "name" - - case tryouts = "tryouts" + case message = "message" - case hierarchy = "hierarchy" + case success = "success" } - public init(departments: [Int], hierarchy: [Hierarchy]?, isActive: Bool, level: Int, marketplaces: CategoryMapping?, media: Media2?, name: String, priority: Int?, slug: String?, synonyms: [String]?, tryouts: [String]?) { - - self.level = level - - self.slug = slug - - self.marketplaces = marketplaces - - self.synonyms = synonyms - - self.departments = departments - - self.isActive = isActive - - self.media = media - - self.priority = priority - - self.name = name + public init(message: String?, success: Bool?) { - self.tryouts = tryouts + self.message = message - self.hierarchy = hierarchy + self.success = success } @@ -80019,12 +80242,8 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - level = try container.decode(Int.self, forKey: .level) - - - do { - slug = try container.decode(String.self, forKey: .slug) + message = try container.decode(String.self, forKey: .message) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80035,7 +80254,7 @@ public extension PlatformClient { do { - marketplaces = try container.decode(CategoryMapping.self, forKey: .marketplaces) + success = try container.decode(Bool.self, forKey: .success) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80044,54 +80263,72 @@ public extension PlatformClient { } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) - do { - synonyms = try container.decode([String].self, forKey: .synonyms) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(message, forKey: .message) + try? container.encodeIfPresent(success, forKey: .success) - departments = try container.decode([Int].self, forKey: .departments) + } + + } + + /* + Model: PageData + Used By: Catalog + */ + + class PageData: Codable { + + + public var hasNext: Bool? + + public var hasPrevious: Bool? + + public var current: String? + + public var itemTotal: Int? + + public var size: Int? + + + public enum CodingKeys: String, CodingKey { + case hasNext = "has_next" + case hasPrevious = "has_previous" - isActive = try container.decode(Bool.self, forKey: .isActive) + case current = "current" + case itemTotal = "item_total" + case size = "size" - do { - media = try container.decode(Media2.self, forKey: .media) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + } + + public init(current: String?, hasNext: Bool?, hasPrevious: Bool?, itemTotal: Int?, size: Int?) { + + self.hasNext = hasNext + self.hasPrevious = hasPrevious - do { - priority = try container.decode(Int.self, forKey: .priority) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + self.current = current + self.itemTotal = itemTotal - name = try container.decode(String.self, forKey: .name) + self.size = size + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) do { - tryouts = try container.decode([String].self, forKey: .tryouts) + hasNext = try container.decode(Bool.self, forKey: .hasNext) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80102,81 +80339,29 @@ public extension PlatformClient { do { - hierarchy = try container.decode([Hierarchy].self, forKey: .hierarchy) + hasPrevious = try container.decode(Bool.self, forKey: .hasPrevious) } 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(level, forKey: .level) - - try? container.encodeIfPresent(slug, forKey: .slug) - - try? container.encodeIfPresent(marketplaces, forKey: .marketplaces) - - try? container.encodeIfPresent(synonyms, forKey: .synonyms) - - try? container.encodeIfPresent(departments, forKey: .departments) - - try? container.encodeIfPresent(isActive, forKey: .isActive) - - try? container.encodeIfPresent(media, forKey: .media) - - try? container.encodeIfPresent(priority, forKey: .priority) - - try? container.encodeIfPresent(name, forKey: .name) - - try? container.encodeIfPresent(tryouts, forKey: .tryouts) - - try? container.encodeIfPresent(hierarchy, forKey: .hierarchy) - - } - - } - - /* - Model: CategoryCreateResponse - Used By: Catalog - */ - - class CategoryCreateResponse: Codable { - - - public var message: String? - - public var uid: Int? - - - public enum CodingKeys: String, CodingKey { - - case message = "message" - - case uid = "uid" - - } - - public init(message: String?, uid: Int?) { - - self.message = message + - self.uid = uid - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + do { + current = try container.decode(String.self, forKey: .current) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + do { - message = try container.decode(String.self, forKey: .message) + itemTotal = try container.decode(Int.self, forKey: .itemTotal) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80187,7 +80372,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + size = try container.decode(Int.self, forKey: .size) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80201,40 +80386,46 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(message, forKey: .message) + try? container.encodeIfPresent(hasNext, forKey: .hasNext) - try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious) + + try? container.encodeIfPresent(current, forKey: .current) + + try? container.encodeIfPresent(itemTotal, forKey: .itemTotal) + + try? container.encodeIfPresent(size, forKey: .size) } } /* - Model: CategoryUpdateResponse + Model: ProductPublished Used By: Catalog */ - class CategoryUpdateResponse: Codable { + class ProductPublished: Codable { - public var message: String? + public var productOnlineDate: Int? - public var success: Bool? + public var isSet: Bool? public enum CodingKeys: String, CodingKey { - case message = "message" + case productOnlineDate = "product_online_date" - case success = "success" + case isSet = "is_set" } - public init(message: String?, success: Bool?) { + public init(isSet: Bool?, productOnlineDate: Int?) { - self.message = message + self.productOnlineDate = productOnlineDate - self.success = success + self.isSet = isSet } @@ -80243,7 +80434,7 @@ public extension PlatformClient { do { - message = try container.decode(String.self, forKey: .message) + productOnlineDate = try container.decode(Int.self, forKey: .productOnlineDate) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80254,7 +80445,7 @@ public extension PlatformClient { do { - success = try container.decode(Bool.self, forKey: .success) + isSet = try container.decode(Bool.self, forKey: .isSet) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80268,26 +80459,28 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(message, forKey: .message) + try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate) - try? container.encodeIfPresent(success, forKey: .success) + try? container.encodeIfPresent(isSet, forKey: .isSet) } } /* - Model: VerifiedBy + Model: UserCommon Used By: Catalog */ - class VerifiedBy: Codable { + class UserCommon: Codable { public var username: String? public var userId: String? + public var companyId: Int? + public enum CodingKeys: String, CodingKey { @@ -80295,14 +80488,18 @@ public extension PlatformClient { case userId = "user_id" + case companyId = "company_id" + } - public init(username: String?, userId: String?) { + public init(companyId: Int?, username: String?, userId: String?) { self.username = username self.userId = userId + self.companyId = companyId + } required public init(from decoder: Decoder) throws { @@ -80330,6 +80527,17 @@ public extension PlatformClient { } + + do { + companyId = try container.decode(Int.self, forKey: .companyId) + } 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 { @@ -80339,19 +80547,19 @@ public extension PlatformClient { try? container.encodeIfPresent(userId, forKey: .userId) + try? container.encodeIfPresent(companyId, forKey: .companyId) + } } /* - Model: UserCommon + Model: VerifiedBy Used By: Catalog */ - class UserCommon: Codable { - + class VerifiedBy: Codable { - public var companyId: Int? public var username: String? @@ -80360,17 +80568,13 @@ public extension PlatformClient { public enum CodingKeys: String, CodingKey { - case companyId = "company_id" - case username = "username" case userId = "user_id" } - public init(companyId: Int?, username: String?, userId: String?) { - - self.companyId = companyId + public init(username: String?, userId: String?) { self.username = username @@ -80382,17 +80586,6 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - companyId = try container.decode(Int.self, forKey: .companyId) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - do { username = try container.decode(String.self, forKey: .username) } catch DecodingError.typeMismatch(let type, let context) { @@ -80419,8 +80612,6 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(username, forKey: .username) try? container.encodeIfPresent(userId, forKey: .userId) @@ -80437,138 +80628,138 @@ public extension PlatformClient { class Attributes: Codable { - public var imageNature: String? - - public var metaNature: String? + public var stage: String? - public var gender: [String]? + public var color: String? - public var isImageLessProduct: Bool? + public var modifiedOn: String? - public var sleeveLength: String? + public var createdBy: UserCommon? - public var pattern: String? + public var verifiedOn: String? - public var verifiedBy: VerifiedBy? + public var l3Mapping: [String]? - public var modifiedBy: UserCommon? + public var isImageLessProduct: Bool? public var primaryColor: String? - public var createdBy: UserCommon? + public var material: String? + + public var neckType: String? + + public var modifiedBy: UserCommon? public var createdOn: String? public var productFit: String? - public var modifiedOn: String? + public var verifiedBy: VerifiedBy? - public var stage: String? + public var essential: String? public var primaryMaterial: String? - public var essential: String? - - public var color: String? + public var metaNature: String? - public var verifiedOn: String? + public var gender: [String]? - public var l3Mapping: [String]? + public var imageNature: String? - public var material: String? + public var sleeveLength: String? - public var neckType: String? + public var pattern: String? public enum CodingKeys: String, CodingKey { - case imageNature = "image_nature" - - case metaNature = "meta_nature" + case stage = "stage" - case gender = "gender" + case color = "color" - case isImageLessProduct = "is_image_less_product" + case modifiedOn = "modified_on" - case sleeveLength = "sleeve_length" + case createdBy = "created_by" - case pattern = "pattern" + case verifiedOn = "verified_on" - case verifiedBy = "verified_by" + case l3Mapping = "l3_mapping" - case modifiedBy = "modified_by" + case isImageLessProduct = "is_image_less_product" case primaryColor = "primary_color" - case createdBy = "created_by" + case material = "material" + + case neckType = "neck_type" + + case modifiedBy = "modified_by" case createdOn = "created_on" case productFit = "product_fit" - case modifiedOn = "modified_on" + case verifiedBy = "verified_by" - case stage = "stage" + case essential = "essential" case primaryMaterial = "primary_material" - case essential = "essential" - - case color = "color" + case metaNature = "meta_nature" - case verifiedOn = "verified_on" + case gender = "gender" - case l3Mapping = "l3_mapping" + case imageNature = "image_nature" - case material = "material" + case sleeveLength = "sleeve_length" - case neckType = "neck_type" + case pattern = "pattern" } public init(color: String?, createdBy: UserCommon?, createdOn: String?, essential: String?, gender: [String]?, imageNature: String?, isImageLessProduct: Bool?, l3Mapping: [String]?, material: String?, metaNature: String?, modifiedBy: UserCommon?, modifiedOn: String?, neckType: String?, pattern: String?, primaryColor: String?, primaryMaterial: String?, productFit: String?, sleeveLength: String?, stage: String?, verifiedBy: VerifiedBy?, verifiedOn: String?) { - self.imageNature = imageNature - - self.metaNature = metaNature + self.stage = stage - self.gender = gender + self.color = color - self.isImageLessProduct = isImageLessProduct + self.modifiedOn = modifiedOn - self.sleeveLength = sleeveLength + self.createdBy = createdBy - self.pattern = pattern + self.verifiedOn = verifiedOn - self.verifiedBy = verifiedBy + self.l3Mapping = l3Mapping - self.modifiedBy = modifiedBy + self.isImageLessProduct = isImageLessProduct self.primaryColor = primaryColor - self.createdBy = createdBy + self.material = material + + self.neckType = neckType + + self.modifiedBy = modifiedBy self.createdOn = createdOn self.productFit = productFit - self.modifiedOn = modifiedOn + self.verifiedBy = verifiedBy - self.stage = stage + self.essential = essential self.primaryMaterial = primaryMaterial - self.essential = essential - - self.color = color + self.metaNature = metaNature - self.verifiedOn = verifiedOn + self.gender = gender - self.l3Mapping = l3Mapping + self.imageNature = imageNature - self.material = material + self.sleeveLength = sleeveLength - self.neckType = neckType + self.pattern = pattern } @@ -80577,7 +80768,7 @@ public extension PlatformClient { do { - imageNature = try container.decode(String.self, forKey: .imageNature) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80588,7 +80779,7 @@ public extension PlatformClient { do { - metaNature = try container.decode(String.self, forKey: .metaNature) + color = try container.decode(String.self, forKey: .color) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80599,7 +80790,7 @@ public extension PlatformClient { do { - gender = try container.decode([String].self, forKey: .gender) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80610,7 +80801,7 @@ public extension PlatformClient { do { - isImageLessProduct = try container.decode(Bool.self, forKey: .isImageLessProduct) + createdBy = try container.decode(UserCommon.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80621,7 +80812,7 @@ public extension PlatformClient { do { - sleeveLength = try container.decode(String.self, forKey: .sleeveLength) + verifiedOn = try container.decode(String.self, forKey: .verifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80632,7 +80823,7 @@ public extension PlatformClient { do { - pattern = try container.decode(String.self, forKey: .pattern) + l3Mapping = try container.decode([String].self, forKey: .l3Mapping) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80643,7 +80834,7 @@ public extension PlatformClient { do { - verifiedBy = try container.decode(VerifiedBy.self, forKey: .verifiedBy) + isImageLessProduct = try container.decode(Bool.self, forKey: .isImageLessProduct) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80654,7 +80845,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserCommon.self, forKey: .modifiedBy) + primaryColor = try container.decode(String.self, forKey: .primaryColor) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80665,7 +80856,7 @@ public extension PlatformClient { do { - primaryColor = try container.decode(String.self, forKey: .primaryColor) + material = try container.decode(String.self, forKey: .material) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80676,7 +80867,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserCommon.self, forKey: .createdBy) + neckType = try container.decode(String.self, forKey: .neckType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80687,7 +80878,7 @@ public extension PlatformClient { do { - createdOn = try container.decode(String.self, forKey: .createdOn) + modifiedBy = try container.decode(UserCommon.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80698,7 +80889,7 @@ public extension PlatformClient { do { - productFit = try container.decode(String.self, forKey: .productFit) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80709,7 +80900,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + productFit = try container.decode(String.self, forKey: .productFit) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80720,7 +80911,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + verifiedBy = try container.decode(VerifiedBy.self, forKey: .verifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80731,7 +80922,7 @@ public extension PlatformClient { do { - primaryMaterial = try container.decode(String.self, forKey: .primaryMaterial) + essential = try container.decode(String.self, forKey: .essential) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80742,7 +80933,7 @@ public extension PlatformClient { do { - essential = try container.decode(String.self, forKey: .essential) + primaryMaterial = try container.decode(String.self, forKey: .primaryMaterial) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80753,7 +80944,7 @@ public extension PlatformClient { do { - color = try container.decode(String.self, forKey: .color) + metaNature = try container.decode(String.self, forKey: .metaNature) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80764,7 +80955,7 @@ public extension PlatformClient { do { - verifiedOn = try container.decode(String.self, forKey: .verifiedOn) + gender = try container.decode([String].self, forKey: .gender) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80775,7 +80966,7 @@ public extension PlatformClient { do { - l3Mapping = try container.decode([String].self, forKey: .l3Mapping) + imageNature = try container.decode(String.self, forKey: .imageNature) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80786,7 +80977,7 @@ public extension PlatformClient { do { - material = try container.decode(String.self, forKey: .material) + sleeveLength = try container.decode(String.self, forKey: .sleeveLength) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80797,7 +80988,7 @@ public extension PlatformClient { do { - neckType = try container.decode(String.self, forKey: .neckType) + pattern = try container.decode(String.self, forKey: .pattern) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -80811,114 +81002,47 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(imageNature, forKey: .imageNature) - - try? container.encodeIfPresent(metaNature, forKey: .metaNature) - - try? container.encodeIfPresent(gender, forKey: .gender) - - try? container.encodeIfPresent(isImageLessProduct, forKey: .isImageLessProduct) - - try? container.encodeIfPresent(sleeveLength, forKey: .sleeveLength) - - try? container.encodeIfPresent(pattern, forKey: .pattern) - - try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) - - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - - try? container.encodeIfPresent(primaryColor, forKey: .primaryColor) - - try? container.encodeIfPresent(createdBy, forKey: .createdBy) - - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - - try? container.encodeIfPresent(productFit, forKey: .productFit) - - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - try? container.encodeIfPresent(stage, forKey: .stage) - try? container.encodeIfPresent(primaryMaterial, forKey: .primaryMaterial) + try? container.encodeIfPresent(color, forKey: .color) - try? container.encodeIfPresent(essential, forKey: .essential) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - try? container.encodeIfPresent(color, forKey: .color) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) try? container.encodeIfPresent(l3Mapping, forKey: .l3Mapping) - try? container.encodeIfPresent(material, forKey: .material) - - try? container.encodeIfPresent(neckType, forKey: .neckType) + try? container.encodeIfPresent(isImageLessProduct, forKey: .isImageLessProduct) - } - - } - - /* - Model: ProductPublished - Used By: Catalog - */ - - class ProductPublished: Codable { - - - public var isSet: Bool? - - public var productOnlineDate: Int? - - - public enum CodingKeys: String, CodingKey { + try? container.encodeIfPresent(primaryColor, forKey: .primaryColor) - case isSet = "is_set" + try? container.encodeIfPresent(material, forKey: .material) - case productOnlineDate = "product_online_date" + try? container.encodeIfPresent(neckType, forKey: .neckType) - } - - public init(isSet: Bool?, productOnlineDate: Int?) { + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - self.isSet = isSet + try? container.encodeIfPresent(createdOn, forKey: .createdOn) - self.productOnlineDate = productOnlineDate + try? container.encodeIfPresent(productFit, forKey: .productFit) - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) + try? container.encodeIfPresent(essential, forKey: .essential) - do { - isSet = try container.decode(Bool.self, forKey: .isSet) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(primaryMaterial, forKey: .primaryMaterial) + try? container.encodeIfPresent(metaNature, forKey: .metaNature) - do { - productOnlineDate = try container.decode(Int.self, forKey: .productOnlineDate) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(gender, forKey: .gender) - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(imageNature, forKey: .imageNature) - try? container.encodeIfPresent(isSet, forKey: .isSet) + try? container.encodeIfPresent(sleeveLength, forKey: .sleeveLength) - try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate) + try? container.encodeIfPresent(pattern, forKey: .pattern) } @@ -80932,36 +81056,36 @@ public extension PlatformClient { class Logo: Codable { - public var aspectRatioF: Int? + public var url: String? public var secureUrl: String? public var aspectRatio: String? - public var url: String? + public var aspectRatioF: Int? public enum CodingKeys: String, CodingKey { - case aspectRatioF = "aspect_ratio_f" + case url = "url" case secureUrl = "secure_url" case aspectRatio = "aspect_ratio" - case url = "url" + case aspectRatioF = "aspect_ratio_f" } public init(aspectRatio: String?, aspectRatioF: Int?, secureUrl: String?, url: String?) { - self.aspectRatioF = aspectRatioF + self.url = url self.secureUrl = secureUrl self.aspectRatio = aspectRatio - self.url = url + self.aspectRatioF = aspectRatioF } @@ -80970,7 +81094,7 @@ public extension PlatformClient { do { - aspectRatioF = try container.decode(Int.self, forKey: .aspectRatioF) + url = try container.decode(String.self, forKey: .url) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81003,7 +81127,7 @@ public extension PlatformClient { do { - url = try container.decode(String.self, forKey: .url) + aspectRatioF = try container.decode(Int.self, forKey: .aspectRatioF) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81017,13 +81141,13 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(aspectRatioF, forKey: .aspectRatioF) + try? container.encodeIfPresent(url, forKey: .url) try? container.encodeIfPresent(secureUrl, forKey: .secureUrl) try? container.encodeIfPresent(aspectRatio, forKey: .aspectRatio) - try? container.encodeIfPresent(url, forKey: .url) + try? container.encodeIfPresent(aspectRatioF, forKey: .aspectRatioF) } @@ -81123,114 +81247,114 @@ public extension PlatformClient { class Product: Codable { - public var hsnCode: String? + public var isActive: Bool? - public var templateTag: String? + public var sizeGuide: String? - public var multiSize: Bool? + public var sizes: [[String: Any]]? - public var countryOfOrigin: String? + public var productPublish: ProductPublished? - public var isSet: Bool? + public var multiSize: Bool? - public var description: String? + public var currency: String? - public var isActive: Bool? + public var templateTag: String? - public var highlights: String? + public var categorySlug: String? - public var media: [String]? + public var companyId: Int? - public var sizeGuide: String? + public var description: String? - public var images: [String]? + public var allSizes: [String]? - public var uid: Int? + public var countryOfOrigin: String? - public var slug: String? + public var hsnCode: String? - public var attributes: Attributes? + public var media: [String]? - public var allSizes: [String]? + public var name: String? - public var departments: [Int]? + public var attributes: Attributes? - public var name: String? + public var uid: Int? - public var itemType: String? + public var highlights: String? - public var itemCode: String? + public var isSet: Bool? - public var companyId: Int? + public var images: [String]? - public var productPublish: ProductPublished? + public var id: String? public var isDependent: Bool? - public var id: String? + public var departments: [Int]? - public var sizes: [[String: Any]]? + public var itemType: String? - public var categorySlug: String? + public var slug: String? - public var currency: String? + public var itemCode: String? public var brand: Brand? public enum CodingKeys: String, CodingKey { - case hsnCode = "hsn_code" + case isActive = "is_active" - case templateTag = "template_tag" + case sizeGuide = "size_guide" - case multiSize = "multi_size" + case sizes = "sizes" - case countryOfOrigin = "country_of_origin" + case productPublish = "product_publish" - case isSet = "is_set" + case multiSize = "multi_size" - case description = "description" + case currency = "currency" - case isActive = "is_active" + case templateTag = "template_tag" - case highlights = "highlights" + case categorySlug = "category_slug" - case media = "media" + case companyId = "company_id" - case sizeGuide = "size_guide" + case description = "description" - case images = "images" + case allSizes = "all_sizes" - case uid = "uid" + case countryOfOrigin = "country_of_origin" - case slug = "slug" + case hsnCode = "hsn_code" - case attributes = "attributes" + case media = "media" - case allSizes = "all_sizes" + case name = "name" - case departments = "departments" + case attributes = "attributes" - case name = "name" + case uid = "uid" - case itemType = "item_type" + case highlights = "highlights" - case itemCode = "item_code" + case isSet = "is_set" - case companyId = "company_id" + case images = "images" - case productPublish = "product_publish" + case id = "id" case isDependent = "is_dependent" - case id = "id" + case departments = "departments" - case sizes = "sizes" + case itemType = "item_type" - case categorySlug = "category_slug" + case slug = "slug" - case currency = "currency" + case itemCode = "item_code" case brand = "brand" @@ -81238,57 +81362,57 @@ public extension PlatformClient { public init(allSizes: [String]?, attributes: Attributes?, brand: Brand?, categorySlug: String?, companyId: Int?, countryOfOrigin: String?, currency: String?, departments: [Int]?, description: String?, highlights: String?, hsnCode: String?, id: String?, images: [String]?, isActive: Bool?, isDependent: Bool?, isSet: Bool?, itemCode: String?, itemType: String?, media: [String]?, multiSize: Bool?, name: String?, productPublish: ProductPublished?, sizes: [[String: Any]]?, sizeGuide: String?, slug: String?, templateTag: String?, uid: Int?) { - self.hsnCode = hsnCode - - self.templateTag = templateTag - - self.multiSize = multiSize - - self.countryOfOrigin = countryOfOrigin - - self.isSet = isSet + self.isActive = isActive - self.description = description + self.sizeGuide = sizeGuide - self.isActive = isActive + self.sizes = sizes - self.highlights = highlights + self.productPublish = productPublish - self.media = media + self.multiSize = multiSize - self.sizeGuide = sizeGuide + self.currency = currency - self.images = images + self.templateTag = templateTag - self.uid = uid + self.categorySlug = categorySlug - self.slug = slug + self.companyId = companyId - self.attributes = attributes + self.description = description self.allSizes = allSizes - self.departments = departments + self.countryOfOrigin = countryOfOrigin + + self.hsnCode = hsnCode + + self.media = media self.name = name - self.itemType = itemType + self.attributes = attributes - self.itemCode = itemCode + self.uid = uid - self.companyId = companyId + self.highlights = highlights - self.productPublish = productPublish + self.isSet = isSet - self.isDependent = isDependent + self.images = images self.id = id - self.sizes = sizes + self.isDependent = isDependent - self.categorySlug = categorySlug + self.departments = departments - self.currency = currency + self.itemType = itemType + + self.slug = slug + + self.itemCode = itemCode self.brand = brand @@ -81299,7 +81423,7 @@ public extension PlatformClient { do { - hsnCode = try container.decode(String.self, forKey: .hsnCode) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81310,7 +81434,7 @@ public extension PlatformClient { do { - templateTag = try container.decode(String.self, forKey: .templateTag) + sizeGuide = try container.decode(String.self, forKey: .sizeGuide) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81321,7 +81445,7 @@ public extension PlatformClient { do { - multiSize = try container.decode(Bool.self, forKey: .multiSize) + sizes = try container.decode([[String: Any]].self, forKey: .sizes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81332,7 +81456,7 @@ public extension PlatformClient { do { - countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin) + productPublish = try container.decode(ProductPublished.self, forKey: .productPublish) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81343,7 +81467,7 @@ public extension PlatformClient { do { - isSet = try container.decode(Bool.self, forKey: .isSet) + multiSize = try container.decode(Bool.self, forKey: .multiSize) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81354,7 +81478,7 @@ public extension PlatformClient { do { - description = try container.decode(String.self, forKey: .description) + currency = try container.decode(String.self, forKey: .currency) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81365,7 +81489,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + templateTag = try container.decode(String.self, forKey: .templateTag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81376,7 +81500,7 @@ public extension PlatformClient { do { - highlights = try container.decode(String.self, forKey: .highlights) + categorySlug = try container.decode(String.self, forKey: .categorySlug) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81387,7 +81511,7 @@ public extension PlatformClient { do { - media = try container.decode([String].self, forKey: .media) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81398,7 +81522,7 @@ public extension PlatformClient { do { - sizeGuide = try container.decode(String.self, forKey: .sizeGuide) + description = try container.decode(String.self, forKey: .description) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81409,7 +81533,7 @@ public extension PlatformClient { do { - images = try container.decode([String].self, forKey: .images) + allSizes = try container.decode([String].self, forKey: .allSizes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81420,7 +81544,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81431,7 +81555,7 @@ public extension PlatformClient { do { - slug = try container.decode(String.self, forKey: .slug) + hsnCode = try container.decode(String.self, forKey: .hsnCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81442,7 +81566,7 @@ public extension PlatformClient { do { - attributes = try container.decode(Attributes.self, forKey: .attributes) + media = try container.decode([String].self, forKey: .media) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81453,7 +81577,7 @@ public extension PlatformClient { do { - allSizes = try container.decode([String].self, forKey: .allSizes) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81464,7 +81588,7 @@ public extension PlatformClient { do { - departments = try container.decode([Int].self, forKey: .departments) + attributes = try container.decode(Attributes.self, forKey: .attributes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81475,7 +81599,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81486,7 +81610,7 @@ public extension PlatformClient { do { - itemType = try container.decode(String.self, forKey: .itemType) + highlights = try container.decode(String.self, forKey: .highlights) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81497,7 +81621,7 @@ public extension PlatformClient { do { - itemCode = try container.decode(String.self, forKey: .itemCode) + isSet = try container.decode(Bool.self, forKey: .isSet) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81508,7 +81632,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) + images = try container.decode([String].self, forKey: .images) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81519,7 +81643,7 @@ public extension PlatformClient { do { - productPublish = try container.decode(ProductPublished.self, forKey: .productPublish) + id = try container.decode(String.self, forKey: .id) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81541,7 +81665,7 @@ public extension PlatformClient { do { - id = try container.decode(String.self, forKey: .id) + departments = try container.decode([Int].self, forKey: .departments) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81552,7 +81676,7 @@ public extension PlatformClient { do { - sizes = try container.decode([[String: Any]].self, forKey: .sizes) + itemType = try container.decode(String.self, forKey: .itemType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81563,7 +81687,7 @@ public extension PlatformClient { do { - categorySlug = try container.decode(String.self, forKey: .categorySlug) + slug = try container.decode(String.self, forKey: .slug) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81574,7 +81698,7 @@ public extension PlatformClient { do { - currency = try container.decode(String.self, forKey: .currency) + itemCode = try container.decode(String.self, forKey: .itemCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81599,183 +81723,59 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) - - try? container.encodeIfPresent(templateTag, forKey: .templateTag) - - try? container.encodeIfPresent(multiSize, forKey: .multiSize) - - try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin) - - try? container.encodeIfPresent(isSet, forKey: .isSet) - - try? container.encodeIfPresent(description, forKey: .description) - try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(highlights, forKey: .highlights) - - try? container.encodeIfPresent(media, forKey: .media) - try? container.encodeIfPresent(sizeGuide, forKey: .sizeGuide) - try? container.encodeIfPresent(images, forKey: .images) - - try? container.encodeIfPresent(uid, forKey: .uid) - - try? container.encodeIfPresent(slug, forKey: .slug) - - try? container.encodeIfPresent(attributes, forKey: .attributes) - - try? container.encodeIfPresent(allSizes, forKey: .allSizes) - - try? container.encodeIfPresent(departments, forKey: .departments) - - try? container.encodeIfPresent(name, forKey: .name) - - try? container.encodeIfPresent(itemType, forKey: .itemType) - - try? container.encodeIfPresent(itemCode, forKey: .itemCode) - - try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(sizes, forKey: .sizes) try? container.encodeIfPresent(productPublish, forKey: .productPublish) - try? container.encodeIfPresent(isDependent, forKey: .isDependent) - - try? container.encodeIfPresent(id, forKey: .id) - - try? container.encodeIfPresent(sizes, forKey: .sizes) - - try? container.encodeIfPresent(categorySlug, forKey: .categorySlug) + try? container.encodeIfPresent(multiSize, forKey: .multiSize) try? container.encodeIfPresent(currency, forKey: .currency) - try? container.encodeIfPresent(brand, forKey: .brand) - - } - - } - - /* - Model: PageData - Used By: Catalog - */ - - class PageData: Codable { - - - public var current: String? - - public var hasNext: Bool? - - public var hasPrevious: Bool? - - public var itemTotal: Int? - - public var size: Int? - - - public enum CodingKeys: String, CodingKey { - - case current = "current" - - case hasNext = "has_next" - - case hasPrevious = "has_previous" - - case itemTotal = "item_total" - - case size = "size" - - } - - public init(current: String?, hasNext: Bool?, hasPrevious: Bool?, itemTotal: Int?, size: Int?) { - - self.current = current - - self.hasNext = hasNext + try? container.encodeIfPresent(templateTag, forKey: .templateTag) - self.hasPrevious = hasPrevious + try? container.encodeIfPresent(categorySlug, forKey: .categorySlug) - self.itemTotal = itemTotal + try? container.encodeIfPresent(companyId, forKey: .companyId) - self.size = size + try? container.encodeIfPresent(description, forKey: .description) - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(allSizes, forKey: .allSizes) + try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin) - do { - current = try container.decode(String.self, forKey: .current) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) + try? container.encodeIfPresent(media, forKey: .media) - do { - hasNext = try container.decode(Bool.self, forKey: .hasNext) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(attributes, forKey: .attributes) - do { - hasPrevious = try container.decode(Bool.self, forKey: .hasPrevious) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(highlights, forKey: .highlights) - do { - itemTotal = try container.decode(Int.self, forKey: .itemTotal) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(isSet, forKey: .isSet) + try? container.encodeIfPresent(images, forKey: .images) - do { - size = try container.decode(Int.self, forKey: .size) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(id, forKey: .id) - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(isDependent, forKey: .isDependent) - try? container.encodeIfPresent(current, forKey: .current) + try? container.encodeIfPresent(departments, forKey: .departments) - try? container.encodeIfPresent(hasNext, forKey: .hasNext) + try? container.encodeIfPresent(itemType, forKey: .itemType) - try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious) + try? container.encodeIfPresent(slug, forKey: .slug) - try? container.encodeIfPresent(itemTotal, forKey: .itemTotal) + try? container.encodeIfPresent(itemCode, forKey: .itemCode) - try? container.encodeIfPresent(size, forKey: .size) + try? container.encodeIfPresent(brand, forKey: .brand) } @@ -81789,25 +81789,25 @@ public extension PlatformClient { class ProductListingResponse: Codable { - public var items: [Product]? - public var page: PageData? + public var items: [Product]? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: [Product]?, page: PageData?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -81815,7 +81815,7 @@ public extension PlatformClient { do { - items = try container.decode([Product].self, forKey: .items) + page = try container.decode(PageData.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81826,7 +81826,7 @@ public extension PlatformClient { do { - page = try container.decode(PageData.self, forKey: .page) + items = try container.decode([Product].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81840,40 +81840,40 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } /* - Model: TeaserTag + Model: ProductPublish Used By: Catalog */ - class TeaserTag: Codable { + class ProductPublish: Codable { - public var tag: String? + public var productOnlineDate: String? - public var url: String? + public var isSet: Bool? public enum CodingKeys: String, CodingKey { - case tag = "tag" + case productOnlineDate = "product_online_date" - case url = "url" + case isSet = "is_set" } - public init(tag: String?, url: String?) { + public init(isSet: Bool?, productOnlineDate: String?) { - self.tag = tag + self.productOnlineDate = productOnlineDate - self.url = url + self.isSet = isSet } @@ -81882,7 +81882,7 @@ public extension PlatformClient { do { - tag = try container.decode(String.self, forKey: .tag) + productOnlineDate = try container.decode(String.self, forKey: .productOnlineDate) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81893,7 +81893,7 @@ public extension PlatformClient { do { - url = try container.decode(String.self, forKey: .url) + isSet = try container.decode(Bool.self, forKey: .isSet) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -81907,9 +81907,9 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(tag, forKey: .tag) + try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate) - try? container.encodeIfPresent(url, forKey: .url) + try? container.encodeIfPresent(isSet, forKey: .isSet) } @@ -82002,37 +82002,37 @@ public extension PlatformClient { } /* - Model: CustomOrder + Model: OrderQuantity Used By: Catalog */ - class CustomOrder: Codable { + class OrderQuantity: Codable { - public var manufacturingTimeUnit: String? + public var minimum: Int? - public var manufacturingTime: Int? + public var maximum: Int? - public var isCustomOrder: Bool? + public var isSet: Bool? public enum CodingKeys: String, CodingKey { - case manufacturingTimeUnit = "manufacturing_time_unit" + case minimum = "minimum" - case manufacturingTime = "manufacturing_time" + case maximum = "maximum" - case isCustomOrder = "is_custom_order" + case isSet = "is_set" } - public init(isCustomOrder: Bool?, manufacturingTime: Int?, manufacturingTimeUnit: String?) { + public init(isSet: Bool?, maximum: Int?, minimum: Int?) { - self.manufacturingTimeUnit = manufacturingTimeUnit + self.minimum = minimum - self.manufacturingTime = manufacturingTime + self.maximum = maximum - self.isCustomOrder = isCustomOrder + self.isSet = isSet } @@ -82041,7 +82041,7 @@ public extension PlatformClient { do { - manufacturingTimeUnit = try container.decode(String.self, forKey: .manufacturingTimeUnit) + minimum = try container.decode(Int.self, forKey: .minimum) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82052,7 +82052,7 @@ public extension PlatformClient { do { - manufacturingTime = try container.decode(Int.self, forKey: .manufacturingTime) + maximum = try container.decode(Int.self, forKey: .maximum) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82063,7 +82063,7 @@ public extension PlatformClient { do { - isCustomOrder = try container.decode(Bool.self, forKey: .isCustomOrder) + isSet = try container.decode(Bool.self, forKey: .isSet) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82077,42 +82077,48 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(manufacturingTimeUnit, forKey: .manufacturingTimeUnit) + try? container.encodeIfPresent(minimum, forKey: .minimum) - try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime) + try? container.encodeIfPresent(maximum, forKey: .maximum) - try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder) + try? container.encodeIfPresent(isSet, forKey: .isSet) } } /* - Model: ProductPublish + Model: CustomOrder Used By: Catalog */ - class ProductPublish: Codable { + class CustomOrder: Codable { - public var isSet: Bool? + public var isCustomOrder: Bool? - public var productOnlineDate: String? + public var manufacturingTimeUnit: String? + + public var manufacturingTime: Int? public enum CodingKeys: String, CodingKey { - case isSet = "is_set" + case isCustomOrder = "is_custom_order" - case productOnlineDate = "product_online_date" + case manufacturingTimeUnit = "manufacturing_time_unit" + + case manufacturingTime = "manufacturing_time" } - public init(isSet: Bool?, productOnlineDate: String?) { + public init(isCustomOrder: Bool?, manufacturingTime: Int?, manufacturingTimeUnit: String?) { - self.isSet = isSet + self.isCustomOrder = isCustomOrder - self.productOnlineDate = productOnlineDate + self.manufacturingTimeUnit = manufacturingTimeUnit + + self.manufacturingTime = manufacturingTime } @@ -82121,7 +82127,7 @@ public extension PlatformClient { do { - isSet = try container.decode(Bool.self, forKey: .isSet) + isCustomOrder = try container.decode(Bool.self, forKey: .isCustomOrder) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82132,7 +82138,18 @@ public extension PlatformClient { do { - productOnlineDate = try container.decode(String.self, forKey: .productOnlineDate) + manufacturingTimeUnit = try container.decode(String.self, forKey: .manufacturingTimeUnit) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + manufacturingTime = try container.decode(Int.self, forKey: .manufacturingTime) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82146,9 +82163,11 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(isSet, forKey: .isSet) + try? container.encodeIfPresent(isCustomOrder, forKey: .isCustomOrder) - try? container.encodeIfPresent(productOnlineDate, forKey: .productOnlineDate) + try? container.encodeIfPresent(manufacturingTimeUnit, forKey: .manufacturingTimeUnit) + + try? container.encodeIfPresent(manufacturingTime, forKey: .manufacturingTime) } @@ -82208,37 +82227,31 @@ public extension PlatformClient { } /* - Model: OrderQuantity + Model: TeaserTag Used By: Catalog */ - class OrderQuantity: Codable { - + class TeaserTag: Codable { - public var maximum: Int? - public var isSet: Bool? + public var url: String? - public var minimum: Int? + public var tag: String? public enum CodingKeys: String, CodingKey { - case maximum = "maximum" - - case isSet = "is_set" + case url = "url" - case minimum = "minimum" + case tag = "tag" } - public init(isSet: Bool?, maximum: Int?, minimum: Int?) { - - self.maximum = maximum + public init(tag: String?, url: String?) { - self.isSet = isSet + self.url = url - self.minimum = minimum + self.tag = tag } @@ -82247,18 +82260,7 @@ public extension PlatformClient { do { - maximum = try container.decode(Int.self, forKey: .maximum) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - isSet = try container.decode(Bool.self, forKey: .isSet) + url = try container.decode(String.self, forKey: .url) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82269,7 +82271,7 @@ public extension PlatformClient { do { - minimum = try container.decode(Int.self, forKey: .minimum) + tag = try container.decode(String.self, forKey: .tag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82283,11 +82285,9 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(maximum, forKey: .maximum) - - try? container.encodeIfPresent(isSet, forKey: .isSet) + try? container.encodeIfPresent(url, forKey: .url) - try? container.encodeIfPresent(minimum, forKey: .minimum) + try? container.encodeIfPresent(tag, forKey: .tag) } @@ -82301,234 +82301,234 @@ public extension PlatformClient { class ProductCreateUpdate: Codable { - public var changeRequestId: String? - - public var templateTag: String + public var isActive: Bool? - public var hsnCode: String + public var sizeGuide: String? - public var traderType: String? + public var productPublish: ProductPublish? - public var teaserTag: TeaserTag? + public var brandUid: Int public var multiSize: Bool? - public var countryOfOrigin: String + public var noOfBoxes: Int? - public var isSet: Bool? + public var currency: String - public var isImageLessProduct: Bool? + public var templateTag: String - public var productGroupTag: [String]? + public var tags: [String]? - public var noOfBoxes: Int? + public var traderType: String? public var returnConfig: ReturnConfig? - public var description: String? + public var isImageLessProduct: Bool? - public var isActive: Bool? + public var categorySlug: String - public var highlights: [String]? + public var companyId: Int - public var media: [Media1]? + public var changeRequestId: String? - public var customOrder: CustomOrder? + public var description: String? - public var sizeGuide: String? + public var countryOfOrigin: String - public var shortDescription: String? + public var hsnCode: String - public var variants: [String: Any]? + public var media: [Media1]? + + public var name: String public var uid: Int? - public var tags: [String]? + public var highlights: [String]? - public var slug: String + public var moq: OrderQuantity? - public var departments: [Int] + public var isSet: Bool? - public var name: String + public var customJson: [String: Any]? - public var itemType: String + public var shortDescription: String? - public var itemCode: String + public var isDependent: Bool? - public var companyId: Int + public var requester: String? - public var customJson: [String: Any]? + public var customOrder: CustomOrder? - public var productPublish: ProductPublish? + public var productGroupTag: [String]? - public var trader: Trader? + public var variants: [String: Any]? - public var isDependent: Bool? + public var departments: [Int] - public var requester: String? + public var itemType: String - public var categorySlug: String + public var slug: String - public var currency: String + public var itemCode: String - public var moq: OrderQuantity? + public var trader: Trader? - public var brandUid: Int + public var teaserTag: TeaserTag? public enum CodingKeys: String, CodingKey { - case changeRequestId = "change_request_id" - - case templateTag = "template_tag" + case isActive = "is_active" - case hsnCode = "hsn_code" + case sizeGuide = "size_guide" - case traderType = "trader_type" + case productPublish = "product_publish" - case teaserTag = "teaser_tag" + case brandUid = "brand_uid" case multiSize = "multi_size" - case countryOfOrigin = "country_of_origin" + case noOfBoxes = "no_of_boxes" - case isSet = "is_set" + case currency = "currency" + + case templateTag = "template_tag" + + case tags = "tags" + + case traderType = "trader_type" + + case returnConfig = "return_config" case isImageLessProduct = "is_image_less_product" - case productGroupTag = "product_group_tag" + case categorySlug = "category_slug" - case noOfBoxes = "no_of_boxes" + case companyId = "company_id" - case returnConfig = "return_config" + case changeRequestId = "change_request_id" case description = "description" - case isActive = "is_active" + case countryOfOrigin = "country_of_origin" - case highlights = "highlights" + case hsnCode = "hsn_code" case media = "media" - case customOrder = "custom_order" - - case sizeGuide = "size_guide" - - case shortDescription = "short_description" - - case variants = "variants" + case name = "name" case uid = "uid" - case tags = "tags" + case highlights = "highlights" - case slug = "slug" + case moq = "moq" - case departments = "departments" + case isSet = "is_set" - case name = "name" + case customJson = "_custom_json" - case itemType = "item_type" + case shortDescription = "short_description" - case itemCode = "item_code" + case isDependent = "is_dependent" - case companyId = "company_id" + case requester = "requester" - case customJson = "_custom_json" + case customOrder = "custom_order" - case productPublish = "product_publish" + case productGroupTag = "product_group_tag" - case trader = "trader" + case variants = "variants" - case isDependent = "is_dependent" + case departments = "departments" - case requester = "requester" + case itemType = "item_type" - case categorySlug = "category_slug" + case slug = "slug" - case currency = "currency" + case itemCode = "item_code" - case moq = "moq" + case trader = "trader" - case brandUid = "brand_uid" + case teaserTag = "teaser_tag" } public init(brandUid: Int, categorySlug: String, changeRequestId: String?, companyId: Int, countryOfOrigin: String, currency: String, customOrder: CustomOrder?, departments: [Int], description: String?, highlights: [String]?, hsnCode: String, isActive: Bool?, isDependent: Bool?, isImageLessProduct: Bool?, isSet: Bool?, itemCode: String, itemType: String, media: [Media1]?, moq: OrderQuantity?, multiSize: Bool?, name: String, noOfBoxes: Int?, productGroupTag: [String]?, productPublish: ProductPublish?, requester: String?, returnConfig: ReturnConfig?, shortDescription: String?, sizeGuide: String?, slug: String, tags: [String]?, teaserTag: TeaserTag?, templateTag: String, trader: Trader?, traderType: String?, uid: Int?, variants: [String: Any]?, customJson: [String: Any]?) { - self.changeRequestId = changeRequestId - - self.templateTag = templateTag + self.isActive = isActive - self.hsnCode = hsnCode + self.sizeGuide = sizeGuide - self.traderType = traderType + self.productPublish = productPublish - self.teaserTag = teaserTag + self.brandUid = brandUid self.multiSize = multiSize - self.countryOfOrigin = countryOfOrigin + self.noOfBoxes = noOfBoxes - self.isSet = isSet + self.currency = currency - self.isImageLessProduct = isImageLessProduct + self.templateTag = templateTag - self.productGroupTag = productGroupTag + self.tags = tags - self.noOfBoxes = noOfBoxes + self.traderType = traderType self.returnConfig = returnConfig - self.description = description + self.isImageLessProduct = isImageLessProduct - self.isActive = isActive + self.categorySlug = categorySlug - self.highlights = highlights + self.companyId = companyId - self.media = media + self.changeRequestId = changeRequestId - self.customOrder = customOrder + self.description = description - self.sizeGuide = sizeGuide + self.countryOfOrigin = countryOfOrigin - self.shortDescription = shortDescription + self.hsnCode = hsnCode - self.variants = variants + self.media = media + + self.name = name self.uid = uid - self.tags = tags + self.highlights = highlights - self.slug = slug + self.moq = moq - self.departments = departments + self.isSet = isSet - self.name = name + self.customJson = customJson - self.itemType = itemType + self.shortDescription = shortDescription - self.itemCode = itemCode + self.isDependent = isDependent - self.companyId = companyId + self.requester = requester - self.customJson = customJson + self.customOrder = customOrder - self.productPublish = productPublish + self.productGroupTag = productGroupTag - self.trader = trader + self.variants = variants - self.isDependent = isDependent + self.departments = departments - self.requester = requester + self.itemType = itemType - self.categorySlug = categorySlug + self.slug = slug - self.currency = currency + self.itemCode = itemCode - self.moq = moq + self.trader = trader - self.brandUid = brandUid + self.teaserTag = teaserTag } @@ -82537,26 +82537,7 @@ public extension PlatformClient { do { - changeRequestId = try container.decode(String.self, forKey: .changeRequestId) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - templateTag = try container.decode(String.self, forKey: .templateTag) - - - - hsnCode = try container.decode(String.self, forKey: .hsnCode) - - - - do { - traderType = try container.decode(String.self, forKey: .traderType) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82567,7 +82548,7 @@ public extension PlatformClient { do { - teaserTag = try container.decode(TeaserTag.self, forKey: .teaserTag) + sizeGuide = try container.decode(String.self, forKey: .sizeGuide) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82578,7 +82559,7 @@ public extension PlatformClient { do { - multiSize = try container.decode(Bool.self, forKey: .multiSize) + productPublish = try container.decode(ProductPublish.self, forKey: .productPublish) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82588,12 +82569,12 @@ public extension PlatformClient { - countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin) + brandUid = try container.decode(Int.self, forKey: .brandUid) do { - isSet = try container.decode(Bool.self, forKey: .isSet) + multiSize = try container.decode(Bool.self, forKey: .multiSize) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82604,7 +82585,7 @@ public extension PlatformClient { do { - isImageLessProduct = try container.decode(Bool.self, forKey: .isImageLessProduct) + noOfBoxes = try container.decode(Int.self, forKey: .noOfBoxes) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82614,8 +82595,16 @@ public extension PlatformClient { + currency = try container.decode(String.self, forKey: .currency) + + + + templateTag = try container.decode(String.self, forKey: .templateTag) + + + do { - productGroupTag = try container.decode([String].self, forKey: .productGroupTag) + tags = try container.decode([String].self, forKey: .tags) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82626,7 +82615,7 @@ public extension PlatformClient { do { - noOfBoxes = try container.decode(Int.self, forKey: .noOfBoxes) + traderType = try container.decode(String.self, forKey: .traderType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82648,7 +82637,7 @@ public extension PlatformClient { do { - description = try container.decode(String.self, forKey: .description) + isImageLessProduct = try container.decode(Bool.self, forKey: .isImageLessProduct) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82658,8 +82647,16 @@ public extension PlatformClient { + categorySlug = try container.decode(String.self, forKey: .categorySlug) + + + + companyId = try container.decode(Int.self, forKey: .companyId) + + + do { - isActive = try container.decode(Bool.self, forKey: .isActive) + changeRequestId = try container.decode(String.self, forKey: .changeRequestId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82670,7 +82667,7 @@ public extension PlatformClient { do { - highlights = try container.decode([String].self, forKey: .highlights) + description = try container.decode(String.self, forKey: .description) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82680,6 +82677,14 @@ public extension PlatformClient { + countryOfOrigin = try container.decode(String.self, forKey: .countryOfOrigin) + + + + hsnCode = try container.decode(String.self, forKey: .hsnCode) + + + do { media = try container.decode([Media1].self, forKey: .media) } catch DecodingError.typeMismatch(let type, let context) { @@ -82691,8 +82696,12 @@ public extension PlatformClient { + name = try container.decode(String.self, forKey: .name) + + + do { - customOrder = try container.decode(CustomOrder.self, forKey: .customOrder) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82703,7 +82712,7 @@ public extension PlatformClient { do { - sizeGuide = try container.decode(String.self, forKey: .sizeGuide) + highlights = try container.decode([String].self, forKey: .highlights) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82714,7 +82723,7 @@ public extension PlatformClient { do { - shortDescription = try container.decode(String.self, forKey: .shortDescription) + moq = try container.decode(OrderQuantity.self, forKey: .moq) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82725,7 +82734,7 @@ public extension PlatformClient { do { - variants = try container.decode([String: Any].self, forKey: .variants) + isSet = try container.decode(Bool.self, forKey: .isSet) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82736,7 +82745,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82747,7 +82756,7 @@ public extension PlatformClient { do { - tags = try container.decode([String].self, forKey: .tags) + shortDescription = try container.decode(String.self, forKey: .shortDescription) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82757,32 +82766,8 @@ public extension PlatformClient { - slug = try container.decode(String.self, forKey: .slug) - - - - departments = try container.decode([Int].self, forKey: .departments) - - - - name = try container.decode(String.self, forKey: .name) - - - - itemType = try container.decode(String.self, forKey: .itemType) - - - - itemCode = try container.decode(String.self, forKey: .itemCode) - - - - companyId = try container.decode(Int.self, forKey: .companyId) - - - do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + isDependent = try container.decode(Bool.self, forKey: .isDependent) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82793,7 +82778,7 @@ public extension PlatformClient { do { - productPublish = try container.decode(ProductPublish.self, forKey: .productPublish) + requester = try container.decode(String.self, forKey: .requester) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82804,7 +82789,7 @@ public extension PlatformClient { do { - trader = try container.decode(Trader.self, forKey: .trader) + customOrder = try container.decode(CustomOrder.self, forKey: .customOrder) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82815,7 +82800,7 @@ public extension PlatformClient { do { - isDependent = try container.decode(Bool.self, forKey: .isDependent) + productGroupTag = try container.decode([String].self, forKey: .productGroupTag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82826,7 +82811,7 @@ public extension PlatformClient { do { - requester = try container.decode(String.self, forKey: .requester) + variants = try container.decode([String: Any].self, forKey: .variants) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82836,16 +82821,24 @@ public extension PlatformClient { - categorySlug = try container.decode(String.self, forKey: .categorySlug) + departments = try container.decode([Int].self, forKey: .departments) - currency = try container.decode(String.self, forKey: .currency) + itemType = try container.decode(String.self, forKey: .itemType) + + + + slug = try container.decode(String.self, forKey: .slug) + + + + itemCode = try container.decode(String.self, forKey: .itemCode) do { - moq = try container.decode(OrderQuantity.self, forKey: .moq) + trader = try container.decode(Trader.self, forKey: .trader) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -82855,87 +82848,94 @@ public extension PlatformClient { - brandUid = try container.decode(Int.self, forKey: .brandUid) - + do { + teaserTag = try container.decode(TeaserTag.self, forKey: .teaserTag) + } 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(changeRequestId, forKey: .changeRequestId) - - try? container.encodeIfPresent(templateTag, forKey: .templateTag) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) + try? container.encodeIfPresent(sizeGuide, forKey: .sizeGuide) - try? container.encodeIfPresent(traderType, forKey: .traderType) + try? container.encodeIfPresent(productPublish, forKey: .productPublish) - try? container.encodeIfPresent(teaserTag, forKey: .teaserTag) + try? container.encodeIfPresent(brandUid, forKey: .brandUid) try? container.encodeIfPresent(multiSize, forKey: .multiSize) - try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin) + try? container.encodeIfPresent(noOfBoxes, forKey: .noOfBoxes) - try? container.encodeIfPresent(isSet, forKey: .isSet) + try? container.encodeIfPresent(currency, forKey: .currency) - try? container.encodeIfPresent(isImageLessProduct, forKey: .isImageLessProduct) + try? container.encodeIfPresent(templateTag, forKey: .templateTag) - try? container.encodeIfPresent(productGroupTag, forKey: .productGroupTag) + try? container.encodeIfPresent(tags, forKey: .tags) - try? container.encodeIfPresent(noOfBoxes, forKey: .noOfBoxes) + try? container.encodeIfPresent(traderType, forKey: .traderType) try? container.encodeIfPresent(returnConfig, forKey: .returnConfig) - try? container.encodeIfPresent(description, forKey: .description) + try? container.encodeIfPresent(isImageLessProduct, forKey: .isImageLessProduct) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(categorySlug, forKey: .categorySlug) - try? container.encodeIfPresent(highlights, forKey: .highlights) + try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(media, forKey: .media) + try? container.encodeIfPresent(changeRequestId, forKey: .changeRequestId) - try? container.encodeIfPresent(customOrder, forKey: .customOrder) + try? container.encodeIfPresent(description, forKey: .description) - try? container.encodeIfPresent(sizeGuide, forKey: .sizeGuide) + try? container.encodeIfPresent(countryOfOrigin, forKey: .countryOfOrigin) - try? container.encodeIfPresent(shortDescription, forKey: .shortDescription) + try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) - try? container.encodeIfPresent(variants, forKey: .variants) + try? container.encodeIfPresent(media, forKey: .media) + + try? container.encodeIfPresent(name, forKey: .name) try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(tags, forKey: .tags) + try? container.encodeIfPresent(highlights, forKey: .highlights) - try? container.encodeIfPresent(slug, forKey: .slug) + try? container.encodeIfPresent(moq, forKey: .moq) - try? container.encodeIfPresent(departments, forKey: .departments) + try? container.encodeIfPresent(isSet, forKey: .isSet) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(customJson, forKey: .customJson) - try? container.encodeIfPresent(itemType, forKey: .itemType) + try? container.encodeIfPresent(shortDescription, forKey: .shortDescription) - try? container.encodeIfPresent(itemCode, forKey: .itemCode) + try? container.encodeIfPresent(isDependent, forKey: .isDependent) - try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(requester, forKey: .requester) - try? container.encodeIfPresent(customJson, forKey: .customJson) + try? container.encodeIfPresent(customOrder, forKey: .customOrder) - try? container.encodeIfPresent(productPublish, forKey: .productPublish) + try? container.encodeIfPresent(productGroupTag, forKey: .productGroupTag) - try? container.encodeIfPresent(trader, forKey: .trader) + try? container.encodeIfPresent(variants, forKey: .variants) - try? container.encodeIfPresent(isDependent, forKey: .isDependent) + try? container.encodeIfPresent(departments, forKey: .departments) - try? container.encodeIfPresent(requester, forKey: .requester) + try? container.encodeIfPresent(itemType, forKey: .itemType) - try? container.encodeIfPresent(categorySlug, forKey: .categorySlug) + try? container.encodeIfPresent(slug, forKey: .slug) - try? container.encodeIfPresent(currency, forKey: .currency) + try? container.encodeIfPresent(itemCode, forKey: .itemCode) - try? container.encodeIfPresent(moq, forKey: .moq) + try? container.encodeIfPresent(trader, forKey: .trader) - try? container.encodeIfPresent(brandUid, forKey: .brandUid) + try? container.encodeIfPresent(teaserTag, forKey: .teaserTag) } @@ -83083,109 +83083,109 @@ public extension PlatformClient { class ProductBulkRequest: Codable { - public var failedRecords: [String]? + public var createdOn: String? - public var companyId: Int? + public var isActive: Bool? - public var createdOn: String? + public var createdBy: UserDetail? + + public var failed: Int? + + public var stage: String? + + public var failedRecords: [String]? public var succeed: Int? public var template: ProductTemplate? - public var filePath: String? + public var companyId: Int? - public var isActive: Bool? + public var modifiedOn: String? - public var templateTag: String? + public var filePath: String? - public var modifiedOn: String? + public var templateTag: String? public var total: Int? - public var stage: String? + public var cancelled: Int? public var modifiedBy: UserDetail? - public var failed: Int? - - public var cancelled: Int? - public var cancelledRecords: [String]? - public var createdBy: UserDetail? - public enum CodingKeys: String, CodingKey { - case failedRecords = "failed_records" + case createdOn = "created_on" - case companyId = "company_id" + case isActive = "is_active" - case createdOn = "created_on" + case createdBy = "created_by" + + case failed = "failed" + + case stage = "stage" + + case failedRecords = "failed_records" case succeed = "succeed" case template = "template" - case filePath = "file_path" + case companyId = "company_id" - case isActive = "is_active" + case modifiedOn = "modified_on" - case templateTag = "template_tag" + case filePath = "file_path" - case modifiedOn = "modified_on" + case templateTag = "template_tag" case total = "total" - case stage = "stage" + case cancelled = "cancelled" case modifiedBy = "modified_by" - case failed = "failed" - - case cancelled = "cancelled" - case cancelledRecords = "cancelled_records" - case createdBy = "created_by" - } public init(cancelled: Int?, cancelledRecords: [String]?, companyId: Int?, createdBy: UserDetail?, createdOn: String?, failed: Int?, failedRecords: [String]?, filePath: String?, isActive: Bool?, modifiedBy: UserDetail?, modifiedOn: String?, stage: String?, succeed: Int?, template: ProductTemplate?, templateTag: String?, total: Int?) { - self.failedRecords = failedRecords + self.createdOn = createdOn - self.companyId = companyId + self.isActive = isActive - self.createdOn = createdOn + self.createdBy = createdBy + + self.failed = failed + + self.stage = stage + + self.failedRecords = failedRecords self.succeed = succeed self.template = template - self.filePath = filePath + self.companyId = companyId - self.isActive = isActive + self.modifiedOn = modifiedOn - self.templateTag = templateTag + self.filePath = filePath - self.modifiedOn = modifiedOn + self.templateTag = templateTag self.total = total - self.stage = stage + self.cancelled = cancelled self.modifiedBy = modifiedBy - self.failed = failed - - self.cancelled = cancelled - self.cancelledRecords = cancelledRecords - self.createdBy = createdBy - } required public init(from decoder: Decoder) throws { @@ -83193,7 +83193,7 @@ public extension PlatformClient { do { - failedRecords = try container.decode([String].self, forKey: .failedRecords) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83204,7 +83204,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83215,7 +83215,7 @@ public extension PlatformClient { do { - createdOn = try container.decode(String.self, forKey: .createdOn) + createdBy = try container.decode(UserDetail.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83226,7 +83226,7 @@ public extension PlatformClient { do { - succeed = try container.decode(Int.self, forKey: .succeed) + failed = try container.decode(Int.self, forKey: .failed) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83237,7 +83237,7 @@ public extension PlatformClient { do { - template = try container.decode(ProductTemplate.self, forKey: .template) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83248,7 +83248,7 @@ public extension PlatformClient { do { - filePath = try container.decode(String.self, forKey: .filePath) + failedRecords = try container.decode([String].self, forKey: .failedRecords) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83259,7 +83259,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + succeed = try container.decode(Int.self, forKey: .succeed) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83270,7 +83270,7 @@ public extension PlatformClient { do { - templateTag = try container.decode(String.self, forKey: .templateTag) + template = try container.decode(ProductTemplate.self, forKey: .template) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83281,7 +83281,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83292,7 +83292,7 @@ public extension PlatformClient { do { - total = try container.decode(Int.self, forKey: .total) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83303,7 +83303,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + filePath = try container.decode(String.self, forKey: .filePath) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83314,7 +83314,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserDetail.self, forKey: .modifiedBy) + templateTag = try container.decode(String.self, forKey: .templateTag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83325,7 +83325,7 @@ public extension PlatformClient { do { - failed = try container.decode(Int.self, forKey: .failed) + total = try container.decode(Int.self, forKey: .total) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83347,7 +83347,7 @@ public extension PlatformClient { do { - cancelledRecords = try container.decode([String].self, forKey: .cancelledRecords) + modifiedBy = try container.decode(UserDetail.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83358,7 +83358,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserDetail.self, forKey: .createdBy) + cancelledRecords = try container.decode([String].self, forKey: .cancelledRecords) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83372,38 +83372,38 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(failedRecords, forKey: .failedRecords) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) + + try? container.encodeIfPresent(failed, forKey: .failed) + + try? container.encodeIfPresent(stage, forKey: .stage) + + try? container.encodeIfPresent(failedRecords, forKey: .failedRecords) try? container.encodeIfPresent(succeed, forKey: .succeed) try? container.encodeIfPresent(template, forKey: .template) - try? container.encodeIfPresent(filePath, forKey: .filePath) + try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - try? container.encodeIfPresent(templateTag, forKey: .templateTag) + try? container.encodeIfPresent(filePath, forKey: .filePath) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(templateTag, forKey: .templateTag) try? container.encodeIfPresent(total, forKey: .total) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(cancelled, forKey: .cancelled) try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(failed, forKey: .failed) - - try? container.encodeIfPresent(cancelled, forKey: .cancelled) - try? container.encodeIfPresent(cancelledRecords, forKey: .cancelledRecords) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) - } } @@ -83416,25 +83416,25 @@ public extension PlatformClient { class ProductBulkRequestList: Codable { - public var items: ProductBulkRequest? - public var page: PageData? + public var items: ProductBulkRequest? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: ProductBulkRequest?, page: PageData?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -83442,7 +83442,7 @@ public extension PlatformClient { do { - items = try container.decode(ProductBulkRequest.self, forKey: .items) + page = try container.decode(PageData.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83453,7 +83453,7 @@ public extension PlatformClient { do { - page = try container.decode(PageData.self, forKey: .page) + items = try container.decode(ProductBulkRequest.self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83467,10 +83467,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } @@ -83483,10 +83483,10 @@ public extension PlatformClient { class UserInfo1: Codable { - public var uid: String? - public var email: String? + public var uid: String? + public var username: String? public var userId: String? @@ -83494,10 +83494,10 @@ public extension PlatformClient { public enum CodingKeys: String, CodingKey { - case uid = "uid" - case email = "email" + case uid = "uid" + case username = "username" case userId = "user_id" @@ -83506,10 +83506,10 @@ public extension PlatformClient { public init(email: String?, uid: String?, username: String?, userId: String?) { - self.uid = uid - self.email = email + self.uid = uid + self.username = username self.userId = userId @@ -83521,7 +83521,7 @@ public extension PlatformClient { do { - uid = try container.decode(String.self, forKey: .uid) + email = try container.decode(String.self, forKey: .email) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83532,7 +83532,7 @@ public extension PlatformClient { do { - email = try container.decode(String.self, forKey: .email) + uid = try container.decode(String.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83568,10 +83568,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(email, forKey: .email) + try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(username, forKey: .username) try? container.encodeIfPresent(userId, forKey: .userId) @@ -83588,114 +83588,114 @@ public extension PlatformClient { class BulkJob: Codable { - public var succeed: Int? - public var createdOn: String - public var companyId: Int + public var isActive: Bool? - public var failedRecords: [[String: Any]]? + public var createdBy: UserInfo1? + + public var cancelledRecords: [[String: Any]]? + + public var customTemplateTag: String? public var failed: Int? - public var filePath: String? + public var stage: String? - public var isActive: Bool? + public var failedRecords: [[String: Any]]? - public var templateTag: String? + public var succeed: Int? - public var modifiedOn: String? + public var companyId: Int - public var customTemplateTag: String? + public var trackingUrl: String? - public var total: Int + public var filePath: String? - public var stage: String? + public var templateTag: String? - public var modifiedBy: UserInfo1? + public var total: Int public var cancelled: Int? - public var cancelledRecords: [[String: Any]]? - - public var createdBy: UserInfo1? + public var modifiedBy: UserInfo1? - public var trackingUrl: String? + public var modifiedOn: String? public enum CodingKeys: String, CodingKey { - case succeed = "succeed" - case createdOn = "created_on" - case companyId = "company_id" + case isActive = "is_active" - case failedRecords = "failed_records" + case createdBy = "created_by" + + case cancelledRecords = "cancelled_records" + + case customTemplateTag = "custom_template_tag" case failed = "failed" - case filePath = "file_path" + case stage = "stage" - case isActive = "is_active" + case failedRecords = "failed_records" - case templateTag = "template_tag" + case succeed = "succeed" - case modifiedOn = "modified_on" + case companyId = "company_id" - case customTemplateTag = "custom_template_tag" + case trackingUrl = "tracking_url" - case total = "total" + case filePath = "file_path" - case stage = "stage" + case templateTag = "template_tag" - case modifiedBy = "modified_by" + case total = "total" case cancelled = "cancelled" - case cancelledRecords = "cancelled_records" - - case createdBy = "created_by" + case modifiedBy = "modified_by" - case trackingUrl = "tracking_url" + case modifiedOn = "modified_on" } public init(cancelled: Int?, cancelledRecords: [[String: Any]]?, companyId: Int, createdBy: UserInfo1?, createdOn: String, customTemplateTag: String?, failed: Int?, failedRecords: [[String: Any]]?, filePath: String?, isActive: Bool?, modifiedBy: UserInfo1?, modifiedOn: String?, stage: String?, succeed: Int?, templateTag: String?, total: Int, trackingUrl: String?) { - self.succeed = succeed - self.createdOn = createdOn - self.companyId = companyId + self.isActive = isActive - self.failedRecords = failedRecords + self.createdBy = createdBy + + self.cancelledRecords = cancelledRecords + + self.customTemplateTag = customTemplateTag self.failed = failed - self.filePath = filePath + self.stage = stage - self.isActive = isActive + self.failedRecords = failedRecords - self.templateTag = templateTag + self.succeed = succeed - self.modifiedOn = modifiedOn + self.companyId = companyId - self.customTemplateTag = customTemplateTag + self.trackingUrl = trackingUrl - self.total = total + self.filePath = filePath - self.stage = stage + self.templateTag = templateTag - self.modifiedBy = modifiedBy + self.total = total self.cancelled = cancelled - self.cancelledRecords = cancelledRecords - - self.createdBy = createdBy + self.modifiedBy = modifiedBy - self.trackingUrl = trackingUrl + self.modifiedOn = modifiedOn } @@ -83703,8 +83703,12 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) + createdOn = try container.decode(String.self, forKey: .createdOn) + + + do { - succeed = try container.decode(Int.self, forKey: .succeed) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83714,16 +83718,8 @@ public extension PlatformClient { - createdOn = try container.decode(String.self, forKey: .createdOn) - - - - companyId = try container.decode(Int.self, forKey: .companyId) - - - do { - failedRecords = try container.decode([[String: Any]].self, forKey: .failedRecords) + createdBy = try container.decode(UserInfo1.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83734,7 +83730,7 @@ public extension PlatformClient { do { - failed = try container.decode(Int.self, forKey: .failed) + cancelledRecords = try container.decode([[String: Any]].self, forKey: .cancelledRecords) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83745,7 +83741,7 @@ public extension PlatformClient { do { - filePath = try container.decode(String.self, forKey: .filePath) + customTemplateTag = try container.decode(String.self, forKey: .customTemplateTag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83756,7 +83752,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + failed = try container.decode(Int.self, forKey: .failed) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83767,7 +83763,7 @@ public extension PlatformClient { do { - templateTag = try container.decode(String.self, forKey: .templateTag) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83778,7 +83774,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + failedRecords = try container.decode([[String: Any]].self, forKey: .failedRecords) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83789,7 +83785,7 @@ public extension PlatformClient { do { - customTemplateTag = try container.decode(String.self, forKey: .customTemplateTag) + succeed = try container.decode(Int.self, forKey: .succeed) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83799,12 +83795,12 @@ public extension PlatformClient { - total = try container.decode(Int.self, forKey: .total) + companyId = try container.decode(Int.self, forKey: .companyId) do { - stage = try container.decode(String.self, forKey: .stage) + trackingUrl = try container.decode(String.self, forKey: .trackingUrl) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83815,7 +83811,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserInfo1.self, forKey: .modifiedBy) + filePath = try container.decode(String.self, forKey: .filePath) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83826,7 +83822,7 @@ public extension PlatformClient { do { - cancelled = try container.decode(Int.self, forKey: .cancelled) + templateTag = try container.decode(String.self, forKey: .templateTag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83836,8 +83832,12 @@ public extension PlatformClient { + total = try container.decode(Int.self, forKey: .total) + + + do { - cancelledRecords = try container.decode([[String: Any]].self, forKey: .cancelledRecords) + cancelled = try container.decode(Int.self, forKey: .cancelled) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83848,7 +83848,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserInfo1.self, forKey: .createdBy) + modifiedBy = try container.decode(UserInfo1.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83859,7 +83859,7 @@ public extension PlatformClient { do { - trackingUrl = try container.decode(String.self, forKey: .trackingUrl) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -83873,39 +83873,39 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(succeed, forKey: .succeed) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(failedRecords, forKey: .failedRecords) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) + + try? container.encodeIfPresent(cancelledRecords, forKey: .cancelledRecords) + + try? container.encodeIfPresent(customTemplateTag, forKey: .customTemplateTag) try? container.encodeIfPresent(failed, forKey: .failed) - try? container.encodeIfPresent(filePath, forKey: .filePath) + try? container.encodeIfPresent(stage, forKey: .stage) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(failedRecords, forKey: .failedRecords) - try? container.encodeIfPresent(templateTag, forKey: .templateTag) + try? container.encodeIfPresent(succeed, forKey: .succeed) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(customTemplateTag, forKey: .customTemplateTag) + try? container.encodeIfPresent(trackingUrl, forKey: .trackingUrl) - try? container.encodeIfPresent(total, forKey: .total) + try? container.encodeIfPresent(filePath, forKey: .filePath) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(templateTag, forKey: .templateTag) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(total, forKey: .total) try? container.encodeIfPresent(cancelled, forKey: .cancelled) - try? container.encodeIfPresent(cancelledRecords, forKey: .cancelledRecords) - - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(trackingUrl, forKey: .trackingUrl) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) } @@ -83921,22 +83921,22 @@ public extension PlatformClient { public var templateTag: String - public var companyId: Int + public var data: [[String: Any]] public var batchId: String - public var data: [[String: Any]] + public var companyId: Int public enum CodingKeys: String, CodingKey { case templateTag = "template_tag" - case companyId = "company_id" + case data = "data" case batchId = "batch_id" - case data = "data" + case companyId = "company_id" } @@ -83944,11 +83944,11 @@ public extension PlatformClient { self.templateTag = templateTag - self.companyId = companyId + self.data = data self.batchId = batchId - self.data = data + self.companyId = companyId } @@ -83960,7 +83960,7 @@ public extension PlatformClient { - companyId = try container.decode(Int.self, forKey: .companyId) + data = try container.decode([[String: Any]].self, forKey: .data) @@ -83968,7 +83968,7 @@ public extension PlatformClient { - data = try container.decode([[String: Any]].self, forKey: .data) + companyId = try container.decode(Int.self, forKey: .companyId) } @@ -83978,11 +83978,11 @@ public extension PlatformClient { try? container.encodeIfPresent(templateTag, forKey: .templateTag) - try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(data, forKey: .data) try? container.encodeIfPresent(batchId, forKey: .batchId) - try? container.encodeIfPresent(data, forKey: .data) + try? container.encodeIfPresent(companyId, forKey: .companyId) } @@ -84092,114 +84092,114 @@ public extension PlatformClient { class Items: Codable { - public var succeed: Int? - public var createdOn: String? - public var failedRecords: [String]? + public var createdBy: UserCommon? - public var companyId: Int? + public var isActive: Bool? - public var failed: Int? + public var cancelledRecords: [String]? - public var filePath: String? + public var failed: Int? - public var isActive: Bool? + public var stage: String? - public var retry: Int? + public var failedRecords: [String]? - public var id: String? + public var succeed: Int? - public var modifiedOn: String? + public var companyId: Int? - public var total: Int? + public var trackingUrl: String? - public var stage: String? + public var filePath: String? - public var modifiedBy: UserCommon? + public var total: Int? public var cancelled: Int? - public var cancelledRecords: [String]? + public var retry: Int? - public var createdBy: UserCommon? + public var modifiedBy: UserCommon? - public var trackingUrl: String? + public var id: String? + + public var modifiedOn: String? public enum CodingKeys: String, CodingKey { - case succeed = "succeed" - case createdOn = "created_on" - case failedRecords = "failed_records" + case createdBy = "created_by" - case companyId = "company_id" + case isActive = "is_active" - case failed = "failed" + case cancelledRecords = "cancelled_records" - case filePath = "file_path" + case failed = "failed" - case isActive = "is_active" + case stage = "stage" - case retry = "retry" + case failedRecords = "failed_records" - case id = "id" + case succeed = "succeed" - case modifiedOn = "modified_on" + case companyId = "company_id" - case total = "total" + case trackingUrl = "tracking_url" - case stage = "stage" + case filePath = "file_path" - case modifiedBy = "modified_by" + case total = "total" case cancelled = "cancelled" - case cancelledRecords = "cancelled_records" + case retry = "retry" - case createdBy = "created_by" + case modifiedBy = "modified_by" - case trackingUrl = "tracking_url" + case id = "id" + + case modifiedOn = "modified_on" } public init(cancelled: Int?, cancelledRecords: [String]?, companyId: Int?, createdBy: UserCommon?, createdOn: String?, failed: Int?, failedRecords: [String]?, filePath: String?, id: String?, isActive: Bool?, modifiedBy: UserCommon?, modifiedOn: String?, retry: Int?, stage: String?, succeed: Int?, total: Int?, trackingUrl: String?) { - self.succeed = succeed - self.createdOn = createdOn - self.failedRecords = failedRecords + self.createdBy = createdBy - self.companyId = companyId + self.isActive = isActive - self.failed = failed + self.cancelledRecords = cancelledRecords - self.filePath = filePath + self.failed = failed - self.isActive = isActive + self.stage = stage - self.retry = retry + self.failedRecords = failedRecords - self.id = id + self.succeed = succeed - self.modifiedOn = modifiedOn + self.companyId = companyId - self.total = total + self.trackingUrl = trackingUrl - self.stage = stage + self.filePath = filePath - self.modifiedBy = modifiedBy + self.total = total self.cancelled = cancelled - self.cancelledRecords = cancelledRecords + self.retry = retry - self.createdBy = createdBy + self.modifiedBy = modifiedBy - self.trackingUrl = trackingUrl + self.id = id + + self.modifiedOn = modifiedOn } @@ -84208,7 +84208,7 @@ public extension PlatformClient { do { - succeed = try container.decode(Int.self, forKey: .succeed) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84219,7 +84219,7 @@ public extension PlatformClient { do { - createdOn = try container.decode(String.self, forKey: .createdOn) + createdBy = try container.decode(UserCommon.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84230,7 +84230,7 @@ public extension PlatformClient { do { - failedRecords = try container.decode([String].self, forKey: .failedRecords) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84241,7 +84241,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) + cancelledRecords = try container.decode([String].self, forKey: .cancelledRecords) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84263,7 +84263,7 @@ public extension PlatformClient { do { - filePath = try container.decode(String.self, forKey: .filePath) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84274,7 +84274,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + failedRecords = try container.decode([String].self, forKey: .failedRecords) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84285,7 +84285,7 @@ public extension PlatformClient { do { - retry = try container.decode(Int.self, forKey: .retry) + succeed = try container.decode(Int.self, forKey: .succeed) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84296,7 +84296,7 @@ public extension PlatformClient { do { - id = try container.decode(String.self, forKey: .id) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84307,7 +84307,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + trackingUrl = try container.decode(String.self, forKey: .trackingUrl) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84318,7 +84318,7 @@ public extension PlatformClient { do { - total = try container.decode(Int.self, forKey: .total) + filePath = try container.decode(String.self, forKey: .filePath) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84329,7 +84329,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + total = try container.decode(Int.self, forKey: .total) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84340,7 +84340,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserCommon.self, forKey: .modifiedBy) + cancelled = try container.decode(Int.self, forKey: .cancelled) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84351,7 +84351,7 @@ public extension PlatformClient { do { - cancelled = try container.decode(Int.self, forKey: .cancelled) + retry = try container.decode(Int.self, forKey: .retry) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84362,7 +84362,7 @@ public extension PlatformClient { do { - cancelledRecords = try container.decode([String].self, forKey: .cancelledRecords) + modifiedBy = try container.decode(UserCommon.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84373,7 +84373,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserCommon.self, forKey: .createdBy) + id = try container.decode(String.self, forKey: .id) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84384,7 +84384,7 @@ public extension PlatformClient { do { - trackingUrl = try container.decode(String.self, forKey: .trackingUrl) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84398,39 +84398,39 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(succeed, forKey: .succeed) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(failedRecords, forKey: .failedRecords) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) - try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(failed, forKey: .failed) + try? container.encodeIfPresent(cancelledRecords, forKey: .cancelledRecords) - try? container.encodeIfPresent(filePath, forKey: .filePath) + try? container.encodeIfPresent(failed, forKey: .failed) - try? container.encodeIfPresent(isActive, forKey: .isActive) + try? container.encodeIfPresent(stage, forKey: .stage) - try? container.encodeIfPresent(retry, forKey: .retry) + try? container.encodeIfPresent(failedRecords, forKey: .failedRecords) - try? container.encodeIfPresent(id, forKey: .id) + try? container.encodeIfPresent(succeed, forKey: .succeed) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(total, forKey: .total) + try? container.encodeIfPresent(trackingUrl, forKey: .trackingUrl) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(filePath, forKey: .filePath) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(total, forKey: .total) try? container.encodeIfPresent(cancelled, forKey: .cancelled) - try? container.encodeIfPresent(cancelledRecords, forKey: .cancelledRecords) + try? container.encodeIfPresent(retry, forKey: .retry) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(trackingUrl, forKey: .trackingUrl) + try? container.encodeIfPresent(id, forKey: .id) + + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) } @@ -84444,25 +84444,25 @@ public extension PlatformClient { class BulkAssetResponse: Codable { - public var items: [Items]? - public var page: PageData? + public var items: [Items]? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: [Items]?, page: PageData?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -84470,7 +84470,7 @@ public extension PlatformClient { do { - items = try container.decode([Items].self, forKey: .items) + page = try container.decode(PageData.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84481,7 +84481,7 @@ public extension PlatformClient { do { - page = try container.decode(PageData.self, forKey: .page) + items = try container.decode([Items].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84495,10 +84495,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } @@ -84511,30 +84511,30 @@ public extension PlatformClient { class ProductBulkAssets: Codable { - public var companyId: Int? + public var url: String public var user: [String: Any] - public var url: String + public var companyId: Int? public enum CodingKeys: String, CodingKey { - case companyId = "company_id" + case url = "url" case user = "user" - case url = "url" + case companyId = "company_id" } public init(companyId: Int?, url: String, user: [String: Any]) { - self.companyId = companyId + self.url = url self.user = user - self.url = url + self.companyId = companyId } @@ -84542,6 +84542,14 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) + url = try container.decode(String.self, forKey: .url) + + + + user = try container.decode([String: Any].self, forKey: .user) + + + do { companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { @@ -84552,24 +84560,16 @@ public extension PlatformClient { } - - user = try container.decode([String: Any].self, forKey: .user) - - - - url = try container.decode(String.self, forKey: .url) - - } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(url, forKey: .url) try? container.encodeIfPresent(user, forKey: .user) - try? container.encodeIfPresent(url, forKey: .url) + try? container.encodeIfPresent(companyId, forKey: .companyId) } @@ -84587,11 +84587,11 @@ public extension PlatformClient { public var search: String? - public var size: String? + public var total: Int? public var pageSize: Int? - public var total: Int? + public var size: String? public enum CodingKeys: String, CodingKey { @@ -84600,11 +84600,11 @@ public extension PlatformClient { case search = "search" - case size = "size" + case total = "total" case pageSize = "page_size" - case total = "total" + case size = "size" } @@ -84614,11 +84614,11 @@ public extension PlatformClient { self.search = search - self.size = size + self.total = total self.pageSize = pageSize - self.total = total + self.size = size } @@ -84649,7 +84649,7 @@ public extension PlatformClient { do { - size = try container.decode(String.self, forKey: .size) + total = try container.decode(Int.self, forKey: .total) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84671,7 +84671,7 @@ public extension PlatformClient { do { - total = try container.decode(Int.self, forKey: .total) + size = try container.decode(String.self, forKey: .size) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84689,11 +84689,11 @@ public extension PlatformClient { try? container.encodeIfPresent(search, forKey: .search) - try? container.encodeIfPresent(size, forKey: .size) + try? container.encodeIfPresent(total, forKey: .total) try? container.encodeIfPresent(pageSize, forKey: .pageSize) - try? container.encodeIfPresent(total, forKey: .total) + try? container.encodeIfPresent(size, forKey: .size) } @@ -84709,29 +84709,29 @@ public extension PlatformClient { public var uid: Int? - public var brandUid: Int? - public var itemCode: String? + public var brandUid: Int? + public enum CodingKeys: String, CodingKey { case uid = "uid" - case brandUid = "brand_uid" - case itemCode = "item_code" + case brandUid = "brand_uid" + } public init(brandUid: Int?, itemCode: String?, uid: Int?) { self.uid = uid - self.brandUid = brandUid - self.itemCode = itemCode + self.brandUid = brandUid + } required public init(from decoder: Decoder) throws { @@ -84749,91 +84749,19 @@ public extension PlatformClient { - do { - brandUid = try container.decode(Int.self, forKey: .brandUid) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - do { itemCode = try container.decode(String.self, forKey: .itemCode) } 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(uid, forKey: .uid) - - try? container.encodeIfPresent(brandUid, forKey: .brandUid) - - try? container.encodeIfPresent(itemCode, forKey: .itemCode) - - } - - } - - /* - Model: GTIN - Used By: Catalog - */ - - class GTIN: Codable { - - - public var gtinValue: String - - public var gtinType: String - - public var primary: Bool? - - - public enum CodingKeys: String, CodingKey { - - case gtinValue = "gtin_value" - - case gtinType = "gtin_type" - - case primary = "primary" - - } - - public init(gtinType: String, gtinValue: String, primary: Bool?) { - - self.gtinValue = gtinValue - - self.gtinType = gtinType - - self.primary = primary - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - gtinValue = try container.decode(String.self, forKey: .gtinValue) - - - - gtinType = try container.decode(String.self, forKey: .gtinType) - + } catch { + + } + do { - primary = try container.decode(Bool.self, forKey: .primary) + brandUid = try container.decode(Int.self, forKey: .brandUid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -84847,11 +84775,11 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(gtinValue, forKey: .gtinValue) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(gtinType, forKey: .gtinType) + try? container.encodeIfPresent(itemCode, forKey: .itemCode) - try? container.encodeIfPresent(primary, forKey: .primary) + try? container.encodeIfPresent(brandUid, forKey: .brandUid) } @@ -85012,115 +84940,187 @@ public extension PlatformClient { } /* - Model: InvSize + Model: GTIN Used By: Catalog */ - class InvSize: Codable { + class GTIN: Codable { - public var identifiers: [GTIN] + public var gtinValue: String - public var itemLength: Double? + public var gtinType: String - public var storeCode: String + public var primary: Bool? - public var itemWeight: Double? + + public enum CodingKeys: String, CodingKey { + + case gtinValue = "gtin_value" + + case gtinType = "gtin_type" + + case primary = "primary" + + } + + public init(gtinType: String, gtinValue: String, primary: Bool?) { + + self.gtinValue = gtinValue + + self.gtinType = gtinType + + self.primary = primary + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + gtinValue = try container.decode(String.self, forKey: .gtinValue) + + + + gtinType = try container.decode(String.self, forKey: .gtinType) + + + + do { + primary = try container.decode(Bool.self, forKey: .primary) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + } - public var currency: String + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(gtinValue, forKey: .gtinValue) + + try? container.encodeIfPresent(gtinType, forKey: .gtinType) + + try? container.encodeIfPresent(primary, forKey: .primary) + + } - public var priceEffective: Double + } + + /* + Model: InvSize + Used By: Catalog + */ + + class InvSize: Codable { - public var size: String public var set: InventorySet? + public var identifiers: [GTIN] + + public var priceEffective: Double + public var itemDimensionsUnitOfMeasure: String? + public var itemHeight: Double? + + public var itemLength: Double? + + public var itemWidth: Double? + public var itemWeightUnitOfMeasure: String? - public var itemHeight: Double? + public var priceTransfer: Double? public var quantity: Int - public var price: Double + public var storeCode: String - public var priceTransfer: Double? + public var price: Double public var isSet: Bool? - public var itemWidth: Double? + public var currency: String + + public var size: String + + public var itemWeight: Double? public enum CodingKeys: String, CodingKey { - case identifiers = "identifiers" - - case itemLength = "item_length" - - case storeCode = "store_code" - - case itemWeight = "item_weight" + case set = "set" - case currency = "currency" + case identifiers = "identifiers" case priceEffective = "price_effective" - case size = "size" + case itemDimensionsUnitOfMeasure = "item_dimensions_unit_of_measure" - case set = "set" + case itemHeight = "item_height" - case itemDimensionsUnitOfMeasure = "item_dimensions_unit_of_measure" + case itemLength = "item_length" + + case itemWidth = "item_width" case itemWeightUnitOfMeasure = "item_weight_unit_of_measure" - case itemHeight = "item_height" + case priceTransfer = "price_transfer" case quantity = "quantity" - case price = "price" + case storeCode = "store_code" - case priceTransfer = "price_transfer" + case price = "price" case isSet = "is_set" - case itemWidth = "item_width" + case currency = "currency" + + case size = "size" + + case itemWeight = "item_weight" } public init(currency: String, identifiers: [GTIN], isSet: Bool?, itemDimensionsUnitOfMeasure: String?, itemHeight: Double?, itemLength: Double?, itemWeight: Double?, itemWeightUnitOfMeasure: String?, itemWidth: Double?, price: Double, priceEffective: Double, priceTransfer: Double?, quantity: Int, set: InventorySet?, size: String, storeCode: String) { - self.identifiers = identifiers - - self.itemLength = itemLength - - self.storeCode = storeCode - - self.itemWeight = itemWeight + self.set = set - self.currency = currency + self.identifiers = identifiers self.priceEffective = priceEffective - self.size = size + self.itemDimensionsUnitOfMeasure = itemDimensionsUnitOfMeasure - self.set = set + self.itemHeight = itemHeight - self.itemDimensionsUnitOfMeasure = itemDimensionsUnitOfMeasure + self.itemLength = itemLength + + self.itemWidth = itemWidth self.itemWeightUnitOfMeasure = itemWeightUnitOfMeasure - self.itemHeight = itemHeight + self.priceTransfer = priceTransfer self.quantity = quantity - self.price = price + self.storeCode = storeCode - self.priceTransfer = priceTransfer + self.price = price self.isSet = isSet - self.itemWidth = itemWidth + self.currency = currency + + self.size = size + + self.itemWeight = itemWeight } @@ -85128,12 +85128,8 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - identifiers = try container.decode([GTIN].self, forKey: .identifiers) - - - do { - itemLength = try container.decode(Double.self, forKey: .itemLength) + set = try container.decode(InventorySet.self, forKey: .set) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85143,12 +85139,16 @@ public extension PlatformClient { - storeCode = try container.decode(String.self, forKey: .storeCode) + identifiers = try container.decode([GTIN].self, forKey: .identifiers) + + + + priceEffective = try container.decode(Double.self, forKey: .priceEffective) do { - itemWeight = try container.decode(Double.self, forKey: .itemWeight) + itemDimensionsUnitOfMeasure = try container.decode(String.self, forKey: .itemDimensionsUnitOfMeasure) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85158,20 +85158,19 @@ public extension PlatformClient { - currency = try container.decode(String.self, forKey: .currency) - - - - priceEffective = try container.decode(Double.self, forKey: .priceEffective) - - - - size = try container.decode(String.self, forKey: .size) - + do { + itemHeight = try container.decode(Double.self, forKey: .itemHeight) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + do { - set = try container.decode(InventorySet.self, forKey: .set) + itemLength = try container.decode(Double.self, forKey: .itemLength) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85182,7 +85181,7 @@ public extension PlatformClient { do { - itemDimensionsUnitOfMeasure = try container.decode(String.self, forKey: .itemDimensionsUnitOfMeasure) + itemWidth = try container.decode(Double.self, forKey: .itemWidth) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85204,7 +85203,7 @@ public extension PlatformClient { do { - itemHeight = try container.decode(Double.self, forKey: .itemHeight) + priceTransfer = try container.decode(Double.self, forKey: .priceTransfer) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85218,19 +85217,12 @@ public extension PlatformClient { - price = try container.decode(Double.self, forKey: .price) + storeCode = try container.decode(String.self, forKey: .storeCode) - do { - priceTransfer = try container.decode(Double.self, forKey: .priceTransfer) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + price = try container.decode(Double.self, forKey: .price) + do { @@ -85244,8 +85236,16 @@ public extension PlatformClient { + currency = try container.decode(String.self, forKey: .currency) + + + + size = try container.decode(String.self, forKey: .size) + + + do { - itemWidth = try container.decode(Double.self, forKey: .itemWidth) + itemWeight = try container.decode(Double.self, forKey: .itemWeight) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85259,37 +85259,37 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(identifiers, forKey: .identifiers) - - try? container.encodeIfPresent(itemLength, forKey: .itemLength) - - try? container.encodeIfPresent(storeCode, forKey: .storeCode) - - try? container.encodeIfPresent(itemWeight, forKey: .itemWeight) + try? container.encodeIfPresent(set, forKey: .set) - try? container.encodeIfPresent(currency, forKey: .currency) + try? container.encodeIfPresent(identifiers, forKey: .identifiers) try? container.encodeIfPresent(priceEffective, forKey: .priceEffective) - try? container.encodeIfPresent(size, forKey: .size) + try? container.encodeIfPresent(itemDimensionsUnitOfMeasure, forKey: .itemDimensionsUnitOfMeasure) - try? container.encodeIfPresent(set, forKey: .set) + try? container.encodeIfPresent(itemHeight, forKey: .itemHeight) - try? container.encodeIfPresent(itemDimensionsUnitOfMeasure, forKey: .itemDimensionsUnitOfMeasure) + try? container.encodeIfPresent(itemLength, forKey: .itemLength) + + try? container.encodeIfPresent(itemWidth, forKey: .itemWidth) try? container.encodeIfPresent(itemWeightUnitOfMeasure, forKey: .itemWeightUnitOfMeasure) - try? container.encodeIfPresent(itemHeight, forKey: .itemHeight) + try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer) try? container.encodeIfPresent(quantity, forKey: .quantity) - try? container.encodeIfPresent(price, forKey: .price) + try? container.encodeIfPresent(storeCode, forKey: .storeCode) - try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer) + try? container.encodeIfPresent(price, forKey: .price) try? container.encodeIfPresent(isSet, forKey: .isSet) - try? container.encodeIfPresent(itemWidth, forKey: .itemWidth) + try? container.encodeIfPresent(currency, forKey: .currency) + + try? container.encodeIfPresent(size, forKey: .size) + + try? container.encodeIfPresent(itemWeight, forKey: .itemWeight) } @@ -85305,29 +85305,29 @@ public extension PlatformClient { public var item: ItemQuery - public var companyId: Int - public var sizes: [InvSize] + public var companyId: Int + public enum CodingKeys: String, CodingKey { case item = "item" - case companyId = "company_id" - case sizes = "sizes" + case companyId = "company_id" + } public init(companyId: Int, item: ItemQuery, sizes: [InvSize]) { self.item = item - self.companyId = companyId - self.sizes = sizes + self.companyId = companyId + } required public init(from decoder: Decoder) throws { @@ -85338,11 +85338,11 @@ public extension PlatformClient { - companyId = try container.decode(Int.self, forKey: .companyId) + sizes = try container.decode([InvSize].self, forKey: .sizes) - sizes = try container.decode([InvSize].self, forKey: .sizes) + companyId = try container.decode(Int.self, forKey: .companyId) } @@ -85352,10 +85352,10 @@ public extension PlatformClient { try? container.encodeIfPresent(item, forKey: .item) - try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(sizes, forKey: .sizes) + try? container.encodeIfPresent(companyId, forKey: .companyId) + } } @@ -85370,42 +85370,42 @@ public extension PlatformClient { public var pageNo: Int? - public var endDate: String? + public var customTemplateTag: String? - public var search: String? + public var stage: String? public var startDate: String? - public var templateTag: String? + public var endDate: String? - public var pageSize: Int? + public var search: String? - public var customTemplateTag: String? + public var templateTag: String? public var total: Int? - public var stage: String? + public var pageSize: Int? public enum CodingKeys: String, CodingKey { case pageNo = "page_no" - case endDate = "end_date" + case customTemplateTag = "custom_template_tag" - case search = "search" + case stage = "stage" case startDate = "start_date" - case templateTag = "template_tag" + case endDate = "end_date" - case pageSize = "page_size" + case search = "search" - case customTemplateTag = "custom_template_tag" + case templateTag = "template_tag" case total = "total" - case stage = "stage" + case pageSize = "page_size" } @@ -85413,21 +85413,21 @@ public extension PlatformClient { self.pageNo = pageNo - self.endDate = endDate + self.customTemplateTag = customTemplateTag - self.search = search + self.stage = stage self.startDate = startDate - self.templateTag = templateTag + self.endDate = endDate - self.pageSize = pageSize + self.search = search - self.customTemplateTag = customTemplateTag + self.templateTag = templateTag self.total = total - self.stage = stage + self.pageSize = pageSize } @@ -85447,7 +85447,7 @@ public extension PlatformClient { do { - endDate = try container.decode(String.self, forKey: .endDate) + customTemplateTag = try container.decode(String.self, forKey: .customTemplateTag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85458,7 +85458,7 @@ public extension PlatformClient { do { - search = try container.decode(String.self, forKey: .search) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85480,7 +85480,7 @@ public extension PlatformClient { do { - templateTag = try container.decode(String.self, forKey: .templateTag) + endDate = try container.decode(String.self, forKey: .endDate) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85491,7 +85491,7 @@ public extension PlatformClient { do { - pageSize = try container.decode(Int.self, forKey: .pageSize) + search = try container.decode(String.self, forKey: .search) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85502,7 +85502,7 @@ public extension PlatformClient { do { - customTemplateTag = try container.decode(String.self, forKey: .customTemplateTag) + templateTag = try container.decode(String.self, forKey: .templateTag) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85524,7 +85524,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + pageSize = try container.decode(Int.self, forKey: .pageSize) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85540,21 +85540,21 @@ public extension PlatformClient { try? container.encodeIfPresent(pageNo, forKey: .pageNo) - try? container.encodeIfPresent(endDate, forKey: .endDate) + try? container.encodeIfPresent(customTemplateTag, forKey: .customTemplateTag) - try? container.encodeIfPresent(search, forKey: .search) + try? container.encodeIfPresent(stage, forKey: .stage) try? container.encodeIfPresent(startDate, forKey: .startDate) - try? container.encodeIfPresent(templateTag, forKey: .templateTag) + try? container.encodeIfPresent(endDate, forKey: .endDate) - try? container.encodeIfPresent(pageSize, forKey: .pageSize) + try? container.encodeIfPresent(search, forKey: .search) - try? container.encodeIfPresent(customTemplateTag, forKey: .customTemplateTag) + try? container.encodeIfPresent(templateTag, forKey: .templateTag) try? container.encodeIfPresent(total, forKey: .total) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(pageSize, forKey: .pageSize) } @@ -85616,114 +85616,114 @@ public extension PlatformClient { class Size1: Codable { - public var identifiers: [[String: Any]]? - - public var sellerIdentifier: String - - public var itemLength: Double? - - public var storeCode: String - - public var itemWeight: Double? + public var set: InventorySet? - public var currency: String + public var identifiers: [[String: Any]]? public var priceEffective: Double - public var size: String? + public var itemDimensionsUnitOfMeasure: String? - public var set: InventorySet? + public var itemHeight: Double? - public var itemDimensionsUnitOfMeasure: String? + public var itemLength: Double? + + public var itemWidth: Double? public var itemWeightUnitOfMeasure: String? - public var itemHeight: Double? + public var priceTransfer: Double? public var quantity: Int - public var price: Double + public var storeCode: String - public var priceTransfer: Double? + public var price: Double public var isSet: Bool? - public var itemWidth: Double? + public var currency: String + + public var sellerIdentifier: String + + public var size: String? + + public var itemWeight: Double? public enum CodingKeys: String, CodingKey { - case identifiers = "identifiers" - - case sellerIdentifier = "seller_identifier" - - case itemLength = "item_length" - - case storeCode = "store_code" - - case itemWeight = "item_weight" + case set = "set" - case currency = "currency" + case identifiers = "identifiers" case priceEffective = "price_effective" - case size = "size" + case itemDimensionsUnitOfMeasure = "item_dimensions_unit_of_measure" - case set = "set" + case itemHeight = "item_height" - case itemDimensionsUnitOfMeasure = "item_dimensions_unit_of_measure" + case itemLength = "item_length" + + case itemWidth = "item_width" case itemWeightUnitOfMeasure = "item_weight_unit_of_measure" - case itemHeight = "item_height" + case priceTransfer = "price_transfer" case quantity = "quantity" - case price = "price" + case storeCode = "store_code" - case priceTransfer = "price_transfer" + case price = "price" case isSet = "is_set" - case itemWidth = "item_width" - - } - - public init(currency: String, identifiers: [[String: Any]]?, isSet: Bool?, itemDimensionsUnitOfMeasure: String?, itemHeight: Double?, itemLength: Double?, itemWeight: Double?, itemWeightUnitOfMeasure: String?, itemWidth: Double?, price: Double, priceEffective: Double, priceTransfer: Double?, quantity: Int, sellerIdentifier: String, set: InventorySet?, size: String?, storeCode: String) { + case currency = "currency" - self.identifiers = identifiers + case sellerIdentifier = "seller_identifier" - self.sellerIdentifier = sellerIdentifier + case size = "size" - self.itemLength = itemLength + case itemWeight = "item_weight" - self.storeCode = storeCode + } + + public init(currency: String, identifiers: [[String: Any]]?, isSet: Bool?, itemDimensionsUnitOfMeasure: String?, itemHeight: Double?, itemLength: Double?, itemWeight: Double?, itemWeightUnitOfMeasure: String?, itemWidth: Double?, price: Double, priceEffective: Double, priceTransfer: Double?, quantity: Int, sellerIdentifier: String, set: InventorySet?, size: String?, storeCode: String) { - self.itemWeight = itemWeight + self.set = set - self.currency = currency + self.identifiers = identifiers self.priceEffective = priceEffective - self.size = size + self.itemDimensionsUnitOfMeasure = itemDimensionsUnitOfMeasure - self.set = set + self.itemHeight = itemHeight - self.itemDimensionsUnitOfMeasure = itemDimensionsUnitOfMeasure + self.itemLength = itemLength + + self.itemWidth = itemWidth self.itemWeightUnitOfMeasure = itemWeightUnitOfMeasure - self.itemHeight = itemHeight + self.priceTransfer = priceTransfer self.quantity = quantity - self.price = price + self.storeCode = storeCode - self.priceTransfer = priceTransfer + self.price = price self.isSet = isSet - self.itemWidth = itemWidth + self.currency = currency + + self.sellerIdentifier = sellerIdentifier + + self.size = size + + self.itemWeight = itemWeight } @@ -85732,7 +85732,7 @@ public extension PlatformClient { do { - identifiers = try container.decode([[String: Any]].self, forKey: .identifiers) + set = try container.decode(InventorySet.self, forKey: .set) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85742,12 +85742,8 @@ public extension PlatformClient { - sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier) - - - do { - itemLength = try container.decode(Double.self, forKey: .itemLength) + identifiers = try container.decode([[String: Any]].self, forKey: .identifiers) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85757,12 +85753,12 @@ public extension PlatformClient { - storeCode = try container.decode(String.self, forKey: .storeCode) + priceEffective = try container.decode(Double.self, forKey: .priceEffective) do { - itemWeight = try container.decode(Double.self, forKey: .itemWeight) + itemDimensionsUnitOfMeasure = try container.decode(String.self, forKey: .itemDimensionsUnitOfMeasure) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85772,16 +85768,8 @@ public extension PlatformClient { - currency = try container.decode(String.self, forKey: .currency) - - - - priceEffective = try container.decode(Double.self, forKey: .priceEffective) - - - do { - size = try container.decode(String.self, forKey: .size) + itemHeight = try container.decode(Double.self, forKey: .itemHeight) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85792,7 +85780,7 @@ public extension PlatformClient { do { - set = try container.decode(InventorySet.self, forKey: .set) + itemLength = try container.decode(Double.self, forKey: .itemLength) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85803,7 +85791,7 @@ public extension PlatformClient { do { - itemDimensionsUnitOfMeasure = try container.decode(String.self, forKey: .itemDimensionsUnitOfMeasure) + itemWidth = try container.decode(Double.self, forKey: .itemWidth) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85825,7 +85813,7 @@ public extension PlatformClient { do { - itemHeight = try container.decode(Double.self, forKey: .itemHeight) + priceTransfer = try container.decode(Double.self, forKey: .priceTransfer) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85839,12 +85827,16 @@ public extension PlatformClient { + storeCode = try container.decode(String.self, forKey: .storeCode) + + + price = try container.decode(Double.self, forKey: .price) do { - priceTransfer = try container.decode(Double.self, forKey: .priceTransfer) + isSet = try container.decode(Bool.self, forKey: .isSet) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85854,8 +85846,16 @@ public extension PlatformClient { + currency = try container.decode(String.self, forKey: .currency) + + + + sellerIdentifier = try container.decode(String.self, forKey: .sellerIdentifier) + + + do { - isSet = try container.decode(Bool.self, forKey: .isSet) + size = try container.decode(String.self, forKey: .size) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85866,7 +85866,7 @@ public extension PlatformClient { do { - itemWidth = try container.decode(Double.self, forKey: .itemWidth) + itemWeight = try container.decode(Double.self, forKey: .itemWeight) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -85880,39 +85880,39 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(identifiers, forKey: .identifiers) - - try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier) - - try? container.encodeIfPresent(itemLength, forKey: .itemLength) - - try? container.encodeIfPresent(storeCode, forKey: .storeCode) - - try? container.encodeIfPresent(itemWeight, forKey: .itemWeight) + try? container.encodeIfPresent(set, forKey: .set) - try? container.encodeIfPresent(currency, forKey: .currency) + try? container.encodeIfPresent(identifiers, forKey: .identifiers) try? container.encodeIfPresent(priceEffective, forKey: .priceEffective) - try? container.encodeIfPresent(size, forKey: .size) + try? container.encodeIfPresent(itemDimensionsUnitOfMeasure, forKey: .itemDimensionsUnitOfMeasure) - try? container.encodeIfPresent(set, forKey: .set) + try? container.encodeIfPresent(itemHeight, forKey: .itemHeight) - try? container.encodeIfPresent(itemDimensionsUnitOfMeasure, forKey: .itemDimensionsUnitOfMeasure) + try? container.encodeIfPresent(itemLength, forKey: .itemLength) + + try? container.encodeIfPresent(itemWidth, forKey: .itemWidth) try? container.encodeIfPresent(itemWeightUnitOfMeasure, forKey: .itemWeightUnitOfMeasure) - try? container.encodeIfPresent(itemHeight, forKey: .itemHeight) + try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer) try? container.encodeIfPresent(quantity, forKey: .quantity) - try? container.encodeIfPresent(price, forKey: .price) + try? container.encodeIfPresent(storeCode, forKey: .storeCode) - try? container.encodeIfPresent(priceTransfer, forKey: .priceTransfer) + try? container.encodeIfPresent(price, forKey: .price) try? container.encodeIfPresent(isSet, forKey: .isSet) - try? container.encodeIfPresent(itemWidth, forKey: .itemWidth) + try? container.encodeIfPresent(currency, forKey: .currency) + + try? container.encodeIfPresent(sellerIdentifier, forKey: .sellerIdentifier) + + try? container.encodeIfPresent(size, forKey: .size) + + try? container.encodeIfPresent(itemWeight, forKey: .itemWeight) } @@ -85926,36 +85926,36 @@ public extension PlatformClient { class InventoryBulkRequest: Codable { - public var companyId: Int - public var user: [String: Any]? + public var sizes: [Size1] + public var batchId: String - public var sizes: [Size1] + public var companyId: Int public enum CodingKeys: String, CodingKey { - case companyId = "company_id" - case user = "user" + case sizes = "sizes" + case batchId = "batch_id" - case sizes = "sizes" + case companyId = "company_id" } public init(batchId: String, companyId: Int, sizes: [Size1], user: [String: Any]?) { - self.companyId = companyId - self.user = user + self.sizes = sizes + self.batchId = batchId - self.sizes = sizes + self.companyId = companyId } @@ -85963,10 +85963,6 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - companyId = try container.decode(Int.self, forKey: .companyId) - - - do { user = try container.decode([String: Any].self, forKey: .user) } catch DecodingError.typeMismatch(let type, let context) { @@ -85978,11 +85974,15 @@ public extension PlatformClient { + sizes = try container.decode([Size1].self, forKey: .sizes) + + + batchId = try container.decode(String.self, forKey: .batchId) - sizes = try container.decode([Size1].self, forKey: .sizes) + companyId = try container.decode(Int.self, forKey: .companyId) } @@ -85990,13 +85990,13 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(user, forKey: .user) + try? container.encodeIfPresent(sizes, forKey: .sizes) + try? container.encodeIfPresent(batchId, forKey: .batchId) - try? container.encodeIfPresent(sizes, forKey: .sizes) + try? container.encodeIfPresent(companyId, forKey: .companyId) } @@ -86010,55 +86010,55 @@ public extension PlatformClient { class InventoryExportJob: Codable { - public var status: String? - public var requestParams: [String: Any]? - public var taskId: String - public var sellerId: Int public var triggerOn: String? - public var completedOn: String? + public var status: String? + + public var taskId: String public var url: String? + public var completedOn: String? + public enum CodingKeys: String, CodingKey { - case status = "status" - case requestParams = "request_params" - case taskId = "task_id" - case sellerId = "seller_id" case triggerOn = "trigger_on" - case completedOn = "completed_on" + case status = "status" + + case taskId = "task_id" case url = "url" + case completedOn = "completed_on" + } public init(completedOn: String?, requestParams: [String: Any]?, sellerId: Int, status: String?, taskId: String, triggerOn: String?, url: String?) { - self.status = status - self.requestParams = requestParams - self.taskId = taskId - self.sellerId = sellerId self.triggerOn = triggerOn - self.completedOn = completedOn + self.status = status + + self.taskId = taskId self.url = url + self.completedOn = completedOn + } required public init(from decoder: Decoder) throws { @@ -86066,7 +86066,7 @@ public extension PlatformClient { do { - status = try container.decode(String.self, forKey: .status) + requestParams = try container.decode([String: Any].self, forKey: .requestParams) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86076,8 +86076,12 @@ public extension PlatformClient { + sellerId = try container.decode(Int.self, forKey: .sellerId) + + + do { - requestParams = try container.decode([String: Any].self, forKey: .requestParams) + triggerOn = try container.decode(String.self, forKey: .triggerOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86087,16 +86091,8 @@ public extension PlatformClient { - taskId = try container.decode(String.self, forKey: .taskId) - - - - sellerId = try container.decode(Int.self, forKey: .sellerId) - - - do { - triggerOn = try container.decode(String.self, forKey: .triggerOn) + status = try container.decode(String.self, forKey: .status) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86106,8 +86102,12 @@ public extension PlatformClient { + taskId = try container.decode(String.self, forKey: .taskId) + + + do { - completedOn = try container.decode(String.self, forKey: .completedOn) + url = try container.decode(String.self, forKey: .url) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86118,7 +86118,7 @@ public extension PlatformClient { do { - url = try container.decode(String.self, forKey: .url) + completedOn = try container.decode(String.self, forKey: .completedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86132,20 +86132,20 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(status, forKey: .status) - try? container.encodeIfPresent(requestParams, forKey: .requestParams) - try? container.encodeIfPresent(taskId, forKey: .taskId) - try? container.encodeIfPresent(sellerId, forKey: .sellerId) try? container.encodeIfPresent(triggerOn, forKey: .triggerOn) - try? container.encodeIfPresent(completedOn, forKey: .completedOn) + try? container.encodeIfPresent(status, forKey: .status) + + try? container.encodeIfPresent(taskId, forKey: .taskId) try? container.encodeIfPresent(url, forKey: .url) + try? container.encodeIfPresent(completedOn, forKey: .completedOn) + } } @@ -86244,25 +86244,25 @@ public extension PlatformClient { class FilerList: Codable { - public var display: String? - public var value: String? + public var display: String? + public enum CodingKeys: String, CodingKey { - case display = "display" - case value = "value" + case display = "display" + } public init(display: String?, value: String?) { - self.display = display - self.value = value + self.display = display + } required public init(from decoder: Decoder) throws { @@ -86270,7 +86270,7 @@ public extension PlatformClient { do { - display = try container.decode(String.self, forKey: .display) + value = try container.decode(String.self, forKey: .value) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86281,7 +86281,7 @@ public extension PlatformClient { do { - value = try container.decode(String.self, forKey: .value) + display = try container.decode(String.self, forKey: .display) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86295,10 +86295,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(display, forKey: .display) - try? container.encodeIfPresent(value, forKey: .value) + try? container.encodeIfPresent(display, forKey: .display) + } } @@ -86370,6 +86370,130 @@ public extension PlatformClient { } + /* + Model: PageResponse + Used By: Catalog + */ + + class PageResponse: Codable { + + + public var hasNext: Bool? + + public var hasPrevious: Bool? + + public var current: String? + + public var itemTotal: Int? + + public var size: Int? + + + public enum CodingKeys: String, CodingKey { + + case hasNext = "has_next" + + case hasPrevious = "has_previous" + + case current = "current" + + case itemTotal = "item_total" + + case size = "size" + + } + + public init(current: String?, hasNext: Bool?, hasPrevious: Bool?, itemTotal: Int?, size: Int?) { + + self.hasNext = hasNext + + self.hasPrevious = hasPrevious + + self.current = current + + self.itemTotal = itemTotal + + self.size = size + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + hasNext = try container.decode(Bool.self, forKey: .hasNext) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + hasPrevious = try container.decode(Bool.self, forKey: .hasPrevious) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + current = try container.decode(String.self, forKey: .current) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + itemTotal = try container.decode(Int.self, forKey: .itemTotal) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + size = try container.decode(Int.self, forKey: .size) + } 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(hasNext, forKey: .hasNext) + + try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious) + + try? container.encodeIfPresent(current, forKey: .current) + + try? container.encodeIfPresent(itemTotal, forKey: .itemTotal) + + try? container.encodeIfPresent(size, forKey: .size) + + } + + } + /* Model: HsnCodesObject Used By: Catalog @@ -86378,78 +86502,78 @@ public extension PlatformClient { class HsnCodesObject: Codable { - public var uid: Int? - - public var companyId: Int? - public var isActive: Bool? - public var tax2: Double? - - public var hsnCode: String? - public var taxOnEsp: Bool? + public var hs2Code: String? + public var taxOnMrp: Bool? - public var tax1: Double? + public var tax2: Double? + + public var uid: Int? public var threshold2: Double? + public var companyId: Int? + + public var hsnCode: String? + public var threshold1: Double? - public var hs2Code: String? + public var tax1: Double? public enum CodingKeys: String, CodingKey { - case uid = "uid" - - case companyId = "company_id" - case isActive = "is_active" - case tax2 = "tax2" - - case hsnCode = "hsn_code" - case taxOnEsp = "tax_on_esp" + case hs2Code = "hs2_code" + case taxOnMrp = "tax_on_mrp" - case tax1 = "tax1" + case tax2 = "tax2" + + case uid = "uid" case threshold2 = "threshold2" + case companyId = "company_id" + + case hsnCode = "hsn_code" + case threshold1 = "threshold1" - case hs2Code = "hs2_code" + case tax1 = "tax1" } public init(companyId: Int?, hs2Code: String?, hsnCode: String?, isActive: Bool?, tax1: Double?, tax2: Double?, taxOnEsp: Bool?, taxOnMrp: Bool?, threshold1: Double?, threshold2: Double?, uid: Int?) { - self.uid = uid - - self.companyId = companyId - self.isActive = isActive - self.tax2 = tax2 - - self.hsnCode = hsnCode - self.taxOnEsp = taxOnEsp + self.hs2Code = hs2Code + self.taxOnMrp = taxOnMrp - self.tax1 = tax1 + self.tax2 = tax2 + + self.uid = uid self.threshold2 = threshold2 + self.companyId = companyId + + self.hsnCode = hsnCode + self.threshold1 = threshold1 - self.hs2Code = hs2Code + self.tax1 = tax1 } @@ -86458,7 +86582,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + isActive = try container.decode(Bool.self, forKey: .isActive) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86469,7 +86593,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) + taxOnEsp = try container.decode(Bool.self, forKey: .taxOnEsp) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86480,7 +86604,7 @@ public extension PlatformClient { do { - isActive = try container.decode(Bool.self, forKey: .isActive) + hs2Code = try container.decode(String.self, forKey: .hs2Code) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86491,7 +86615,7 @@ public extension PlatformClient { do { - tax2 = try container.decode(Double.self, forKey: .tax2) + taxOnMrp = try container.decode(Bool.self, forKey: .taxOnMrp) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86502,7 +86626,7 @@ public extension PlatformClient { do { - hsnCode = try container.decode(String.self, forKey: .hsnCode) + tax2 = try container.decode(Double.self, forKey: .tax2) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86513,7 +86637,7 @@ public extension PlatformClient { do { - taxOnEsp = try container.decode(Bool.self, forKey: .taxOnEsp) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86524,7 +86648,7 @@ public extension PlatformClient { do { - taxOnMrp = try container.decode(Bool.self, forKey: .taxOnMrp) + threshold2 = try container.decode(Double.self, forKey: .threshold2) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86535,7 +86659,7 @@ public extension PlatformClient { do { - tax1 = try container.decode(Double.self, forKey: .tax1) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86546,7 +86670,7 @@ public extension PlatformClient { do { - threshold2 = try container.decode(Double.self, forKey: .threshold2) + hsnCode = try container.decode(String.self, forKey: .hsnCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86568,7 +86692,7 @@ public extension PlatformClient { do { - hs2Code = try container.decode(String.self, forKey: .hs2Code) + tax1 = try container.decode(Double.self, forKey: .tax1) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86582,151 +86706,27 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(uid, forKey: .uid) - - try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(tax2, forKey: .tax2) - - try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) - try? container.encodeIfPresent(taxOnEsp, forKey: .taxOnEsp) - try? container.encodeIfPresent(taxOnMrp, forKey: .taxOnMrp) - - try? container.encodeIfPresent(tax1, forKey: .tax1) - - try? container.encodeIfPresent(threshold2, forKey: .threshold2) - - try? container.encodeIfPresent(threshold1, forKey: .threshold1) - try? container.encodeIfPresent(hs2Code, forKey: .hs2Code) - } - - } - - /* - Model: PageResponse - Used By: Catalog - */ - - class PageResponse: Codable { - - - public var current: String? - - public var hasNext: Bool? - - public var hasPrevious: Bool? - - public var itemTotal: Int? - - public var size: Int? - - - public enum CodingKeys: String, CodingKey { - - case current = "current" - - case hasNext = "has_next" - - case hasPrevious = "has_previous" - - case itemTotal = "item_total" - - case size = "size" - - } - - public init(current: String?, hasNext: Bool?, hasPrevious: Bool?, itemTotal: Int?, size: Int?) { - - self.current = current - - self.hasNext = hasNext - - self.hasPrevious = hasPrevious - - self.itemTotal = itemTotal - - self.size = size - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - do { - current = try container.decode(String.self, forKey: .current) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - hasNext = try container.decode(Bool.self, forKey: .hasNext) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - hasPrevious = try container.decode(Bool.self, forKey: .hasPrevious) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - itemTotal = try container.decode(Int.self, forKey: .itemTotal) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - + try? container.encodeIfPresent(taxOnMrp, forKey: .taxOnMrp) - do { - size = try container.decode(Int.self, forKey: .size) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + try? container.encodeIfPresent(tax2, forKey: .tax2) - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(current, forKey: .current) + try? container.encodeIfPresent(threshold2, forKey: .threshold2) - try? container.encodeIfPresent(hasNext, forKey: .hasNext) + try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(hasPrevious, forKey: .hasPrevious) + try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) - try? container.encodeIfPresent(itemTotal, forKey: .itemTotal) + try? container.encodeIfPresent(threshold1, forKey: .threshold1) - try? container.encodeIfPresent(size, forKey: .size) + try? container.encodeIfPresent(tax1, forKey: .tax1) } @@ -86740,25 +86740,25 @@ public extension PlatformClient { class HsnCodesListingResponse: Codable { - public var items: [HsnCodesObject]? - public var page: PageResponse? + public var items: [HsnCodesObject]? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: [HsnCodesObject]?, page: PageResponse?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -86766,7 +86766,7 @@ public extension PlatformClient { do { - items = try container.decode([HsnCodesObject].self, forKey: .items) + page = try container.decode(PageResponse.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86777,7 +86777,7 @@ public extension PlatformClient { do { - page = try container.decode(PageResponse.self, forKey: .page) + items = try container.decode([HsnCodesObject].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86791,10 +86791,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } @@ -86807,78 +86807,78 @@ public extension PlatformClient { class HsnUpsert: Codable { - public var uid: Int? + public var isActive: Bool - public var companyId: Int + public var taxOnEsp: Bool? - public var isActive: Bool + public var hs2Code: String - public var tax2: Double? + public var taxOnMrp: Bool - public var hsnCode: String + public var tax2: Double? - public var taxOnEsp: Bool? + public var uid: Int? - public var taxOnMrp: Bool + public var threshold2: Double? - public var tax1: Double + public var companyId: Int - public var threshold2: Double? + public var hsnCode: String public var threshold1: Double - public var hs2Code: String + public var tax1: Double public enum CodingKeys: String, CodingKey { - case uid = "uid" - - case companyId = "company_id" - case isActive = "is_active" - case tax2 = "tax2" - - case hsnCode = "hsn_code" - case taxOnEsp = "tax_on_esp" + case hs2Code = "hs2_code" + case taxOnMrp = "tax_on_mrp" - case tax1 = "tax1" + case tax2 = "tax2" + + case uid = "uid" case threshold2 = "threshold2" + case companyId = "company_id" + + case hsnCode = "hsn_code" + case threshold1 = "threshold1" - case hs2Code = "hs2_code" + case tax1 = "tax1" } public init(companyId: Int, hs2Code: String, hsnCode: String, isActive: Bool, tax1: Double, tax2: Double?, taxOnEsp: Bool?, taxOnMrp: Bool, threshold1: Double, threshold2: Double?, uid: Int?) { - self.uid = uid - - self.companyId = companyId - self.isActive = isActive - self.tax2 = tax2 - - self.hsnCode = hsnCode - self.taxOnEsp = taxOnEsp + self.hs2Code = hs2Code + self.taxOnMrp = taxOnMrp - self.tax1 = tax1 + self.tax2 = tax2 + + self.uid = uid self.threshold2 = threshold2 + self.companyId = companyId + + self.hsnCode = hsnCode + self.threshold1 = threshold1 - self.hs2Code = hs2Code + self.tax1 = tax1 } @@ -86886,8 +86886,12 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) + isActive = try container.decode(Bool.self, forKey: .isActive) + + + do { - uid = try container.decode(Int.self, forKey: .uid) + taxOnEsp = try container.decode(Bool.self, forKey: .taxOnEsp) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86897,11 +86901,11 @@ public extension PlatformClient { - companyId = try container.decode(Int.self, forKey: .companyId) + hs2Code = try container.decode(String.self, forKey: .hs2Code) - isActive = try container.decode(Bool.self, forKey: .isActive) + taxOnMrp = try container.decode(Bool.self, forKey: .taxOnMrp) @@ -86916,12 +86920,8 @@ public extension PlatformClient { - hsnCode = try container.decode(String.self, forKey: .hsnCode) - - - do { - taxOnEsp = try container.decode(Bool.self, forKey: .taxOnEsp) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -86931,14 +86931,6 @@ public extension PlatformClient { - taxOnMrp = try container.decode(Bool.self, forKey: .taxOnMrp) - - - - tax1 = try container.decode(Double.self, forKey: .tax1) - - - do { threshold2 = try container.decode(Double.self, forKey: .threshold2) } catch DecodingError.typeMismatch(let type, let context) { @@ -86950,11 +86942,19 @@ public extension PlatformClient { + companyId = try container.decode(Int.self, forKey: .companyId) + + + + hsnCode = try container.decode(String.self, forKey: .hsnCode) + + + threshold1 = try container.decode(Double.self, forKey: .threshold1) - hs2Code = try container.decode(String.self, forKey: .hs2Code) + tax1 = try container.decode(Double.self, forKey: .tax1) } @@ -86962,27 +86962,27 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(uid, forKey: .uid) - - try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(isActive, forKey: .isActive) - try? container.encodeIfPresent(tax2, forKey: .tax2) - - try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) - try? container.encodeIfPresent(taxOnEsp, forKey: .taxOnEsp) + try? container.encodeIfPresent(hs2Code, forKey: .hs2Code) + try? container.encodeIfPresent(taxOnMrp, forKey: .taxOnMrp) - try? container.encodeIfPresent(tax1, forKey: .tax1) + try? container.encodeIfPresent(tax2, forKey: .tax2) + + try? container.encodeIfPresent(uid, forKey: .uid) try? container.encodeIfPresent(threshold2, forKey: .threshold2) + try? container.encodeIfPresent(companyId, forKey: .companyId) + + try? container.encodeIfPresent(hsnCode, forKey: .hsnCode) + try? container.encodeIfPresent(threshold1, forKey: .threshold1) - try? container.encodeIfPresent(hs2Code, forKey: .hs2Code) + try? container.encodeIfPresent(tax1, forKey: .tax1) } @@ -87104,55 +87104,211 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - do { - success = try container.decode(Bool.self, forKey: .success) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + do { + success = try container.decode(Bool.self, forKey: .success) + } 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(success, forKey: .success) + + } + + } + + + + /* + Model: Document + Used By: CompanyProfile + */ + + class Document: Codable { + + + public var legalName: String + + public var url: String? + + public var verified: Bool? + + public var type: String + + public var value: String + + + public enum CodingKeys: String, CodingKey { + + case legalName = "legal_name" + + case url = "url" + + case verified = "verified" + + case type = "type" + + case value = "value" + + } + + public init(legalName: String, type: String, url: String?, value: String, verified: Bool?) { + + self.legalName = legalName + + self.url = url + + self.verified = verified + + self.type = type + + self.value = value + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + legalName = try container.decode(String.self, forKey: .legalName) + + + + do { + url = try container.decode(String.self, forKey: .url) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + verified = try container.decode(Bool.self, forKey: .verified) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + type = try container.decode(String.self, forKey: .type) + + + + value = try container.decode(String.self, forKey: .value) + + + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(legalName, forKey: .legalName) + + try? container.encodeIfPresent(url, forKey: .url) + + try? container.encodeIfPresent(verified, forKey: .verified) + + try? container.encodeIfPresent(type, forKey: .type) + + try? container.encodeIfPresent(value, forKey: .value) + + } + + } + + /* + Model: SellerPhoneNumber + Used By: CompanyProfile + */ + + class SellerPhoneNumber: Codable { + + + public var countryCode: Int + + public var number: String + + + public enum CodingKeys: String, CodingKey { + + case countryCode = "country_code" + + case number = "number" + + } + + public init(countryCode: Int, number: String) { + + self.countryCode = countryCode + + self.number = number + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + countryCode = try container.decode(Int.self, forKey: .countryCode) + + + + number = try container.decode(String.self, forKey: .number) + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(success, forKey: .success) + try? container.encodeIfPresent(countryCode, forKey: .countryCode) + + try? container.encodeIfPresent(number, forKey: .number) } } - - /* - Model: BusinessCountryInfo + Model: ContactDetails Used By: CompanyProfile */ - class BusinessCountryInfo: Codable { + class ContactDetails: Codable { - public var countryCode: String? + public var emails: [String]? - public var country: String? + public var phone: [SellerPhoneNumber]? public enum CodingKeys: String, CodingKey { - case countryCode = "country_code" + case emails = "emails" - case country = "country" + case phone = "phone" } - public init(country: String?, countryCode: String?) { + public init(emails: [String]?, phone: [SellerPhoneNumber]?) { - self.countryCode = countryCode + self.emails = emails - self.country = country + self.phone = phone } @@ -87161,7 +87317,7 @@ public extension PlatformClient { do { - countryCode = try container.decode(String.self, forKey: .countryCode) + emails = try container.decode([String].self, forKey: .emails) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87172,7 +87328,7 @@ public extension PlatformClient { do { - country = try container.decode(String.self, forKey: .country) + phone = try container.decode([SellerPhoneNumber].self, forKey: .phone) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87186,9 +87342,9 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(countryCode, forKey: .countryCode) + try? container.encodeIfPresent(emails, forKey: .emails) - try? container.encodeIfPresent(country, forKey: .country) + try? container.encodeIfPresent(phone, forKey: .phone) } @@ -87202,78 +87358,78 @@ public extension PlatformClient { class GetAddressSerializer: Codable { - public var addressType: String? + public var city: String? + + public var country: String? public var address2: String? + public var countryCode: String? + public var address1: String? - public var countryCode: String? + public var state: String? public var latitude: Double? - public var longitude: Double? + public var pincode: Int? - public var city: String? + public var addressType: String? public var landmark: String? - public var pincode: Int? - - public var state: String? - - public var country: String? + public var longitude: Double? public enum CodingKeys: String, CodingKey { - case addressType = "address_type" + case city = "city" + + case country = "country" case address2 = "address2" + case countryCode = "country_code" + case address1 = "address1" - case countryCode = "country_code" + case state = "state" case latitude = "latitude" - case longitude = "longitude" + case pincode = "pincode" - case city = "city" + case addressType = "address_type" case landmark = "landmark" - case pincode = "pincode" - - case state = "state" - - case country = "country" + case longitude = "longitude" } public init(address1: String?, address2: String?, addressType: String?, city: String?, country: String?, countryCode: String?, landmark: String?, latitude: Double?, longitude: Double?, pincode: Int?, state: String?) { - self.addressType = addressType + self.city = city + + self.country = country self.address2 = address2 + self.countryCode = countryCode + self.address1 = address1 - self.countryCode = countryCode + self.state = state self.latitude = latitude - self.longitude = longitude + self.pincode = pincode - self.city = city + self.addressType = addressType self.landmark = landmark - self.pincode = pincode - - self.state = state - - self.country = country + self.longitude = longitude } @@ -87282,7 +87438,7 @@ public extension PlatformClient { do { - addressType = try container.decode(String.self, forKey: .addressType) + city = try container.decode(String.self, forKey: .city) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87293,7 +87449,7 @@ public extension PlatformClient { do { - address2 = try container.decode(String.self, forKey: .address2) + country = try container.decode(String.self, forKey: .country) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87304,7 +87460,7 @@ public extension PlatformClient { do { - address1 = try container.decode(String.self, forKey: .address1) + address2 = try container.decode(String.self, forKey: .address2) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87326,18 +87482,7 @@ public extension PlatformClient { do { - latitude = try container.decode(Double.self, forKey: .latitude) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - longitude = try container.decode(Double.self, forKey: .longitude) + address1 = try container.decode(String.self, forKey: .address1) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87348,7 +87493,7 @@ public extension PlatformClient { do { - city = try container.decode(String.self, forKey: .city) + state = try container.decode(String.self, forKey: .state) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87359,7 +87504,7 @@ public extension PlatformClient { do { - landmark = try container.decode(String.self, forKey: .landmark) + latitude = try container.decode(Double.self, forKey: .latitude) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87381,18 +87526,7 @@ public extension PlatformClient { do { - state = try container.decode(String.self, forKey: .state) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - country = try container.decode(String.self, forKey: .country) + addressType = try container.decode(String.self, forKey: .addressType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87401,125 +87535,9 @@ public extension PlatformClient { } - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - - try? container.encodeIfPresent(addressType, forKey: .addressType) - - try? container.encodeIfPresent(address2, forKey: .address2) - - try? container.encodeIfPresent(address1, forKey: .address1) - - try? container.encodeIfPresent(countryCode, forKey: .countryCode) - - try? container.encodeIfPresent(latitude, forKey: .latitude) - - try? container.encodeIfPresent(longitude, forKey: .longitude) - - try? container.encodeIfPresent(city, forKey: .city) - - try? container.encodeIfPresent(landmark, forKey: .landmark) - - try? container.encodeIfPresent(pincode, forKey: .pincode) - - try? container.encodeIfPresent(state, forKey: .state) - - try? container.encodeIfPresent(country, forKey: .country) - - } - - } - - /* - Model: SellerPhoneNumber - Used By: CompanyProfile - */ - - class SellerPhoneNumber: Codable { - - - public var number: String - - public var countryCode: Int - - - public enum CodingKeys: String, CodingKey { - - case number = "number" - - case countryCode = "country_code" - - } - - public init(countryCode: Int, number: String) { - - self.number = number - - self.countryCode = countryCode - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - number = try container.decode(String.self, forKey: .number) - - - - countryCode = try container.decode(Int.self, forKey: .countryCode) - - - } - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - - try? container.encodeIfPresent(number, forKey: .number) - - try? container.encodeIfPresent(countryCode, forKey: .countryCode) - - } - - } - - /* - Model: ContactDetails - Used By: CompanyProfile - */ - - class ContactDetails: Codable { - - - public var phone: [SellerPhoneNumber]? - - public var emails: [String]? - - - public enum CodingKeys: String, CodingKey { - - case phone = "phone" - - case emails = "emails" - - } - - public init(emails: [String]?, phone: [SellerPhoneNumber]?) { - - self.phone = phone - - self.emails = emails - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - do { - phone = try container.decode([SellerPhoneNumber].self, forKey: .phone) + landmark = try container.decode(String.self, forKey: .landmark) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87530,7 +87548,7 @@ public extension PlatformClient { do { - emails = try container.decode([String].self, forKey: .emails) + longitude = try container.decode(Double.self, forKey: .longitude) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87544,59 +87562,53 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(phone, forKey: .phone) + try? container.encodeIfPresent(city, forKey: .city) - try? container.encodeIfPresent(emails, forKey: .emails) + try? container.encodeIfPresent(country, forKey: .country) + + try? container.encodeIfPresent(address2, forKey: .address2) + + try? container.encodeIfPresent(countryCode, forKey: .countryCode) + + try? container.encodeIfPresent(address1, forKey: .address1) + + try? container.encodeIfPresent(state, forKey: .state) + + try? container.encodeIfPresent(latitude, forKey: .latitude) + + try? container.encodeIfPresent(pincode, forKey: .pincode) + + try? container.encodeIfPresent(addressType, forKey: .addressType) + + try? container.encodeIfPresent(landmark, forKey: .landmark) + + try? container.encodeIfPresent(longitude, forKey: .longitude) } } /* - Model: Document + Model: Website Used By: CompanyProfile */ - class Document: Codable { + class Website: Codable { public var url: String? - public var legalName: String - - public var type: String - - public var verified: Bool? - - public var value: String - public enum CodingKeys: String, CodingKey { case url = "url" - case legalName = "legal_name" - - case type = "type" - - case verified = "verified" - - case value = "value" - } - public init(legalName: String, type: String, url: String?, value: String, verified: Bool?) { + public init(url: String?) { self.url = url - self.legalName = legalName - - self.type = type - - self.verified = verified - - self.value = value - } required public init(from decoder: Decoder) throws { @@ -87613,29 +87625,6 @@ public extension PlatformClient { } - - legalName = try container.decode(String.self, forKey: .legalName) - - - - type = try container.decode(String.self, forKey: .type) - - - - do { - verified = try container.decode(Bool.self, forKey: .verified) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - value = try container.decode(String.self, forKey: .value) - - } public func encode(to encoder: Encoder) throws { @@ -87643,38 +87632,30 @@ public extension PlatformClient { try? container.encodeIfPresent(url, forKey: .url) - try? container.encodeIfPresent(legalName, forKey: .legalName) - - try? container.encodeIfPresent(type, forKey: .type) - - try? container.encodeIfPresent(verified, forKey: .verified) - - try? container.encodeIfPresent(value, forKey: .value) - } } /* - Model: Website + Model: BusinessDetails Used By: CompanyProfile */ - class Website: Codable { + class BusinessDetails: Codable { - public var url: String? + public var website: Website? public enum CodingKeys: String, CodingKey { - case url = "url" + case website = "website" } - public init(url: String?) { + public init(website: Website?) { - self.url = url + self.website = website } @@ -87683,7 +87664,7 @@ public extension PlatformClient { do { - url = try container.decode(String.self, forKey: .url) + website = try container.decode(Website.self, forKey: .website) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87697,32 +87678,38 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(url, forKey: .url) + try? container.encodeIfPresent(website, forKey: .website) } } /* - Model: BusinessDetails + Model: BusinessCountryInfo Used By: CompanyProfile */ - class BusinessDetails: Codable { + class BusinessCountryInfo: Codable { - public var website: Website? + public var country: String? + + public var countryCode: String? public enum CodingKeys: String, CodingKey { - case website = "website" + case country = "country" + + case countryCode = "country_code" } - public init(website: Website?) { + public init(country: String?, countryCode: String?) { - self.website = website + self.country = country + + self.countryCode = countryCode } @@ -87731,7 +87718,18 @@ public extension PlatformClient { do { - website = try container.decode(Website.self, forKey: .website) + country = try container.decode(String.self, forKey: .country) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + countryCode = try container.decode(String.self, forKey: .countryCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87745,7 +87743,9 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(website, forKey: .website) + try? container.encodeIfPresent(country, forKey: .country) + + try? container.encodeIfPresent(countryCode, forKey: .countryCode) } @@ -87759,152 +87759,141 @@ public extension PlatformClient { class GetCompanyProfileSerializerResponse: Codable { - public var verifiedOn: String? - - public var createdBy: UserSerializer? + public var documents: [Document]? public var franchiseEnabled: Bool? - public var createdOn: String? + public var createdBy: UserSerializer? public var uid: Int - public var businessType: String + public var verifiedBy: UserSerializer? - public var companyType: String + public var contactDetails: ContactDetails? - public var warnings: [String: Any]? + public var stage: String? - public var notificationEmails: [String]? + public var name: String? - public var verifiedBy: UserSerializer? + public var addresses: [GetAddressSerializer]? - public var name: String? + public var businessDetails: BusinessDetails? - public var modifiedOn: String? + public var notificationEmails: [String]? - public var modifiedBy: UserSerializer? + public var businessType: String - public var businessCountryInfo: BusinessCountryInfo? + public var modifiedOn: String? - public var addresses: [GetAddressSerializer]? + public var companyType: String - public var contactDetails: ContactDetails? + public var warnings: [String: Any]? - public var documents: [Document]? + public var businessCountryInfo: BusinessCountryInfo? public var businessInfo: String? - public var businessDetails: BusinessDetails? + public var createdOn: String? - public var stage: String? + public var verifiedOn: String? + + public var modifiedBy: UserSerializer? public enum CodingKeys: String, CodingKey { - case verifiedOn = "verified_on" - - case createdBy = "created_by" + case documents = "documents" case franchiseEnabled = "franchise_enabled" - case createdOn = "created_on" + case createdBy = "created_by" case uid = "uid" - case businessType = "business_type" + case verifiedBy = "verified_by" - case companyType = "company_type" + case contactDetails = "contact_details" - case warnings = "warnings" + case stage = "stage" - case notificationEmails = "notification_emails" + case name = "name" - case verifiedBy = "verified_by" + case addresses = "addresses" - case name = "name" + case businessDetails = "business_details" - case modifiedOn = "modified_on" + case notificationEmails = "notification_emails" - case modifiedBy = "modified_by" + case businessType = "business_type" - case businessCountryInfo = "business_country_info" + case modifiedOn = "modified_on" - case addresses = "addresses" + case companyType = "company_type" - case contactDetails = "contact_details" + case warnings = "warnings" - case documents = "documents" + case businessCountryInfo = "business_country_info" case businessInfo = "business_info" - case businessDetails = "business_details" + case createdOn = "created_on" - case stage = "stage" + case verifiedOn = "verified_on" + + case modifiedBy = "modified_by" } public init(addresses: [GetAddressSerializer]?, businessCountryInfo: BusinessCountryInfo?, businessDetails: BusinessDetails?, businessInfo: String?, businessType: String, companyType: String, contactDetails: ContactDetails?, createdBy: UserSerializer?, createdOn: String?, documents: [Document]?, franchiseEnabled: Bool?, modifiedBy: UserSerializer?, modifiedOn: String?, name: String?, notificationEmails: [String]?, stage: String?, uid: Int, verifiedBy: UserSerializer?, verifiedOn: String?, warnings: [String: Any]?) { - self.verifiedOn = verifiedOn - - self.createdBy = createdBy + self.documents = documents self.franchiseEnabled = franchiseEnabled - self.createdOn = createdOn + self.createdBy = createdBy self.uid = uid - self.businessType = businessType + self.verifiedBy = verifiedBy - self.companyType = companyType + self.contactDetails = contactDetails - self.warnings = warnings + self.stage = stage - self.notificationEmails = notificationEmails + self.name = name - self.verifiedBy = verifiedBy + self.addresses = addresses - self.name = name + self.businessDetails = businessDetails - self.modifiedOn = modifiedOn + self.notificationEmails = notificationEmails - self.modifiedBy = modifiedBy + self.businessType = businessType - self.businessCountryInfo = businessCountryInfo + self.modifiedOn = modifiedOn - self.addresses = addresses + self.companyType = companyType - self.contactDetails = contactDetails + self.warnings = warnings - self.documents = documents + self.businessCountryInfo = businessCountryInfo self.businessInfo = businessInfo - self.businessDetails = businessDetails + self.createdOn = createdOn - self.stage = stage + self.verifiedOn = verifiedOn + + self.modifiedBy = modifiedBy } required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - do { - verifiedOn = try container.decode(String.self, forKey: .verifiedOn) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - + let container = try decoder.container(keyedBy: CodingKeys.self) do { - createdBy = try container.decode(UserSerializer.self, forKey: .createdBy) + documents = try container.decode([Document].self, forKey: .documents) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87926,7 +87915,7 @@ public extension PlatformClient { do { - createdOn = try container.decode(String.self, forKey: .createdOn) + createdBy = try container.decode(UserSerializer.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87940,16 +87929,8 @@ public extension PlatformClient { - businessType = try container.decode(String.self, forKey: .businessType) - - - - companyType = try container.decode(String.self, forKey: .companyType) - - - do { - warnings = try container.decode([String: Any].self, forKey: .warnings) + verifiedBy = try container.decode(UserSerializer.self, forKey: .verifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87960,7 +87941,7 @@ public extension PlatformClient { do { - notificationEmails = try container.decode([String].self, forKey: .notificationEmails) + contactDetails = try container.decode(ContactDetails.self, forKey: .contactDetails) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87971,7 +87952,7 @@ public extension PlatformClient { do { - verifiedBy = try container.decode(UserSerializer.self, forKey: .verifiedBy) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -87993,7 +87974,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + addresses = try container.decode([GetAddressSerializer].self, forKey: .addresses) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88004,7 +87985,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserSerializer.self, forKey: .modifiedBy) + businessDetails = try container.decode(BusinessDetails.self, forKey: .businessDetails) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88015,7 +87996,7 @@ public extension PlatformClient { do { - businessCountryInfo = try container.decode(BusinessCountryInfo.self, forKey: .businessCountryInfo) + notificationEmails = try container.decode([String].self, forKey: .notificationEmails) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88025,8 +88006,12 @@ public extension PlatformClient { + businessType = try container.decode(String.self, forKey: .businessType) + + + do { - addresses = try container.decode([GetAddressSerializer].self, forKey: .addresses) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88036,8 +88021,12 @@ public extension PlatformClient { + companyType = try container.decode(String.self, forKey: .companyType) + + + do { - contactDetails = try container.decode(ContactDetails.self, forKey: .contactDetails) + warnings = try container.decode([String: Any].self, forKey: .warnings) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88048,7 +88037,7 @@ public extension PlatformClient { do { - documents = try container.decode([Document].self, forKey: .documents) + businessCountryInfo = try container.decode(BusinessCountryInfo.self, forKey: .businessCountryInfo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88070,7 +88059,7 @@ public extension PlatformClient { do { - businessDetails = try container.decode(BusinessDetails.self, forKey: .businessDetails) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88081,7 +88070,18 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + verifiedOn = try container.decode(String.self, forKey: .verifiedOn) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + modifiedBy = try container.decode(UserSerializer.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88095,70 +88095,76 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) - - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(documents, forKey: .documents) try? container.encodeIfPresent(franchiseEnabled, forKey: .franchiseEnabled) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(businessType, forKey: .businessType) + try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) - try? container.encodeIfPresent(companyType, forKey: .companyType) + try? container.encodeIfPresent(contactDetails, forKey: .contactDetails) - try? container.encodeIfPresent(warnings, forKey: .warnings) + try? container.encodeIfPresent(stage, forKey: .stage) - try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) + try? container.encodeIfPresent(addresses, forKey: .addresses) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(businessDetails, forKey: .businessDetails) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(businessType, forKey: .businessType) - try? container.encodeIfPresent(businessCountryInfo, forKey: .businessCountryInfo) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - try? container.encodeIfPresent(addresses, forKey: .addresses) + try? container.encodeIfPresent(companyType, forKey: .companyType) - try? container.encodeIfPresent(contactDetails, forKey: .contactDetails) + try? container.encodeIfPresent(warnings, forKey: .warnings) - try? container.encodeIfPresent(documents, forKey: .documents) + try? container.encodeIfPresent(businessCountryInfo, forKey: .businessCountryInfo) try? container.encodeIfPresent(businessInfo, forKey: .businessInfo) - try? container.encodeIfPresent(businessDetails, forKey: .businessDetails) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) + + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) } } /* - Model: ReferralInfo + Model: BusinessCountryInfo1 Used By: CompanyProfile */ - class ReferralInfo: Codable { + class BusinessCountryInfo1: Codable { - public var referralCode: String? + public var country: String? + + public var countryCode: String? public enum CodingKeys: String, CodingKey { - case referralCode = "referral_code" + case country = "country" + + case countryCode = "country_code" } - public init(referralCode: String?) { + public init(country: String?, countryCode: String?) { - self.referralCode = referralCode + self.country = country + + self.countryCode = countryCode } @@ -88167,7 +88173,18 @@ public extension PlatformClient { do { - referralCode = try container.decode(String.self, forKey: .referralCode) + country = try container.decode(String.self, forKey: .country) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + countryCode = try container.decode(String.self, forKey: .countryCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88181,38 +88198,34 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(referralCode, forKey: .referralCode) + try? container.encodeIfPresent(country, forKey: .country) + + try? container.encodeIfPresent(countryCode, forKey: .countryCode) } } /* - Model: BusinessCountryInfo1 + Model: ReferralInfo Used By: CompanyProfile */ - class BusinessCountryInfo1: Codable { - + class ReferralInfo: Codable { - public var countryCode: String? - public var country: String? + public var referralCode: String? public enum CodingKeys: String, CodingKey { - case countryCode = "country_code" - - case country = "country" + case referralCode = "referral_code" } - public init(country: String?, countryCode: String?) { - - self.countryCode = countryCode + public init(referralCode: String?) { - self.country = country + self.referralCode = referralCode } @@ -88221,18 +88234,7 @@ public extension PlatformClient { do { - countryCode = try container.decode(String.self, forKey: .countryCode) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - country = try container.decode(String.self, forKey: .country) + referralCode = try container.decode(String.self, forKey: .referralCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88246,9 +88248,7 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(countryCode, forKey: .countryCode) - - try? container.encodeIfPresent(country, forKey: .country) + try? container.encodeIfPresent(referralCode, forKey: .referralCode) } @@ -88262,72 +88262,72 @@ public extension PlatformClient { class CompanyAddress: Codable { + public var city: String + + public var countryCode: String? + public var address2: String? public var address1: String - public var countryCode: String? + public var state: String public var latitude: Double - public var longitude: Double + public var pincode: Int - public var city: String + public var country: String public var landmark: String? - public var pincode: Int - - public var state: String - - public var country: String + public var longitude: Double public enum CodingKeys: String, CodingKey { + case city = "city" + + case countryCode = "country_code" + case address2 = "address2" case address1 = "address1" - case countryCode = "country_code" + case state = "state" case latitude = "latitude" - case longitude = "longitude" + case pincode = "pincode" - case city = "city" + case country = "country" case landmark = "landmark" - case pincode = "pincode" - - case state = "state" - - case country = "country" + case longitude = "longitude" } public init(address1: String, address2: String?, city: String, country: String, countryCode: String?, landmark: String?, latitude: Double, longitude: Double, pincode: Int, state: String) { + self.city = city + + self.countryCode = countryCode + self.address2 = address2 self.address1 = address1 - self.countryCode = countryCode + self.state = state self.latitude = latitude - self.longitude = longitude + self.pincode = pincode - self.city = city + self.country = country self.landmark = landmark - self.pincode = pincode - - self.state = state - - self.country = country + self.longitude = longitude } @@ -88335,8 +88335,12 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) + city = try container.decode(String.self, forKey: .city) + + + do { - address2 = try container.decode(String.self, forKey: .address2) + countryCode = try container.decode(String.self, forKey: .countryCode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88346,12 +88350,8 @@ public extension PlatformClient { - address1 = try container.decode(String.self, forKey: .address1) - - - do { - countryCode = try container.decode(String.self, forKey: .countryCode) + address2 = try container.decode(String.self, forKey: .address2) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88361,15 +88361,23 @@ public extension PlatformClient { + address1 = try container.decode(String.self, forKey: .address1) + + + + state = try container.decode(String.self, forKey: .state) + + + latitude = try container.decode(Double.self, forKey: .latitude) - longitude = try container.decode(Double.self, forKey: .longitude) + pincode = try container.decode(Int.self, forKey: .pincode) - city = try container.decode(String.self, forKey: .city) + country = try container.decode(String.self, forKey: .country) @@ -88384,15 +88392,7 @@ public extension PlatformClient { - pincode = try container.decode(Int.self, forKey: .pincode) - - - - state = try container.decode(String.self, forKey: .state) - - - - country = try container.decode(String.self, forKey: .country) + longitude = try container.decode(Double.self, forKey: .longitude) } @@ -88400,25 +88400,25 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(city, forKey: .city) + + try? container.encodeIfPresent(countryCode, forKey: .countryCode) + try? container.encodeIfPresent(address2, forKey: .address2) try? container.encodeIfPresent(address1, forKey: .address1) - try? container.encodeIfPresent(countryCode, forKey: .countryCode) + try? container.encodeIfPresent(state, forKey: .state) try? container.encodeIfPresent(latitude, forKey: .latitude) - try? container.encodeIfPresent(longitude, forKey: .longitude) + try? container.encodeIfPresent(pincode, forKey: .pincode) - try? container.encodeIfPresent(city, forKey: .city) + try? container.encodeIfPresent(country, forKey: .country) try? container.encodeIfPresent(landmark, forKey: .landmark) - try? container.encodeIfPresent(pincode, forKey: .pincode) - - try? container.encodeIfPresent(state, forKey: .state) - - try? container.encodeIfPresent(country, forKey: .country) + try? container.encodeIfPresent(longitude, forKey: .longitude) } @@ -88432,84 +88432,84 @@ public extension PlatformClient { class CompanyStoreSerializerRequest: Codable { - public var businessType: String - - public var uid: Int? + public var franchiseEnabled: Bool? - public var referralInfo: ReferralInfo? + public var name: String public var businessCountryInfo: BusinessCountryInfo1 - public var name: String + public var businessInfo: String? - public var franchiseEnabled: Bool? + public var referralInfo: ReferralInfo? + + public var address: CompanyAddress public var brands: [Int] - public var warnings: [String: Any]? + public var notificationEmails: [String]? - public var address: CompanyAddress + public var businessType: String - public var document: Document + public var warnings: [String: Any]? - public var businessInfo: String? + public var uid: Int? - public var notificationEmails: [String]? + public var document: Document public enum CodingKeys: String, CodingKey { - case businessType = "business_type" - - case uid = "uid" + case franchiseEnabled = "franchise_enabled" - case referralInfo = "referral_info" + case name = "name" case businessCountryInfo = "business_country_info" - case name = "name" + case businessInfo = "business_info" - case franchiseEnabled = "franchise_enabled" + case referralInfo = "referral_info" + + case address = "address" case brands = "brands" - case warnings = "warnings" + case notificationEmails = "notification_emails" - case address = "address" + case businessType = "business_type" - case document = "document" + case warnings = "warnings" - case businessInfo = "business_info" + case uid = "uid" - case notificationEmails = "notification_emails" + case document = "document" } public init(address: CompanyAddress, brands: [Int], businessCountryInfo: BusinessCountryInfo1, businessInfo: String?, businessType: String, document: Document, franchiseEnabled: Bool?, name: String, notificationEmails: [String]?, referralInfo: ReferralInfo?, uid: Int?, warnings: [String: Any]?) { - self.businessType = businessType - - self.uid = uid + self.franchiseEnabled = franchiseEnabled - self.referralInfo = referralInfo + self.name = name self.businessCountryInfo = businessCountryInfo - self.name = name + self.businessInfo = businessInfo - self.franchiseEnabled = franchiseEnabled + self.referralInfo = referralInfo + + self.address = address self.brands = brands - self.warnings = warnings + self.notificationEmails = notificationEmails - self.address = address + self.businessType = businessType - self.document = document + self.warnings = warnings - self.businessInfo = businessInfo + self.uid = uid - self.notificationEmails = notificationEmails + self.document = document } @@ -88517,12 +88517,8 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - businessType = try container.decode(String.self, forKey: .businessType) - - - do { - uid = try container.decode(Int.self, forKey: .uid) + franchiseEnabled = try container.decode(Bool.self, forKey: .franchiseEnabled) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88532,8 +88528,16 @@ public extension PlatformClient { + name = try container.decode(String.self, forKey: .name) + + + + businessCountryInfo = try container.decode(BusinessCountryInfo1.self, forKey: .businessCountryInfo) + + + do { - referralInfo = try container.decode(ReferralInfo.self, forKey: .referralInfo) + businessInfo = try container.decode(String.self, forKey: .businessInfo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88543,16 +88547,8 @@ public extension PlatformClient { - businessCountryInfo = try container.decode(BusinessCountryInfo1.self, forKey: .businessCountryInfo) - - - - name = try container.decode(String.self, forKey: .name) - - - do { - franchiseEnabled = try container.decode(Bool.self, forKey: .franchiseEnabled) + referralInfo = try container.decode(ReferralInfo.self, forKey: .referralInfo) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88562,12 +88558,16 @@ public extension PlatformClient { + address = try container.decode(CompanyAddress.self, forKey: .address) + + + brands = try container.decode([Int].self, forKey: .brands) do { - warnings = try container.decode([String: Any].self, forKey: .warnings) + notificationEmails = try container.decode([String].self, forKey: .notificationEmails) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88577,16 +88577,12 @@ public extension PlatformClient { - address = try container.decode(CompanyAddress.self, forKey: .address) - - - - document = try container.decode(Document.self, forKey: .document) + businessType = try container.decode(String.self, forKey: .businessType) do { - businessInfo = try container.decode(String.self, forKey: .businessInfo) + warnings = try container.decode([String: Any].self, forKey: .warnings) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88597,7 +88593,7 @@ public extension PlatformClient { do { - notificationEmails = try container.decode([String].self, forKey: .notificationEmails) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88606,34 +88602,38 @@ public extension PlatformClient { } + + document = try container.decode(Document.self, forKey: .document) + + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(businessType, forKey: .businessType) - - try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(franchiseEnabled, forKey: .franchiseEnabled) - try? container.encodeIfPresent(referralInfo, forKey: .referralInfo) + try? container.encodeIfPresent(name, forKey: .name) try? container.encodeIfPresent(businessCountryInfo, forKey: .businessCountryInfo) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(businessInfo, forKey: .businessInfo) - try? container.encodeIfPresent(franchiseEnabled, forKey: .franchiseEnabled) + try? container.encodeIfPresent(referralInfo, forKey: .referralInfo) + + try? container.encodeIfPresent(address, forKey: .address) try? container.encodeIfPresent(brands, forKey: .brands) - try? container.encodeIfPresent(warnings, forKey: .warnings) + try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails) - try? container.encodeIfPresent(address, forKey: .address) + try? container.encodeIfPresent(businessType, forKey: .businessType) - try? container.encodeIfPresent(document, forKey: .document) + try? container.encodeIfPresent(warnings, forKey: .warnings) - try? container.encodeIfPresent(businessInfo, forKey: .businessInfo) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails) + try? container.encodeIfPresent(document, forKey: .document) } @@ -88714,54 +88714,54 @@ public extension PlatformClient { class MetricsSerializer: Codable { - public var brand: DocumentsObj? - - public var uid: Int? - - public var storeDocuments: DocumentsObj? + public var stage: String? public var companyDocuments: DocumentsObj? public var product: DocumentsObj? + public var brand: DocumentsObj? + + public var storeDocuments: DocumentsObj? + public var store: DocumentsObj? - public var stage: String? + public var uid: Int? public enum CodingKeys: String, CodingKey { - case brand = "brand" - - case uid = "uid" - - case storeDocuments = "store_documents" + case stage = "stage" case companyDocuments = "company_documents" case product = "product" + case brand = "brand" + + case storeDocuments = "store_documents" + case store = "store" - case stage = "stage" + case uid = "uid" } public init(brand: DocumentsObj?, companyDocuments: DocumentsObj?, product: DocumentsObj?, stage: String?, store: DocumentsObj?, storeDocuments: DocumentsObj?, uid: Int?) { - self.brand = brand - - self.uid = uid - - self.storeDocuments = storeDocuments + self.stage = stage self.companyDocuments = companyDocuments self.product = product + self.brand = brand + + self.storeDocuments = storeDocuments + self.store = store - self.stage = stage + self.uid = uid } @@ -88770,7 +88770,7 @@ public extension PlatformClient { do { - brand = try container.decode(DocumentsObj.self, forKey: .brand) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88781,7 +88781,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + companyDocuments = try container.decode(DocumentsObj.self, forKey: .companyDocuments) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88792,7 +88792,7 @@ public extension PlatformClient { do { - storeDocuments = try container.decode(DocumentsObj.self, forKey: .storeDocuments) + product = try container.decode(DocumentsObj.self, forKey: .product) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88803,7 +88803,7 @@ public extension PlatformClient { do { - companyDocuments = try container.decode(DocumentsObj.self, forKey: .companyDocuments) + brand = try container.decode(DocumentsObj.self, forKey: .brand) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88814,7 +88814,7 @@ public extension PlatformClient { do { - product = try container.decode(DocumentsObj.self, forKey: .product) + storeDocuments = try container.decode(DocumentsObj.self, forKey: .storeDocuments) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88836,7 +88836,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -88850,19 +88850,86 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) + try? container.encodeIfPresent(stage, forKey: .stage) + + try? container.encodeIfPresent(companyDocuments, forKey: .companyDocuments) + + try? container.encodeIfPresent(product, forKey: .product) + try? container.encodeIfPresent(brand, forKey: .brand) + try? container.encodeIfPresent(storeDocuments, forKey: .storeDocuments) + + try? container.encodeIfPresent(store, forKey: .store) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(storeDocuments, forKey: .storeDocuments) + } + + } + + /* + Model: BrandBannerSerializer + Used By: CompanyProfile + */ + + class BrandBannerSerializer: Codable { + + + public var landscape: String? + + public var portrait: String? + + + public enum CodingKeys: String, CodingKey { - try? container.encodeIfPresent(companyDocuments, forKey: .companyDocuments) + case landscape = "landscape" - try? container.encodeIfPresent(product, forKey: .product) + case portrait = "portrait" + + } + + public init(landscape: String?, portrait: String?) { + + self.landscape = landscape + + self.portrait = portrait + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + landscape = try container.decode(String.self, forKey: .landscape) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + portrait = try container.decode(String.self, forKey: .portrait) + } 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(store, forKey: .store) + try? container.encodeIfPresent(landscape, forKey: .landscape) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(portrait, forKey: .portrait) } @@ -88955,194 +89022,127 @@ public extension PlatformClient { } /* - Model: BrandBannerSerializer + Model: GetBrandResponseSerializer Used By: CompanyProfile */ - class BrandBannerSerializer: Codable { - - - public var landscape: String? - - public var portrait: String? + class GetBrandResponseSerializer: Codable { - - public enum CodingKeys: String, CodingKey { - - case landscape = "landscape" - - case portrait = "portrait" - - } - - public init(landscape: String?, portrait: String?) { - - self.landscape = landscape - - self.portrait = portrait - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - do { - landscape = try container.decode(String.self, forKey: .landscape) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - portrait = try container.decode(String.self, forKey: .portrait) - } 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(landscape, forKey: .landscape) - - try? container.encodeIfPresent(portrait, forKey: .portrait) - - } + public var stage: String? - } - - /* - Model: GetBrandResponseSerializer - Used By: CompanyProfile - */ - - class GetBrandResponseSerializer: Codable { + public var name: String + public var slugKey: String? public var createdOn: String? - public var verifiedBy: UserSerializer1? + public var logo: String? - public var verifiedOn: String? + public var banner: BrandBannerSerializer? - public var logo: String? + public var synonyms: [String]? public var modifiedBy: UserSerializer1? - public var createdBy: UserSerializer1? + public var verifiedOn: String? - public var uid: Int? + public var createdBy: UserSerializer1? public var rejectReason: String? - public var synonyms: [String]? - - public var customJson: [String: Any]? - - public var name: String + public var warnings: [String: Any]? - public var modifiedOn: String? + public var uid: Int? - public var stage: String? + public var verifiedBy: UserSerializer1? - public var warnings: [String: Any]? + public var description: String? - public var slugKey: String? + public var modifiedOn: String? - public var description: String? + public var customJson: [String: Any]? public var localeLanguage: [String: Any]? - public var banner: BrandBannerSerializer? - public enum CodingKeys: String, CodingKey { - case createdOn = "created_on" - - case verifiedBy = "verified_by" - - case verifiedOn = "verified_on" + case stage = "stage" - case logo = "logo" + case name = "name" - case modifiedBy = "modified_by" + case slugKey = "slug_key" - case createdBy = "created_by" + case createdOn = "created_on" - case uid = "uid" + case logo = "logo" - case rejectReason = "reject_reason" + case banner = "banner" case synonyms = "synonyms" - case customJson = "_custom_json" + case modifiedBy = "modified_by" - case name = "name" + case verifiedOn = "verified_on" - case modifiedOn = "modified_on" + case createdBy = "created_by" - case stage = "stage" + case rejectReason = "reject_reason" case warnings = "warnings" - case slugKey = "slug_key" + case uid = "uid" + + case verifiedBy = "verified_by" case description = "description" - case localeLanguage = "_locale_language" + case modifiedOn = "modified_on" - case banner = "banner" + case customJson = "_custom_json" + + case localeLanguage = "_locale_language" } public init(banner: BrandBannerSerializer?, createdBy: UserSerializer1?, createdOn: String?, description: String?, logo: String?, modifiedBy: UserSerializer1?, modifiedOn: String?, name: String, rejectReason: String?, slugKey: String?, stage: String?, synonyms: [String]?, uid: Int?, verifiedBy: UserSerializer1?, verifiedOn: String?, warnings: [String: Any]?, customJson: [String: Any]?, localeLanguage: [String: Any]?) { - self.createdOn = createdOn - - self.verifiedBy = verifiedBy - - self.verifiedOn = verifiedOn + self.stage = stage - self.logo = logo + self.name = name - self.modifiedBy = modifiedBy + self.slugKey = slugKey - self.createdBy = createdBy + self.createdOn = createdOn - self.uid = uid + self.logo = logo - self.rejectReason = rejectReason + self.banner = banner self.synonyms = synonyms - self.customJson = customJson + self.modifiedBy = modifiedBy - self.name = name + self.verifiedOn = verifiedOn - self.modifiedOn = modifiedOn + self.createdBy = createdBy - self.stage = stage + self.rejectReason = rejectReason self.warnings = warnings - self.slugKey = slugKey + self.uid = uid + + self.verifiedBy = verifiedBy self.description = description - self.localeLanguage = localeLanguage + self.modifiedOn = modifiedOn - self.banner = banner + self.customJson = customJson + + self.localeLanguage = localeLanguage } @@ -89151,7 +89151,7 @@ public extension PlatformClient { do { - createdOn = try container.decode(String.self, forKey: .createdOn) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89161,8 +89161,12 @@ public extension PlatformClient { + name = try container.decode(String.self, forKey: .name) + + + do { - verifiedBy = try container.decode(UserSerializer1.self, forKey: .verifiedBy) + slugKey = try container.decode(String.self, forKey: .slugKey) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89173,7 +89177,7 @@ public extension PlatformClient { do { - verifiedOn = try container.decode(String.self, forKey: .verifiedOn) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89195,7 +89199,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserSerializer1.self, forKey: .modifiedBy) + banner = try container.decode(BrandBannerSerializer.self, forKey: .banner) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89206,7 +89210,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserSerializer1.self, forKey: .createdBy) + synonyms = try container.decode([String].self, forKey: .synonyms) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89217,7 +89221,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + modifiedBy = try container.decode(UserSerializer1.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89228,7 +89232,7 @@ public extension PlatformClient { do { - rejectReason = try container.decode(String.self, forKey: .rejectReason) + verifiedOn = try container.decode(String.self, forKey: .verifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89239,7 +89243,7 @@ public extension PlatformClient { do { - synonyms = try container.decode([String].self, forKey: .synonyms) + createdBy = try container.decode(UserSerializer1.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89250,7 +89254,7 @@ public extension PlatformClient { do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + rejectReason = try container.decode(String.self, forKey: .rejectReason) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89260,12 +89264,8 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + warnings = try container.decode([String: Any].self, forKey: .warnings) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89276,7 +89276,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89287,7 +89287,7 @@ public extension PlatformClient { do { - warnings = try container.decode([String: Any].self, forKey: .warnings) + verifiedBy = try container.decode(UserSerializer1.self, forKey: .verifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89298,7 +89298,7 @@ public extension PlatformClient { do { - slugKey = try container.decode(String.self, forKey: .slugKey) + description = try container.decode(String.self, forKey: .description) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89309,7 +89309,7 @@ public extension PlatformClient { do { - description = try container.decode(String.self, forKey: .description) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89320,7 +89320,7 @@ public extension PlatformClient { do { - localeLanguage = try container.decode([String: Any].self, forKey: .localeLanguage) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89331,7 +89331,7 @@ public extension PlatformClient { do { - banner = try container.decode(BrandBannerSerializer.self, forKey: .banner) + localeLanguage = try container.decode([String: Any].self, forKey: .localeLanguage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89345,41 +89345,41 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - - try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) - - try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) + try? container.encodeIfPresent(stage, forKey: .stage) - try? container.encodeIfPresent(logo, forKey: .logo) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(slugKey, forKey: .slugKey) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(rejectReason, forKey: .rejectReason) + try? container.encodeIfPresent(banner, forKey: .banner) try? container.encodeIfPresent(synonyms, forKey: .synonyms) - try? container.encodeIfPresent(customJson, forKey: .customJson) + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(rejectReason, forKey: .rejectReason) try? container.encodeIfPresent(warnings, forKey: .warnings) - try? container.encodeIfPresent(slugKey, forKey: .slugKey) + try? container.encodeIfPresent(uid, forKey: .uid) + + try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) try? container.encodeIfPresent(description, forKey: .description) - try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) - try? container.encodeIfPresent(banner, forKey: .banner) + try? container.encodeIfPresent(customJson, forKey: .customJson) + + try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage) } @@ -89393,72 +89393,72 @@ public extension PlatformClient { class CreateUpdateBrandRequestSerializer: Codable { - public var logo: String - - public var synonyms: [String]? + public var name: String - public var uid: Int? + public var companyId: Int? - public var customJson: [String: Any]? + public var logo: String - public var name: String + public var synonyms: [String]? public var brandTier: String? + public var uid: Int? + public var description: String? - public var companyId: Int? + public var banner: BrandBannerSerializer? - public var localeLanguage: [String: Any]? + public var customJson: [String: Any]? - public var banner: BrandBannerSerializer? + public var localeLanguage: [String: Any]? public enum CodingKeys: String, CodingKey { - case logo = "logo" - - case synonyms = "synonyms" + case name = "name" - case uid = "uid" + case companyId = "company_id" - case customJson = "_custom_json" + case logo = "logo" - case name = "name" + case synonyms = "synonyms" case brandTier = "brand_tier" + case uid = "uid" + case description = "description" - case companyId = "company_id" + case banner = "banner" - case localeLanguage = "_locale_language" + case customJson = "_custom_json" - case banner = "banner" + case localeLanguage = "_locale_language" } public init(banner: BrandBannerSerializer?, brandTier: String?, companyId: Int?, description: String?, logo: String, name: String, synonyms: [String]?, uid: Int?, customJson: [String: Any]?, localeLanguage: [String: Any]?) { - self.logo = logo - - self.synonyms = synonyms + self.name = name - self.uid = uid + self.companyId = companyId - self.customJson = customJson + self.logo = logo - self.name = name + self.synonyms = synonyms self.brandTier = brandTier + self.uid = uid + self.description = description - self.companyId = companyId + self.banner = banner - self.localeLanguage = localeLanguage + self.customJson = customJson - self.banner = banner + self.localeLanguage = localeLanguage } @@ -89466,12 +89466,12 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) - logo = try container.decode(String.self, forKey: .logo) + name = try container.decode(String.self, forKey: .name) do { - synonyms = try container.decode([String].self, forKey: .synonyms) + companyId = try container.decode(Int.self, forKey: .companyId) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89481,8 +89481,12 @@ public extension PlatformClient { + logo = try container.decode(String.self, forKey: .logo) + + + do { - uid = try container.decode(Int.self, forKey: .uid) + synonyms = try container.decode([String].self, forKey: .synonyms) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89493,7 +89497,7 @@ public extension PlatformClient { do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + brandTier = try container.decode(String.self, forKey: .brandTier) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89503,12 +89507,8 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - do { - brandTier = try container.decode(String.self, forKey: .brandTier) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89530,7 +89530,7 @@ public extension PlatformClient { do { - companyId = try container.decode(Int.self, forKey: .companyId) + banner = try container.decode(BrandBannerSerializer.self, forKey: .banner) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89541,7 +89541,7 @@ public extension PlatformClient { do { - localeLanguage = try container.decode([String: Any].self, forKey: .localeLanguage) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89552,7 +89552,7 @@ public extension PlatformClient { do { - banner = try container.decode(BrandBannerSerializer.self, forKey: .banner) + localeLanguage = try container.decode([String: Any].self, forKey: .localeLanguage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89566,25 +89566,25 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(logo, forKey: .logo) - - try? container.encodeIfPresent(synonyms, forKey: .synonyms) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(companyId, forKey: .companyId) - try? container.encodeIfPresent(customJson, forKey: .customJson) + try? container.encodeIfPresent(logo, forKey: .logo) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(synonyms, forKey: .synonyms) try? container.encodeIfPresent(brandTier, forKey: .brandTier) + try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(description, forKey: .description) - try? container.encodeIfPresent(companyId, forKey: .companyId) + try? container.encodeIfPresent(banner, forKey: .banner) - try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage) + try? container.encodeIfPresent(customJson, forKey: .customJson) - try? container.encodeIfPresent(banner, forKey: .banner) + try? container.encodeIfPresent(localeLanguage, forKey: .localeLanguage) } @@ -89598,90 +89598,90 @@ public extension PlatformClient { class GetCompanySerializer: Codable { - public var createdOn: String? + public var stage: String? - public var verifiedBy: UserSerializer? + public var name: String? - public var verifiedOn: String? + public var createdOn: String? - public var rejectReason: String? + public var companyType: String? + + public var addresses: [GetAddressSerializer]? public var modifiedBy: UserSerializer? - public var createdBy: UserSerializer? + public var verifiedOn: String? - public var uid: Int? + public var createdBy: UserSerializer? public var businessType: String? - public var name: String? - - public var modifiedOn: String? + public var rejectReason: String? - public var companyType: String? + public var uid: Int? - public var addresses: [GetAddressSerializer]? + public var verifiedBy: UserSerializer? - public var stage: String? + public var modifiedOn: String? public enum CodingKeys: String, CodingKey { - case createdOn = "created_on" + case stage = "stage" - case verifiedBy = "verified_by" + case name = "name" - case verifiedOn = "verified_on" + case createdOn = "created_on" - case rejectReason = "reject_reason" + case companyType = "company_type" + + case addresses = "addresses" case modifiedBy = "modified_by" - case createdBy = "created_by" + case verifiedOn = "verified_on" - case uid = "uid" + case createdBy = "created_by" case businessType = "business_type" - case name = "name" - - case modifiedOn = "modified_on" + case rejectReason = "reject_reason" - case companyType = "company_type" + case uid = "uid" - case addresses = "addresses" + case verifiedBy = "verified_by" - case stage = "stage" + case modifiedOn = "modified_on" } public init(addresses: [GetAddressSerializer]?, businessType: String?, companyType: String?, createdBy: UserSerializer?, createdOn: String?, modifiedBy: UserSerializer?, modifiedOn: String?, name: String?, rejectReason: String?, stage: String?, uid: Int?, verifiedBy: UserSerializer?, verifiedOn: String?) { - self.createdOn = createdOn + self.stage = stage - self.verifiedBy = verifiedBy + self.name = name - self.verifiedOn = verifiedOn + self.createdOn = createdOn - self.rejectReason = rejectReason + self.companyType = companyType + + self.addresses = addresses self.modifiedBy = modifiedBy - self.createdBy = createdBy + self.verifiedOn = verifiedOn - self.uid = uid + self.createdBy = createdBy self.businessType = businessType - self.name = name - - self.modifiedOn = modifiedOn + self.rejectReason = rejectReason - self.companyType = companyType + self.uid = uid - self.addresses = addresses + self.verifiedBy = verifiedBy - self.stage = stage + self.modifiedOn = modifiedOn } @@ -89690,7 +89690,7 @@ public extension PlatformClient { do { - createdOn = try container.decode(String.self, forKey: .createdOn) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89701,7 +89701,7 @@ public extension PlatformClient { do { - verifiedBy = try container.decode(UserSerializer.self, forKey: .verifiedBy) + name = try container.decode(String.self, forKey: .name) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89712,7 +89712,7 @@ public extension PlatformClient { do { - verifiedOn = try container.decode(String.self, forKey: .verifiedOn) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89723,7 +89723,7 @@ public extension PlatformClient { do { - rejectReason = try container.decode(String.self, forKey: .rejectReason) + companyType = try container.decode(String.self, forKey: .companyType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89734,7 +89734,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserSerializer.self, forKey: .modifiedBy) + addresses = try container.decode([GetAddressSerializer].self, forKey: .addresses) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89745,7 +89745,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserSerializer.self, forKey: .createdBy) + modifiedBy = try container.decode(UserSerializer.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89756,7 +89756,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + verifiedOn = try container.decode(String.self, forKey: .verifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89767,7 +89767,7 @@ public extension PlatformClient { do { - businessType = try container.decode(String.self, forKey: .businessType) + createdBy = try container.decode(UserSerializer.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89778,7 +89778,7 @@ public extension PlatformClient { do { - name = try container.decode(String.self, forKey: .name) + businessType = try container.decode(String.self, forKey: .businessType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89789,7 +89789,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + rejectReason = try container.decode(String.self, forKey: .rejectReason) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89800,7 +89800,7 @@ public extension PlatformClient { do { - companyType = try container.decode(String.self, forKey: .companyType) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89811,7 +89811,7 @@ public extension PlatformClient { do { - addresses = try container.decode([GetAddressSerializer].self, forKey: .addresses) + verifiedBy = try container.decode(UserSerializer.self, forKey: .verifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89822,7 +89822,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89836,31 +89836,31 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) + try? container.encodeIfPresent(stage, forKey: .stage) - try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(rejectReason, forKey: .rejectReason) + try? container.encodeIfPresent(companyType, forKey: .companyType) + + try? container.encodeIfPresent(addresses, forKey: .addresses) try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) - try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) try? container.encodeIfPresent(businessType, forKey: .businessType) - try? container.encodeIfPresent(name, forKey: .name) - - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(rejectReason, forKey: .rejectReason) - try? container.encodeIfPresent(companyType, forKey: .companyType) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(addresses, forKey: .addresses) + try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) } @@ -89874,84 +89874,84 @@ public extension PlatformClient { class CompanyBrandSerializer: Codable { - public var createdOn: String? - - public var verifiedBy: UserSerializer1? + public var stage: String? - public var verifiedOn: String? + public var createdOn: String? public var brand: GetBrandResponseSerializer? public var modifiedBy: UserSerializer1? - public var createdBy: UserSerializer1? + public var company: GetCompanySerializer? - public var uid: Int? + public var verifiedOn: String? + + public var createdBy: UserSerializer1? public var rejectReason: String? - public var company: GetCompanySerializer? + public var warnings: [String: Any]? - public var modifiedOn: String? + public var uid: Int? - public var warnings: [String: Any]? + public var verifiedBy: UserSerializer1? - public var stage: String? + public var modifiedOn: String? public enum CodingKeys: String, CodingKey { - case createdOn = "created_on" - - case verifiedBy = "verified_by" + case stage = "stage" - case verifiedOn = "verified_on" + case createdOn = "created_on" case brand = "brand" case modifiedBy = "modified_by" - case createdBy = "created_by" + case company = "company" - case uid = "uid" + case verifiedOn = "verified_on" + + case createdBy = "created_by" case rejectReason = "reject_reason" - case company = "company" + case warnings = "warnings" - case modifiedOn = "modified_on" + case uid = "uid" - case warnings = "warnings" + case verifiedBy = "verified_by" - case stage = "stage" + case modifiedOn = "modified_on" } public init(brand: GetBrandResponseSerializer?, company: GetCompanySerializer?, createdBy: UserSerializer1?, createdOn: String?, modifiedBy: UserSerializer1?, modifiedOn: String?, rejectReason: String?, stage: String?, uid: Int?, verifiedBy: UserSerializer1?, verifiedOn: String?, warnings: [String: Any]?) { + self.stage = stage + self.createdOn = createdOn - self.verifiedBy = verifiedBy + self.brand = brand - self.verifiedOn = verifiedOn + self.modifiedBy = modifiedBy - self.brand = brand + self.company = company - self.modifiedBy = modifiedBy + self.verifiedOn = verifiedOn self.createdBy = createdBy - self.uid = uid - self.rejectReason = rejectReason - self.company = company + self.warnings = warnings - self.modifiedOn = modifiedOn + self.uid = uid - self.warnings = warnings + self.verifiedBy = verifiedBy - self.stage = stage + self.modifiedOn = modifiedOn } @@ -89960,7 +89960,7 @@ public extension PlatformClient { do { - createdOn = try container.decode(String.self, forKey: .createdOn) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89971,7 +89971,7 @@ public extension PlatformClient { do { - verifiedBy = try container.decode(UserSerializer1.self, forKey: .verifiedBy) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89982,7 +89982,7 @@ public extension PlatformClient { do { - verifiedOn = try container.decode(String.self, forKey: .verifiedOn) + brand = try container.decode(GetBrandResponseSerializer.self, forKey: .brand) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -89993,7 +89993,7 @@ public extension PlatformClient { do { - brand = try container.decode(GetBrandResponseSerializer.self, forKey: .brand) + modifiedBy = try container.decode(UserSerializer1.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90004,7 +90004,7 @@ public extension PlatformClient { do { - modifiedBy = try container.decode(UserSerializer1.self, forKey: .modifiedBy) + company = try container.decode(GetCompanySerializer.self, forKey: .company) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90015,7 +90015,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserSerializer1.self, forKey: .createdBy) + verifiedOn = try container.decode(String.self, forKey: .verifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90026,7 +90026,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + createdBy = try container.decode(UserSerializer1.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90048,7 +90048,7 @@ public extension PlatformClient { do { - company = try container.decode(GetCompanySerializer.self, forKey: .company) + warnings = try container.decode([String: Any].self, forKey: .warnings) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90059,7 +90059,7 @@ public extension PlatformClient { do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90070,7 +90070,7 @@ public extension PlatformClient { do { - warnings = try container.decode([String: Any].self, forKey: .warnings) + verifiedBy = try container.decode(UserSerializer1.self, forKey: .verifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90081,7 +90081,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90095,29 +90095,29 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) - - try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) + try? container.encodeIfPresent(stage, forKey: .stage) - try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) try? container.encodeIfPresent(brand, forKey: .brand) try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(company, forKey: .company) - try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) + + try? container.encodeIfPresent(createdBy, forKey: .createdBy) try? container.encodeIfPresent(rejectReason, forKey: .rejectReason) - try? container.encodeIfPresent(company, forKey: .company) + try? container.encodeIfPresent(warnings, forKey: .warnings) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(warnings, forKey: .warnings) + try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) } @@ -90131,25 +90131,25 @@ public extension PlatformClient { class CompanyBrandListSerializer: Codable { - public var items: [CompanyBrandSerializer]? - public var page: Page? + public var items: [CompanyBrandSerializer]? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: [CompanyBrandSerializer]?, page: Page?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -90157,7 +90157,7 @@ public extension PlatformClient { do { - items = try container.decode([CompanyBrandSerializer].self, forKey: .items) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90168,7 +90168,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + items = try container.decode([CompanyBrandSerializer].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90182,10 +90182,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } @@ -90198,41 +90198,37 @@ public extension PlatformClient { class CompanyBrandPostRequestSerializer: Codable { - public var company: Int - public var brands: [Int] public var uid: Int? + public var company: Int + public enum CodingKeys: String, CodingKey { - case company = "company" - case brands = "brands" case uid = "uid" + case company = "company" + } public init(brands: [Int], company: Int, uid: Int?) { - self.company = company - self.brands = brands self.uid = uid + self.company = company + } required public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) - company = try container.decode(Int.self, forKey: .company) - - - brands = try container.decode([Int].self, forKey: .brands) @@ -90247,17 +90243,21 @@ public extension PlatformClient { } + + company = try container.decode(Int.self, forKey: .company) + + } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(company, forKey: .company) - try? container.encodeIfPresent(brands, forKey: .brands) try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(company, forKey: .company) + } } @@ -90285,167 +90285,9 @@ public extension PlatformClient { public init(hour: Int?, minute: Int?) { - self.minute = minute - - self.hour = hour - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - do { - minute = try container.decode(Int.self, forKey: .minute) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - hour = try container.decode(Int.self, forKey: .hour) - } 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(minute, forKey: .minute) - - try? container.encodeIfPresent(hour, forKey: .hour) - - } - - } - - /* - Model: LocationDayWiseSerializer - Used By: CompanyProfile - */ - - class LocationDayWiseSerializer: Codable { - - - public var weekday: String - - public var open: Bool - - public var opening: LocationTimingSerializer? - - public var closing: LocationTimingSerializer? - - - public enum CodingKeys: String, CodingKey { - - case weekday = "weekday" - - case open = "open" - - case opening = "opening" - - case closing = "closing" - - } - - public init(closing: LocationTimingSerializer?, open: Bool, opening: LocationTimingSerializer?, weekday: String) { - - self.weekday = weekday - - self.open = open - - self.opening = opening - - self.closing = closing - - } - - required public init(from decoder: Decoder) throws { - let container = try decoder.container(keyedBy: CodingKeys.self) - - - weekday = try container.decode(String.self, forKey: .weekday) - - - - open = try container.decode(Bool.self, forKey: .open) - - - - do { - opening = try container.decode(LocationTimingSerializer.self, forKey: .opening) - } catch DecodingError.typeMismatch(let type, let context) { - print("Type '\(type)' mismatch:", context.debugDescription) - print("codingPath:", context.codingPath) - } catch { - - } - - - - do { - closing = try container.decode(LocationTimingSerializer.self, forKey: .closing) - } 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(weekday, forKey: .weekday) - - try? container.encodeIfPresent(open, forKey: .open) - - try? container.encodeIfPresent(opening, forKey: .opening) - - try? container.encodeIfPresent(closing, forKey: .closing) - - } - - } - - /* - Model: ProductReturnConfigSerializer - Used By: CompanyProfile - */ - - class ProductReturnConfigSerializer: Codable { - - - public var onSameStore: Bool? - - public var storeUid: Int? - - - public enum CodingKeys: String, CodingKey { - - case onSameStore = "on_same_store" - - case storeUid = "store_uid" - - } - - public init(onSameStore: Bool?, storeUid: Int?) { - - self.onSameStore = onSameStore + self.minute = minute - self.storeUid = storeUid + self.hour = hour } @@ -90454,7 +90296,7 @@ public extension PlatformClient { do { - onSameStore = try container.decode(Bool.self, forKey: .onSameStore) + minute = try container.decode(Int.self, forKey: .minute) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90465,7 +90307,7 @@ public extension PlatformClient { do { - storeUid = try container.decode(Int.self, forKey: .storeUid) + hour = try container.decode(Int.self, forKey: .hour) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90479,40 +90321,52 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(onSameStore, forKey: .onSameStore) + try? container.encodeIfPresent(minute, forKey: .minute) - try? container.encodeIfPresent(storeUid, forKey: .storeUid) + try? container.encodeIfPresent(hour, forKey: .hour) } } /* - Model: LocationIntegrationType + Model: LocationDayWiseSerializer Used By: CompanyProfile */ - class LocationIntegrationType: Codable { + class LocationDayWiseSerializer: Codable { - public var inventory: String? + public var open: Bool - public var order: String? + public var closing: LocationTimingSerializer? + + public var weekday: String + + public var opening: LocationTimingSerializer? public enum CodingKeys: String, CodingKey { - case inventory = "inventory" + case open = "open" - case order = "order" + case closing = "closing" + + case weekday = "weekday" + + case opening = "opening" } - public init(inventory: String?, order: String?) { + public init(closing: LocationTimingSerializer?, open: Bool, opening: LocationTimingSerializer?, weekday: String) { - self.inventory = inventory + self.open = open - self.order = order + self.closing = closing + + self.weekday = weekday + + self.opening = opening } @@ -90520,8 +90374,12 @@ public extension PlatformClient { let container = try decoder.container(keyedBy: CodingKeys.self) + open = try container.decode(Bool.self, forKey: .open) + + + do { - inventory = try container.decode(String.self, forKey: .inventory) + closing = try container.decode(LocationTimingSerializer.self, forKey: .closing) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90531,8 +90389,12 @@ public extension PlatformClient { + weekday = try container.decode(String.self, forKey: .weekday) + + + do { - order = try container.decode(String.self, forKey: .order) + opening = try container.decode(LocationTimingSerializer.self, forKey: .opening) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90546,9 +90408,13 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(inventory, forKey: .inventory) + try? container.encodeIfPresent(open, forKey: .open) - try? container.encodeIfPresent(order, forKey: .order) + try? container.encodeIfPresent(closing, forKey: .closing) + + try? container.encodeIfPresent(weekday, forKey: .weekday) + + try? container.encodeIfPresent(opening, forKey: .opening) } @@ -90727,25 +90593,25 @@ public extension PlatformClient { class InvoiceDetailsSerializer: Codable { - public var eInvoice: InvoiceCredSerializer? - public var eWaybill: InvoiceCredSerializer? + public var eInvoice: InvoiceCredSerializer? + public enum CodingKeys: String, CodingKey { - case eInvoice = "e_invoice" - case eWaybill = "e_waybill" + case eInvoice = "e_invoice" + } public init(eInvoice: InvoiceCredSerializer?, eWaybill: InvoiceCredSerializer?) { - self.eInvoice = eInvoice - self.eWaybill = eWaybill + self.eInvoice = eInvoice + } required public init(from decoder: Decoder) throws { @@ -90753,7 +90619,7 @@ public extension PlatformClient { do { - eInvoice = try container.decode(InvoiceCredSerializer.self, forKey: .eInvoice) + eWaybill = try container.decode(InvoiceCredSerializer.self, forKey: .eWaybill) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90764,7 +90630,7 @@ public extension PlatformClient { do { - eWaybill = try container.decode(InvoiceCredSerializer.self, forKey: .eWaybill) + eInvoice = try container.decode(InvoiceCredSerializer.self, forKey: .eInvoice) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90778,178 +90644,312 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(eInvoice, forKey: .eInvoice) - try? container.encodeIfPresent(eWaybill, forKey: .eWaybill) + try? container.encodeIfPresent(eInvoice, forKey: .eInvoice) + } } /* - Model: GetLocationSerializer + Model: ProductReturnConfigSerializer Used By: CompanyProfile */ - class GetLocationSerializer: Codable { + class ProductReturnConfigSerializer: Codable { - public var verifiedOn: String? + public var onSameStore: Bool? - public var createdBy: UserSerializer1? + public var storeUid: Int? - public var code: String + + public enum CodingKeys: String, CodingKey { + + case onSameStore = "on_same_store" + + case storeUid = "store_uid" + + } + + public init(onSameStore: Bool?, storeUid: Int?) { + + self.onSameStore = onSameStore + + self.storeUid = storeUid + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + onSameStore = try container.decode(Bool.self, forKey: .onSameStore) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + storeUid = try container.decode(Int.self, forKey: .storeUid) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + } - public var phoneNumber: String + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(onSameStore, forKey: .onSameStore) + + try? container.encodeIfPresent(storeUid, forKey: .storeUid) + + } - public var createdOn: String? + } + + /* + Model: LocationIntegrationType + Used By: CompanyProfile + */ + + class LocationIntegrationType: Codable { - public var storeType: String? - public var uid: Int? + public var inventory: String? - public var company: GetCompanySerializer? + public var order: String? - public var warnings: [String: Any]? + + public enum CodingKeys: String, CodingKey { + + case inventory = "inventory" + + case order = "order" + + } + + public init(inventory: String?, order: String?) { + + self.inventory = inventory + + self.order = order + + } + + required public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + + do { + inventory = try container.decode(String.self, forKey: .inventory) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + + do { + order = try container.decode(String.self, forKey: .order) + } catch DecodingError.typeMismatch(let type, let context) { + print("Type '\(type)' mismatch:", context.debugDescription) + print("codingPath:", context.codingPath) + } catch { + + } + + + } - public var notificationEmails: [String]? + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + + try? container.encodeIfPresent(inventory, forKey: .inventory) + + try? container.encodeIfPresent(order, forKey: .order) + + } - public var displayName: String + } + + /* + Model: GetLocationSerializer + Used By: CompanyProfile + */ + + class GetLocationSerializer: Codable { + + + public var documents: [Document]? + + public var contactNumbers: [SellerPhoneNumber]? + + public var createdBy: UserSerializer1? + + public var uid: Int? public var verifiedBy: UserSerializer1? - public var customJson: [String: Any]? + public var stage: String? public var name: String public var timing: [LocationDayWiseSerializer]? + public var notificationEmails: [String]? + + public var manager: LocationManagerSerializer? + public var modifiedOn: String? - public var productReturnConfig: ProductReturnConfigSerializer? + public var customJson: [String: Any]? + + public var displayName: String public var address: GetAddressSerializer - public var modifiedBy: UserSerializer1? + public var warnings: [String: Any]? - public var integrationType: LocationIntegrationType? + public var gstCredentials: InvoiceDetailsSerializer? - public var manager: LocationManagerSerializer? + public var phoneNumber: String - public var documents: [Document]? + public var productReturnConfig: ProductReturnConfigSerializer? - public var contactNumbers: [SellerPhoneNumber]? + public var createdOn: String? + + public var code: String + + public var storeType: String? + + public var company: GetCompanySerializer? + + public var verifiedOn: String? - public var gstCredentials: InvoiceDetailsSerializer? + public var integrationType: LocationIntegrationType? - public var stage: String? + public var modifiedBy: UserSerializer1? public enum CodingKeys: String, CodingKey { - case verifiedOn = "verified_on" - - case createdBy = "created_by" + case documents = "documents" - case code = "code" + case contactNumbers = "contact_numbers" - case phoneNumber = "phone_number" + case createdBy = "created_by" - case createdOn = "created_on" + case uid = "uid" - case storeType = "store_type" + case verifiedBy = "verified_by" - case uid = "uid" + case stage = "stage" - case company = "company" + case name = "name" - case warnings = "warnings" + case timing = "timing" case notificationEmails = "notification_emails" - case displayName = "display_name" + case manager = "manager" - case verifiedBy = "verified_by" + case modifiedOn = "modified_on" case customJson = "_custom_json" - case name = "name" + case displayName = "display_name" - case timing = "timing" + case address = "address" - case modifiedOn = "modified_on" + case warnings = "warnings" - case productReturnConfig = "product_return_config" + case gstCredentials = "gst_credentials" - case address = "address" + case phoneNumber = "phone_number" - case modifiedBy = "modified_by" + case productReturnConfig = "product_return_config" - case integrationType = "integration_type" + case createdOn = "created_on" - case manager = "manager" + case code = "code" - case documents = "documents" + case storeType = "store_type" - case contactNumbers = "contact_numbers" + case company = "company" - case gstCredentials = "gst_credentials" + case verifiedOn = "verified_on" - case stage = "stage" + case integrationType = "integration_type" + + case modifiedBy = "modified_by" } public init(address: GetAddressSerializer, code: String, company: GetCompanySerializer?, contactNumbers: [SellerPhoneNumber]?, createdBy: UserSerializer1?, createdOn: String?, displayName: String, documents: [Document]?, gstCredentials: InvoiceDetailsSerializer?, integrationType: LocationIntegrationType?, manager: LocationManagerSerializer?, modifiedBy: UserSerializer1?, modifiedOn: String?, name: String, notificationEmails: [String]?, phoneNumber: String, productReturnConfig: ProductReturnConfigSerializer?, stage: String?, storeType: String?, timing: [LocationDayWiseSerializer]?, uid: Int?, verifiedBy: UserSerializer1?, verifiedOn: String?, warnings: [String: Any]?, customJson: [String: Any]?) { - self.verifiedOn = verifiedOn - - self.createdBy = createdBy + self.documents = documents - self.code = code + self.contactNumbers = contactNumbers - self.phoneNumber = phoneNumber + self.createdBy = createdBy - self.createdOn = createdOn + self.uid = uid - self.storeType = storeType + self.verifiedBy = verifiedBy - self.uid = uid + self.stage = stage - self.company = company + self.name = name - self.warnings = warnings + self.timing = timing self.notificationEmails = notificationEmails - self.displayName = displayName + self.manager = manager - self.verifiedBy = verifiedBy + self.modifiedOn = modifiedOn self.customJson = customJson - self.name = name + self.displayName = displayName - self.timing = timing + self.address = address - self.modifiedOn = modifiedOn + self.warnings = warnings - self.productReturnConfig = productReturnConfig + self.gstCredentials = gstCredentials - self.address = address + self.phoneNumber = phoneNumber - self.modifiedBy = modifiedBy + self.productReturnConfig = productReturnConfig - self.integrationType = integrationType + self.createdOn = createdOn - self.manager = manager + self.code = code - self.documents = documents + self.storeType = storeType - self.contactNumbers = contactNumbers + self.company = company - self.gstCredentials = gstCredentials + self.verifiedOn = verifiedOn - self.stage = stage + self.integrationType = integrationType + + self.modifiedBy = modifiedBy } @@ -90958,7 +90958,7 @@ public extension PlatformClient { do { - verifiedOn = try container.decode(String.self, forKey: .verifiedOn) + documents = try container.decode([Document].self, forKey: .documents) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90969,7 +90969,7 @@ public extension PlatformClient { do { - createdBy = try container.decode(UserSerializer1.self, forKey: .createdBy) + contactNumbers = try container.decode([SellerPhoneNumber].self, forKey: .contactNumbers) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90979,16 +90979,8 @@ public extension PlatformClient { - code = try container.decode(String.self, forKey: .code) - - - - phoneNumber = try container.decode(String.self, forKey: .phoneNumber) - - - do { - createdOn = try container.decode(String.self, forKey: .createdOn) + createdBy = try container.decode(UserSerializer1.self, forKey: .createdBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -90999,7 +90991,7 @@ public extension PlatformClient { do { - storeType = try container.decode(String.self, forKey: .storeType) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91010,7 +91002,7 @@ public extension PlatformClient { do { - uid = try container.decode(Int.self, forKey: .uid) + verifiedBy = try container.decode(UserSerializer1.self, forKey: .verifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91021,7 +91013,7 @@ public extension PlatformClient { do { - company = try container.decode(GetCompanySerializer.self, forKey: .company) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91031,8 +91023,12 @@ public extension PlatformClient { + name = try container.decode(String.self, forKey: .name) + + + do { - warnings = try container.decode([String: Any].self, forKey: .warnings) + timing = try container.decode([LocationDayWiseSerializer].self, forKey: .timing) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91053,12 +91049,8 @@ public extension PlatformClient { - displayName = try container.decode(String.self, forKey: .displayName) - - - do { - verifiedBy = try container.decode(UserSerializer1.self, forKey: .verifiedBy) + manager = try container.decode(LocationManagerSerializer.self, forKey: .manager) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91069,7 +91061,7 @@ public extension PlatformClient { do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + modifiedOn = try container.decode(String.self, forKey: .modifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91079,12 +91071,8 @@ public extension PlatformClient { - name = try container.decode(String.self, forKey: .name) - - - do { - timing = try container.decode([LocationDayWiseSerializer].self, forKey: .timing) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91094,8 +91082,16 @@ public extension PlatformClient { + displayName = try container.decode(String.self, forKey: .displayName) + + + + address = try container.decode(GetAddressSerializer.self, forKey: .address) + + + do { - modifiedOn = try container.decode(String.self, forKey: .modifiedOn) + warnings = try container.decode([String: Any].self, forKey: .warnings) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91106,7 +91102,7 @@ public extension PlatformClient { do { - productReturnConfig = try container.decode(ProductReturnConfigSerializer.self, forKey: .productReturnConfig) + gstCredentials = try container.decode(InvoiceDetailsSerializer.self, forKey: .gstCredentials) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91116,12 +91112,12 @@ public extension PlatformClient { - address = try container.decode(GetAddressSerializer.self, forKey: .address) + phoneNumber = try container.decode(String.self, forKey: .phoneNumber) do { - modifiedBy = try container.decode(UserSerializer1.self, forKey: .modifiedBy) + productReturnConfig = try container.decode(ProductReturnConfigSerializer.self, forKey: .productReturnConfig) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91132,7 +91128,7 @@ public extension PlatformClient { do { - integrationType = try container.decode(LocationIntegrationType.self, forKey: .integrationType) + createdOn = try container.decode(String.self, forKey: .createdOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91142,8 +91138,12 @@ public extension PlatformClient { + code = try container.decode(String.self, forKey: .code) + + + do { - manager = try container.decode(LocationManagerSerializer.self, forKey: .manager) + storeType = try container.decode(String.self, forKey: .storeType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91154,7 +91154,7 @@ public extension PlatformClient { do { - documents = try container.decode([Document].self, forKey: .documents) + company = try container.decode(GetCompanySerializer.self, forKey: .company) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91165,7 +91165,7 @@ public extension PlatformClient { do { - contactNumbers = try container.decode([SellerPhoneNumber].self, forKey: .contactNumbers) + verifiedOn = try container.decode(String.self, forKey: .verifiedOn) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91176,7 +91176,7 @@ public extension PlatformClient { do { - gstCredentials = try container.decode(InvoiceDetailsSerializer.self, forKey: .gstCredentials) + integrationType = try container.decode(LocationIntegrationType.self, forKey: .integrationType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91187,7 +91187,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + modifiedBy = try container.decode(UserSerializer1.self, forKey: .modifiedBy) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91201,55 +91201,55 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) - - try? container.encodeIfPresent(createdBy, forKey: .createdBy) + try? container.encodeIfPresent(documents, forKey: .documents) - try? container.encodeIfPresent(code, forKey: .code) + try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers) - try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber) + try? container.encodeIfPresent(createdBy, forKey: .createdBy) - try? container.encodeIfPresent(createdOn, forKey: .createdOn) + try? container.encodeIfPresent(uid, forKey: .uid) - try? container.encodeIfPresent(storeType, forKey: .storeType) + try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) - try? container.encodeIfPresent(uid, forKey: .uid) + try? container.encodeIfPresent(stage, forKey: .stage) - try? container.encodeIfPresent(company, forKey: .company) + try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(warnings, forKey: .warnings) + try? container.encodeIfPresent(timing, forKey: .timing) try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails) - try? container.encodeIfPresent(displayName, forKey: .displayName) + try? container.encodeIfPresent(manager, forKey: .manager) - try? container.encodeIfPresent(verifiedBy, forKey: .verifiedBy) + try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) try? container.encodeIfPresent(customJson, forKey: .customJson) - try? container.encodeIfPresent(name, forKey: .name) + try? container.encodeIfPresent(displayName, forKey: .displayName) - try? container.encodeIfPresent(timing, forKey: .timing) + try? container.encodeIfPresent(address, forKey: .address) - try? container.encodeIfPresent(modifiedOn, forKey: .modifiedOn) + try? container.encodeIfPresent(warnings, forKey: .warnings) - try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig) + try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials) - try? container.encodeIfPresent(address, forKey: .address) + try? container.encodeIfPresent(phoneNumber, forKey: .phoneNumber) - try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) + try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig) - try? container.encodeIfPresent(integrationType, forKey: .integrationType) + try? container.encodeIfPresent(createdOn, forKey: .createdOn) - try? container.encodeIfPresent(manager, forKey: .manager) + try? container.encodeIfPresent(code, forKey: .code) - try? container.encodeIfPresent(documents, forKey: .documents) + try? container.encodeIfPresent(storeType, forKey: .storeType) - try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers) + try? container.encodeIfPresent(company, forKey: .company) - try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials) + try? container.encodeIfPresent(verifiedOn, forKey: .verifiedOn) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(integrationType, forKey: .integrationType) + + try? container.encodeIfPresent(modifiedBy, forKey: .modifiedBy) } @@ -91263,25 +91263,25 @@ public extension PlatformClient { class LocationListSerializer: Codable { - public var items: [GetLocationSerializer]? - public var page: Page? + public var items: [GetLocationSerializer]? + public enum CodingKeys: String, CodingKey { - case items = "items" - case page = "page" + case items = "items" + } public init(items: [GetLocationSerializer]?, page: Page?) { - self.items = items - self.page = page + self.items = items + } required public init(from decoder: Decoder) throws { @@ -91289,7 +91289,7 @@ public extension PlatformClient { do { - items = try container.decode([GetLocationSerializer].self, forKey: .items) + page = try container.decode(Page.self, forKey: .page) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91300,7 +91300,7 @@ public extension PlatformClient { do { - page = try container.decode(Page.self, forKey: .page) + items = try container.decode([GetLocationSerializer].self, forKey: .items) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91314,10 +91314,10 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(items, forKey: .items) - try? container.encodeIfPresent(page, forKey: .page) + try? container.encodeIfPresent(items, forKey: .items) + } } @@ -91330,78 +91330,78 @@ public extension PlatformClient { class GetAddressSerializer1: Codable { - public var addressType: String? + public var city: String? - public var address2: String? + public var country: String? - public var address1: String? + public var address2: String? public var countryCode: String? - public var latitude: Double? - - public var longitude: Double? + public var address1: String? - public var city: String? + public var state: String? - public var landmark: String? + public var latitude: Double? public var pincode: Int? - public var state: String? + public var addressType: String? + + public var landmark: String? - public var country: String? + public var longitude: Double? public enum CodingKeys: String, CodingKey { - case addressType = "address_type" + case city = "city" + + case country = "country" case address2 = "address2" + case countryCode = "country_code" + case address1 = "address1" - case countryCode = "country_code" + case state = "state" case latitude = "latitude" - case longitude = "longitude" + case pincode = "pincode" - case city = "city" + case addressType = "address_type" case landmark = "landmark" - case pincode = "pincode" - - case state = "state" - - case country = "country" + case longitude = "longitude" } public init(address1: String?, address2: String?, addressType: String?, city: String?, country: String?, countryCode: String?, landmark: String?, latitude: Double?, longitude: Double?, pincode: Int?, state: String?) { - self.addressType = addressType + self.city = city + + self.country = country self.address2 = address2 + self.countryCode = countryCode + self.address1 = address1 - self.countryCode = countryCode + self.state = state self.latitude = latitude - self.longitude = longitude + self.pincode = pincode - self.city = city + self.addressType = addressType self.landmark = landmark - self.pincode = pincode - - self.state = state - - self.country = country + self.longitude = longitude } @@ -91410,7 +91410,7 @@ public extension PlatformClient { do { - addressType = try container.decode(String.self, forKey: .addressType) + city = try container.decode(String.self, forKey: .city) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91421,7 +91421,7 @@ public extension PlatformClient { do { - address2 = try container.decode(String.self, forKey: .address2) + country = try container.decode(String.self, forKey: .country) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91432,7 +91432,7 @@ public extension PlatformClient { do { - address1 = try container.decode(String.self, forKey: .address1) + address2 = try container.decode(String.self, forKey: .address2) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91454,7 +91454,7 @@ public extension PlatformClient { do { - latitude = try container.decode(Double.self, forKey: .latitude) + address1 = try container.decode(String.self, forKey: .address1) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91465,7 +91465,7 @@ public extension PlatformClient { do { - longitude = try container.decode(Double.self, forKey: .longitude) + state = try container.decode(String.self, forKey: .state) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91476,7 +91476,7 @@ public extension PlatformClient { do { - city = try container.decode(String.self, forKey: .city) + latitude = try container.decode(Double.self, forKey: .latitude) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91487,7 +91487,7 @@ public extension PlatformClient { do { - landmark = try container.decode(String.self, forKey: .landmark) + pincode = try container.decode(Int.self, forKey: .pincode) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91498,7 +91498,7 @@ public extension PlatformClient { do { - pincode = try container.decode(Int.self, forKey: .pincode) + addressType = try container.decode(String.self, forKey: .addressType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91509,7 +91509,7 @@ public extension PlatformClient { do { - state = try container.decode(String.self, forKey: .state) + landmark = try container.decode(String.self, forKey: .landmark) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91520,7 +91520,7 @@ public extension PlatformClient { do { - country = try container.decode(String.self, forKey: .country) + longitude = try container.decode(Double.self, forKey: .longitude) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91534,27 +91534,27 @@ public extension PlatformClient { public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(addressType, forKey: .addressType) + try? container.encodeIfPresent(city, forKey: .city) + + try? container.encodeIfPresent(country, forKey: .country) try? container.encodeIfPresent(address2, forKey: .address2) + try? container.encodeIfPresent(countryCode, forKey: .countryCode) + try? container.encodeIfPresent(address1, forKey: .address1) - try? container.encodeIfPresent(countryCode, forKey: .countryCode) + try? container.encodeIfPresent(state, forKey: .state) try? container.encodeIfPresent(latitude, forKey: .latitude) - try? container.encodeIfPresent(longitude, forKey: .longitude) + try? container.encodeIfPresent(pincode, forKey: .pincode) - try? container.encodeIfPresent(city, forKey: .city) + try? container.encodeIfPresent(addressType, forKey: .addressType) try? container.encodeIfPresent(landmark, forKey: .landmark) - try? container.encodeIfPresent(pincode, forKey: .pincode) - - try? container.encodeIfPresent(state, forKey: .state) - - try? container.encodeIfPresent(country, forKey: .country) + try? container.encodeIfPresent(longitude, forKey: .longitude) } @@ -91568,114 +91568,114 @@ public extension PlatformClient { class LocationSerializer: Codable { - public var storeType: String? - - public var uid: Int? - - public var manager: LocationManagerSerializer? - - public var customJson: [String: Any]? + public var stage: String? - public var company: Int + public var displayName: String public var name: String - public var timing: [LocationDayWiseSerializer]? + public var documents: [Document]? - public var stage: String? + public var productReturnConfig: ProductReturnConfigSerializer? - public var warnings: [String: Any]? + public var code: String + + public var storeType: String? public var address: GetAddressSerializer1 - public var productReturnConfig: ProductReturnConfigSerializer? + public var timing: [LocationDayWiseSerializer]? - public var code: String + public var notificationEmails: [String]? - public var documents: [Document]? + public var manager: LocationManagerSerializer? + + public var company: Int public var contactNumbers: [SellerPhoneNumber]? - public var notificationEmails: [String]? + public var warnings: [String: Any]? + + public var uid: Int? public var gstCredentials: InvoiceDetailsSerializer? - public var displayName: String + public var customJson: [String: Any]? public enum CodingKeys: String, CodingKey { - case storeType = "store_type" - - case uid = "uid" - - case manager = "manager" - - case customJson = "_custom_json" + case stage = "stage" - case company = "company" + case displayName = "display_name" case name = "name" - case timing = "timing" + case documents = "documents" - case stage = "stage" + case productReturnConfig = "product_return_config" - case warnings = "warnings" + case code = "code" + + case storeType = "store_type" case address = "address" - case productReturnConfig = "product_return_config" + case timing = "timing" - case code = "code" + case notificationEmails = "notification_emails" - case documents = "documents" + case manager = "manager" + + case company = "company" case contactNumbers = "contact_numbers" - case notificationEmails = "notification_emails" + case warnings = "warnings" + + case uid = "uid" case gstCredentials = "gst_credentials" - case displayName = "display_name" + case customJson = "_custom_json" } public init(address: GetAddressSerializer1, code: String, company: Int, contactNumbers: [SellerPhoneNumber]?, displayName: String, documents: [Document]?, gstCredentials: InvoiceDetailsSerializer?, manager: LocationManagerSerializer?, name: String, notificationEmails: [String]?, productReturnConfig: ProductReturnConfigSerializer?, stage: String?, storeType: String?, timing: [LocationDayWiseSerializer]?, uid: Int?, warnings: [String: Any]?, customJson: [String: Any]?) { - self.storeType = storeType - - self.uid = uid - - self.manager = manager - - self.customJson = customJson + self.stage = stage - self.company = company + self.displayName = displayName self.name = name - self.timing = timing + self.documents = documents - self.stage = stage + self.productReturnConfig = productReturnConfig - self.warnings = warnings + self.code = code + + self.storeType = storeType self.address = address - self.productReturnConfig = productReturnConfig + self.timing = timing - self.code = code + self.notificationEmails = notificationEmails - self.documents = documents + self.manager = manager + + self.company = company self.contactNumbers = contactNumbers - self.notificationEmails = notificationEmails + self.warnings = warnings + + self.uid = uid self.gstCredentials = gstCredentials - self.displayName = displayName + self.customJson = customJson } @@ -91684,7 +91684,7 @@ public extension PlatformClient { do { - storeType = try container.decode(String.self, forKey: .storeType) + stage = try container.decode(String.self, forKey: .stage) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91694,8 +91694,16 @@ public extension PlatformClient { + displayName = try container.decode(String.self, forKey: .displayName) + + + + name = try container.decode(String.self, forKey: .name) + + + do { - uid = try container.decode(Int.self, forKey: .uid) + documents = try container.decode([Document].self, forKey: .documents) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91706,7 +91714,7 @@ public extension PlatformClient { do { - manager = try container.decode(LocationManagerSerializer.self, forKey: .manager) + productReturnConfig = try container.decode(ProductReturnConfigSerializer.self, forKey: .productReturnConfig) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91716,8 +91724,12 @@ public extension PlatformClient { + code = try container.decode(String.self, forKey: .code) + + + do { - customJson = try container.decode([String: Any].self, forKey: .customJson) + storeType = try container.decode(String.self, forKey: .storeType) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91727,11 +91739,7 @@ public extension PlatformClient { - company = try container.decode(Int.self, forKey: .company) - - - - name = try container.decode(String.self, forKey: .name) + address = try container.decode(GetAddressSerializer1.self, forKey: .address) @@ -91747,7 +91755,7 @@ public extension PlatformClient { do { - stage = try container.decode(String.self, forKey: .stage) + notificationEmails = try container.decode([String].self, forKey: .notificationEmails) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91758,7 +91766,7 @@ public extension PlatformClient { do { - warnings = try container.decode([String: Any].self, forKey: .warnings) + manager = try container.decode(LocationManagerSerializer.self, forKey: .manager) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91768,12 +91776,12 @@ public extension PlatformClient { - address = try container.decode(GetAddressSerializer1.self, forKey: .address) + company = try container.decode(Int.self, forKey: .company) do { - productReturnConfig = try container.decode(ProductReturnConfigSerializer.self, forKey: .productReturnConfig) + contactNumbers = try container.decode([SellerPhoneNumber].self, forKey: .contactNumbers) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91783,12 +91791,8 @@ public extension PlatformClient { - code = try container.decode(String.self, forKey: .code) - - - do { - documents = try container.decode([Document].self, forKey: .documents) + warnings = try container.decode([String: Any].self, forKey: .warnings) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91799,7 +91803,7 @@ public extension PlatformClient { do { - contactNumbers = try container.decode([SellerPhoneNumber].self, forKey: .contactNumbers) + uid = try container.decode(Int.self, forKey: .uid) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91810,7 +91814,7 @@ public extension PlatformClient { do { - notificationEmails = try container.decode([String].self, forKey: .notificationEmails) + gstCredentials = try container.decode(InvoiceDetailsSerializer.self, forKey: .gstCredentials) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91821,7 +91825,7 @@ public extension PlatformClient { do { - gstCredentials = try container.decode(InvoiceDetailsSerializer.self, forKey: .gstCredentials) + customJson = try container.decode([String: Any].self, forKey: .customJson) } catch DecodingError.typeMismatch(let type, let context) { print("Type '\(type)' mismatch:", context.debugDescription) print("codingPath:", context.codingPath) @@ -91830,48 +91834,44 @@ public extension PlatformClient { } - - displayName = try container.decode(String.self, forKey: .displayName) - - } public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try? container.encodeIfPresent(storeType, forKey: .storeType) - - try? container.encodeIfPresent(uid, forKey: .uid) - - try? container.encodeIfPresent(manager, forKey: .manager) - - try? container.encodeIfPresent(customJson, forKey: .customJson) + try? container.encodeIfPresent(stage, forKey: .stage) - try? container.encodeIfPresent(company, forKey: .company) + try? container.encodeIfPresent(displayName, forKey: .displayName) try? container.encodeIfPresent(name, forKey: .name) - try? container.encodeIfPresent(timing, forKey: .timing) + try? container.encodeIfPresent(documents, forKey: .documents) - try? container.encodeIfPresent(stage, forKey: .stage) + try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig) - try? container.encodeIfPresent(warnings, forKey: .warnings) + try? container.encodeIfPresent(code, forKey: .code) + + try? container.encodeIfPresent(storeType, forKey: .storeType) try? container.encodeIfPresent(address, forKey: .address) - try? container.encodeIfPresent(productReturnConfig, forKey: .productReturnConfig) + try? container.encodeIfPresent(timing, forKey: .timing) - try? container.encodeIfPresent(code, forKey: .code) + try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails) - try? container.encodeIfPresent(documents, forKey: .documents) + try? container.encodeIfPresent(manager, forKey: .manager) + + try? container.encodeIfPresent(company, forKey: .company) try? container.encodeIfPresent(contactNumbers, forKey: .contactNumbers) - try? container.encodeIfPresent(notificationEmails, forKey: .notificationEmails) + try? container.encodeIfPresent(warnings, forKey: .warnings) + + try? container.encodeIfPresent(uid, forKey: .uid) try? container.encodeIfPresent(gstCredentials, forKey: .gstCredentials) - try? container.encodeIfPresent(displayName, forKey: .displayName) + try? container.encodeIfPresent(customJson, forKey: .customJson) } diff --git a/sdk/platform/PlatformOAuthClient.swift b/Sources/platform/PlatformOAuthClient.swift similarity index 100% rename from sdk/platform/PlatformOAuthClient.swift rename to Sources/platform/PlatformOAuthClient.swift diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift new file mode 100644 index 0000000000..782a6da7bc --- /dev/null +++ b/Tests/LinuxMain.swift @@ -0,0 +1,7 @@ +import XCTest + +import codeTests + +var tests = [XCTestCaseEntry]() +tests += codeTests.allTests() +XCTMain(tests) diff --git a/Tests/codeTests/XCTestManifests.swift b/Tests/codeTests/XCTestManifests.swift new file mode 100644 index 0000000000..ccb853716d --- /dev/null +++ b/Tests/codeTests/XCTestManifests.swift @@ -0,0 +1,9 @@ +import XCTest + +#if !canImport(ObjectiveC) +public func allTests() -> [XCTestCaseEntry] { + return [ + testCase(codeTests.allTests), + ] +} +#endif diff --git a/Tests/codeTests/codeTests.swift b/Tests/codeTests/codeTests.swift new file mode 100644 index 0000000000..f4d445390a --- /dev/null +++ b/Tests/codeTests/codeTests.swift @@ -0,0 +1,15 @@ +import XCTest +@testable import code + +final class codeTests: XCTestCase { + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct + // results. + XCTAssertEqual(code().text, "Hello, World!") + } + + static var allTests = [ + ("testExample", testExample), + ] +} diff --git a/documentation/PLATFORM.md b/documentation/PLATFORM.md index d24516908f..5f36937c08 100644 --- a/documentation/PLATFORM.md +++ b/documentation/PLATFORM.md @@ -266,13 +266,13 @@ * [Catalog](#Catalog) * Methods * [updateSearchKeywords](#updatesearchkeywords) - * [deleteSearchKeywords](#deletesearchkeywords) * [getSearchKeywords](#getsearchkeywords) + * [deleteSearchKeywords](#deletesearchkeywords) * [getAllSearchKeyword](#getallsearchkeyword) * [createCustomKeyword](#createcustomkeyword) * [updateAutocompleteKeyword](#updateautocompletekeyword) - * [deleteAutocompleteKeyword](#deleteautocompletekeyword) * [getAutocompleteKeywordDetail](#getautocompletekeyworddetail) + * [deleteAutocompleteKeyword](#deleteautocompletekeyword) * [getAutocompleteConfig](#getautocompleteconfig) * [createCustomAutocompleteRule](#createcustomautocompleterule) * [getProductBundle](#getproductbundle) @@ -322,14 +322,14 @@ * [getProducts](#getproducts) * [createProduct](#createproduct) * [editProduct](#editproduct) - * [deleteProduct](#deleteproduct) * [getProduct](#getproduct) + * [deleteProduct](#deleteproduct) * [getProductValidation](#getproductvalidation) * [getProductSize](#getproductsize) * [getProductBulkUploadHistory](#getproductbulkuploadhistory) * [updateProductAssetsInBulk](#updateproductassetsinbulk) - * [deleteProductBulkJob](#deleteproductbulkjob) * [createProductsInBulk](#createproductsinbulk) + * [deleteProductBulkJob](#deleteproductbulkjob) * [getCompanyTags](#getcompanytags) * [getProductAssetsInBulk](#getproductassetsinbulk) * [createProductAssetsInBulk](#createproductassetsinbulk) @@ -339,8 +339,8 @@ * [deleteInventory](#deleteinventory) * [getInventoryBulkUploadHistory](#getinventorybulkuploadhistory) * [createBulkInventoryJob](#createbulkinventoryjob) - * [deleteBulkInventoryJob](#deletebulkinventoryjob) * [createBulkInventory](#createbulkinventory) + * [deleteBulkInventoryJob](#deletebulkinventoryjob) * [getInventoryExport](#getinventoryexport) * [createInventoryExportJob](#createinventoryexportjob) * [exportInventoryConfig](#exportinventoryconfig) @@ -9513,11 +9513,11 @@ Schema: `ErrorResponse` --- -#### deleteSearchKeywords -Delete a Search Keywords +#### getSearchKeywords +Get a Search Keywords Details ```swift -catalog.deleteSearchKeywords(companyId: companyId, applicationId: applicationId, id: id) { (response, error) in +catalog.getSearchKeywords(companyId: companyId, applicationId: applicationId, id: id) { (response, error) in // Use response } ``` @@ -9526,18 +9526,18 @@ catalog.deleteSearchKeywords(companyId: companyId, applicationId: applicationId, | --------- | ---- | --- | | companyId | String? | A `company_id` is a unique identifier for a particular seller account. | | applicationId | String? | A `application_id` is a unique identifier for a particular sale channel. | -| id | String? | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | +| id | String? | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | -Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully +Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` *Success Response:* -Status object. Tells whether the operation was successful. See example below or refer `DeleteResponse` +The Collection object. See example below or refer `GetSearchWordsDetailResponseSchema` for details -Schema: `DeleteResponse` +Schema: `GetSearchWordsDetailResponse` @@ -9556,11 +9556,11 @@ Schema: `ErrorResponse` --- -#### getSearchKeywords -Get a Search Keywords Details +#### deleteSearchKeywords +Delete a Search Keywords ```swift -catalog.getSearchKeywords(companyId: companyId, applicationId: applicationId, id: id) { (response, error) in +catalog.deleteSearchKeywords(companyId: companyId, applicationId: applicationId, id: id) { (response, error) in // Use response } ``` @@ -9569,18 +9569,18 @@ catalog.getSearchKeywords(companyId: companyId, applicationId: applicationId, id | --------- | ---- | --- | | companyId | String? | A `company_id` is a unique identifier for a particular seller account. | | applicationId | String? | A `application_id` is a unique identifier for a particular sale channel. | -| id | String? | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | +| id | String? | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | -Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema` +Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully *Success Response:* -The Collection object. See example below or refer `GetSearchWordsDetailResponseSchema` for details +Status object. Tells whether the operation was successful. See example below or refer `DeleteResponse` -Schema: `GetSearchWordsDetailResponse` +Schema: `DeleteResponse` @@ -9726,11 +9726,11 @@ Schema: `ErrorResponse` --- -#### deleteAutocompleteKeyword -Delete a Autocomplete Keywords +#### getAutocompleteKeywordDetail +Get a Autocomplete Keywords Details ```swift -catalog.deleteAutocompleteKeyword(companyId: companyId, applicationId: applicationId, id: id) { (response, error) in +catalog.getAutocompleteKeywordDetail(companyId: companyId, applicationId: applicationId, id: id) { (response, error) in // Use response } ``` @@ -9739,18 +9739,18 @@ catalog.deleteAutocompleteKeyword(companyId: companyId, applicationId: applicati | --------- | ---- | --- | | companyId | String? | A `company_id` is a unique identifier for a particular seller account. | | applicationId | String? | A `application_id` is a unique identifier for a particular sale channel. | -| id | String? | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | +| id | String? | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | -Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully +Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` *Success Response:* -Status object. Tells whether the operation was successful. See example below or refer `DeleteResponse` +The mapping object. See example below or refer `GetAutocompleteWordsResponseSchema` for details -Schema: `DeleteResponse` +Schema: `GetAutocompleteWordsResponse` @@ -9769,11 +9769,11 @@ Schema: `ErrorResponse` --- -#### getAutocompleteKeywordDetail -Get a Autocomplete Keywords Details +#### deleteAutocompleteKeyword +Delete a Autocomplete Keywords ```swift -catalog.getAutocompleteKeywordDetail(companyId: companyId, applicationId: applicationId, id: id) { (response, error) in +catalog.deleteAutocompleteKeyword(companyId: companyId, applicationId: applicationId, id: id) { (response, error) in // Use response } ``` @@ -9782,18 +9782,18 @@ catalog.getAutocompleteKeywordDetail(companyId: companyId, applicationId: applic | --------- | ---- | --- | | companyId | String? | A `company_id` is a unique identifier for a particular seller account. | | applicationId | String? | A `application_id` is a unique identifier for a particular sale channel. | -| id | String? | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to retrieve. | +| id | String? | A `id` is a unique identifier for a particular detail. Pass the `id` of the keywords which you want to delete. | -Get the details of a words by its `id`. If successful, returns a keywords resource in the response body specified in `GetAutocompleteWordsResponseSchema` +Delete a keywords by it's id. Returns an object that tells whether the keywords was deleted successfully *Success Response:* -The mapping object. See example below or refer `GetAutocompleteWordsResponseSchema` for details +Status object. Tells whether the operation was successful. See example below or refer `DeleteResponse` -Schema: `GetAutocompleteWordsResponse` +Schema: `DeleteResponse` @@ -11887,30 +11887,33 @@ Schema: `ErrorResponse` --- -#### deleteProduct -Delete a product. +#### getProduct +Get a single product. ```swift -catalog.deleteProduct(companyId: companyId, itemId: itemId) { (response, error) in +catalog.getProduct(itemCode: itemCode, companyId: companyId, itemId: itemId, brandUid: brandUid, uid: uid) { (response, error) in // Use response } ``` | Argument | Type | Description | | --------- | ---- | --- | -| companyId | String? | Company Id of the company associated to product that is to be deleted. | -| itemId | Int? | Id of the product to be updated. | +| itemCode | String? | Item code of the product. | +| companyId | Int? | Company Id of the product. | +| itemId | Int? | Item Id of the product. | +| brandUid | Int? | Brand Id of the product. | +| uid | Int? | Id of the product. | -This API allows to delete product. +This API helps to get data associated to a particular product. *Success Response:* -Returns a success response +Product object. See example below or refer `product.utils.format_product_response` for details -Schema: `SuccessResponse` +Schema: `Product` @@ -11929,33 +11932,30 @@ Schema: `ErrorResponse` --- -#### getProduct -Get a single product. +#### deleteProduct +Delete a product. ```swift -catalog.getProduct(itemCode: itemCode, companyId: companyId, itemId: itemId, brandUid: brandUid, uid: uid) { (response, error) in +catalog.deleteProduct(companyId: companyId, itemId: itemId) { (response, error) in // Use response } ``` | Argument | Type | Description | | --------- | ---- | --- | -| itemCode | String? | Item code of the product. | -| companyId | Int? | Company Id of the product. | -| itemId | Int? | Item Id of the product. | -| brandUid | Int? | Brand Id of the product. | -| uid | Int? | Id of the product. | +| companyId | String? | Company Id of the company associated to product that is to be deleted. | +| itemId | Int? | Id of the product to be updated. | -This API helps to get data associated to a particular product. +This API allows to delete product. *Success Response:* -Product object. See example below or refer `product.utils.format_product_response` for details +Returns a success response -Schema: `Product` +Schema: `SuccessResponse` @@ -12144,21 +12144,21 @@ Schema: `ErrorResponse` --- -#### deleteProductBulkJob -Delete Bulk product job. +#### createProductsInBulk +Create products in bulk associated with given batch Id. ```swift -catalog.deleteProductBulkJob(companyId: companyId, batchId: batchId) { (response, error) in +catalog.createProductsInBulk(companyId: companyId, batchId: batchId, body: body) { (response, error) in // Use response } ``` | Argument | Type | Description | | --------- | ---- | --- | -| companyId | String? | Company Id of the company associated to size that is to be deleted. | -| batchId | Int? | Batch Id of the bulk product job to be deleted. | +| companyId | Int? | Company Id in which assets to be uploaded. | +| batchId | String? | Batch Id in which assets to be uploaded. | -This API allows to delete bulk product job associated with company. +This API helps to create products in bulk push to kafka for approval/creation. *Success Response:* @@ -12186,21 +12186,21 @@ Schema: `ErrorResponse` --- -#### createProductsInBulk -Create products in bulk associated with given batch Id. +#### deleteProductBulkJob +Delete Bulk product job. ```swift -catalog.createProductsInBulk(companyId: companyId, batchId: batchId, body: body) { (response, error) in +catalog.deleteProductBulkJob(companyId: companyId, batchId: batchId) { (response, error) in // Use response } ``` | Argument | Type | Description | | --------- | ---- | --- | -| companyId | Int? | Company Id in which assets to be uploaded. | -| batchId | String? | Batch Id in which assets to be uploaded. | +| companyId | String? | Company Id of the company associated to size that is to be deleted. | +| batchId | Int? | Batch Id of the bulk product job to be deleted. | -This API helps to create products in bulk push to kafka for approval/creation. +This API allows to delete bulk product job associated with company. *Success Response:* @@ -12611,20 +12611,20 @@ Schema: `ErrorResponse` --- -#### deleteBulkInventoryJob -Delete Bulk Inventory job. +#### createBulkInventory +Create products in bulk associated with given batch Id. ```swift -catalog.deleteBulkInventoryJob(companyId: companyId) { (response, error) in +catalog.createBulkInventory(companyId: companyId, body: body) { (response, error) in // Use response } ``` | Argument | Type | Description | | --------- | ---- | --- | -| companyId | String? | Company Id of the company of which bulk Inventory job is to be deleted. | +| companyId | Int? | Company Id in which Inventory is to be uploaded. | -This API allows to delete bulk Inventory job associated with company. +This API helps to create products in bulk push to kafka for approval/creation. *Success Response:* @@ -12652,20 +12652,20 @@ Schema: `ErrorResponse` --- -#### createBulkInventory -Create products in bulk associated with given batch Id. +#### deleteBulkInventoryJob +Delete Bulk Inventory job. ```swift -catalog.createBulkInventory(companyId: companyId, body: body) { (response, error) in +catalog.deleteBulkInventoryJob(companyId: companyId) { (response, error) in // Use response } ``` | Argument | Type | Description | | --------- | ---- | --- | -| companyId | Int? | Company Id in which Inventory is to be uploaded. | +| companyId | String? | Company Id of the company of which bulk Inventory job is to be deleted. | -This API helps to create products in bulk push to kafka for approval/creation. +This API allows to delete bulk Inventory job associated with company. *Success Response:*